摘要:
#include#include#include#include#include#include#include#include#include#include#include#include#define A ~(0full_path,real_path_buf,512))==-1) { per... 阅读全文
摘要:
操作数的都是 ( char * )型,操作时不考虑末尾的'\0',操作数必须是指向字符串的指针("a"),不能是字符('a')。 size_t strlen( const char *s ); 字符串求长,返回字符串或指针的实际大小,和 sizeof() 不同 char *strrev( char *s ); 字符串反转,不包括 NULL c... 阅读全文
摘要:
\n 换行符\r 回车符\a 响铃符\t 水平制表符\v 纵向制表符\b 退格符\f 进纸符\\ 反斜线\? 疑问符\' 单引号\" 双引号通用转义字符(三个8进制数表示\ooo)\0 空字符,在字符串中用作字符串的结束标志。\7 响铃符\12 换行符\40 空格符\062 '2'\115 'M'也 阅读全文
摘要:
1、参数 (有时参数是void) argc是程序运行时参数个数 argv是存储参数的数组,可以用char* argv[],也可以用char **argv。 例如编译一个hello.c的程序 1 #include<stdio.h> 2 void printargc(const int); 3 int 阅读全文