⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.cpp

📁 中文C和指针源代码 书的英文名字是《c and POINTERS》
💻 CPP
字号:
#include <stdio.h>
void reverse_string(char *);
void main()
{
	char s[]="this is an exmaple!";
	reverse_string(s);
	printf("%s",s);
}


void reverse_string(char *s)
{
	char *start,*end,temp;
	start=s;
	while (*s)
		s++;
	s--;
	while(start<s) {
		temp=*start;
		*start=*s;
		*s=temp;
		start++;
		s--;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -