摘要: 样例输入 11Xo 6*E 样例输出 代码 #include <cstdio> #define MAX 80 char buf[MAX][MAX]; void mySwap(int& a, int& b) { int temp = a; a = b; b = temp; } void drawLin 阅读全文
posted @ 2021-02-27 15:32 xkfx 阅读(310) 评论(0) 推荐(0)
摘要: 结构变量的声明和初始化 #include <cstdio> int main() { struct { int age; int height; } x, y = {29, 180}; // 结构的成员在内存中按照声明的顺序存储 x.age = 30; x.height = 170; return 阅读全文
posted @ 2021-02-27 11:31 xkfx 阅读(80) 评论(0) 推荐(0)