摘要:
1.字符串常量 char *name="sjsj"; 系统分配内存 字长+1 要加'\0' 2. char *address=NULL; address=(char *)malloc(10*sizeof(char)); if(address==NULL){ exit(EXIT_FAILURE); } scanf("%s",address);碰见空格默认结束 //realloc重新... 阅读全文
摘要:
#include #include #define kSuccess 1 #define kWrong 0 int password=123456; float balance = 1000; //输入密码操作 int inputpassword(void); //退出程序操作 void shut(void); //提示用户操作 void show(char *a[],int n);//指... 阅读全文