摘要: 源码 #include <stdio.h> #include <string.h>//getchar()所在类库 #include <stdlib.h>//exit()所在类库 int main(int argc, const char * argv[]) { int password = 1234 阅读全文
posted @ 2018-07-17 17:29 健泽 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 一、 1.int a = 0; scanf("%d", &a); scanf中要加&的原因:scanf不在main函数中,即内存地址不同 不加&,scanf只是改变scanf中的a的值,对main中a无影响 加&指向a的地址,才能改变main中a的值 二、 逗号表达式 while(a, b, c, 阅读全文
posted @ 2018-07-17 17:24 健泽 阅读(118) 评论(0) 推荐(0) 编辑