2021年4月27日
摘要: 1.定义 c语言中,结构体的定义: struct student{ int a; int b; }; //此处有分号 struct student a,b; /*对于数组: struct student{ int a; int b; }class_22[48]; 2.交换 结构体可整体交换。 str 阅读全文
posted @ 2021-04-27 17:37 鄂江 阅读(220) 评论(0) 推荐(0)
摘要: 1.在函数中调用二维数组例子:重点:void InitBoard (char Board[][4], int N)和 InitBoard(Board,3); //4对应定义的数组列数,在调用函数时(后者),用函数名,在定义函数时,用char Board[][4] 阅读全文
posted @ 2021-04-27 16:30 鄂江 阅读(78) 评论(0) 推荐(0)
  2021年2月2日
摘要: 1.输出特殊字符 3.14画画: https://ummoodle.um.edu.mo/pluginfile.php/3608104/mod_resource/content/1/03.14.c 要点:如果要输出“ \ ”,因为“ \ ”是特殊符号,所以需要打成“\\” 同理,printf("%%" 阅读全文
posted @ 2021-02-02 12:58 鄂江 阅读(176) 评论(0) 推荐(0)