摘要:
char只表示一个字符,若重复赋值,则或者会覆盖前者: char ch='qwqewqe'; cout<<ch<<endl; 输出:e 因为char只有一个字符,后者会覆盖前者。 2、char * src表示字符串char *src="qwqewqe"; cout<<src<<endl;这里的src 阅读全文
posted @ 2022-03-02 22:14
Dsad123FFFG6645
阅读(195)
评论(0)
推荐(0)
摘要:
return x==5; //x=5则返回true int reverse(int x){ int ret=0,max=0x7fffffff,min=0; long rs=0; for(;x;rs=rs*10+x%10,x/=10);、// 循环判断 表达式2(循环条件):x为真 表达式3 两个操作 阅读全文
posted @ 2022-03-02 17:36
Dsad123FFFG6645
阅读(67)
评论(0)
推荐(0)
摘要:
bool 函数 要return 0 * bool initlist(node*& temp) { temp = new node;if(!temp)if (temp == NULL) return false; temp->next = NULL;return true;} “\n” 和endl 效 阅读全文
posted @ 2022-03-02 15:52
Dsad123FFFG6645
阅读(8)
评论(0)
推荐(0)

浙公网安备 33010602011771号