上一页 1 ··· 119 120 121 122 123 124 125 126 127 ··· 345 下一页
摘要: #include using namespace std;#define LENGTH 10 #define WIDTH 5#... 阅读全文
posted @ 2022-08-19 22:54 luoganttcc 阅读(6) 评论(0) 推荐(0)
摘要: 全局变量 #include using namespace std;// 全局变量声明int g = 20;int main (){ // 局部变量声明 // cout << g ; int g = 10; cout << g... 阅读全文
posted @ 2022-08-19 22:54 luoganttcc 阅读(7) 评论(0) 推荐(0)
摘要: 全局变量 #include using namespace std;// 全局变量声明int g = 20;int main (){ // 局部变量声明 // cout << g ; int g = 10; cout << g... 阅读全文
posted @ 2022-08-19 22:54 luoganttcc 阅读(9) 评论(0) 推荐(0)
摘要: c++ 指针1 #include using namespace std; int main (){ int var = 20; // 实际变量的声明 int *ip; // 指针变量的声明 ip =... 阅读全文
posted @ 2022-08-19 22:54 luoganttcc 阅读(7) 评论(0) 推荐(0)
摘要: c++ 指针 #include using namespace std; int main (){ int var1; char var2[10]; cout << "var1 变量的地址: "; cout << &... 阅读全文
posted @ 2022-08-19 22:54 luoganttcc 阅读(3) 评论(0) 推荐(0)
摘要: c++ 指针 #include using namespace std; int main (){ int var1; char var2[10]; cout << "var1 变量的地址: "; cout << &... 阅读全文
posted @ 2022-08-19 22:54 luoganttcc 阅读(8) 评论(0) 推荐(0)
摘要: c++ 对象 #include using namespace std; class Box{ public: double length; // 长度 double breadth; // 宽度 ... 阅读全文
posted @ 2022-08-19 22:54 luoganttcc 阅读(6) 评论(0) 推荐(0)
摘要: c++ 对象 #include using namespace std; class Box{ public: double length; // 长度 double breadth; // 宽度 ... 阅读全文
posted @ 2022-08-19 22:54 luoganttcc 阅读(8) 评论(0) 推荐(0)
摘要: c++ 结构体 #include #include using namespace std; // 声明一个结构体类型 Books struct Books{ char title[50]; char author[50];... 阅读全文
posted @ 2022-08-19 22:54 luoganttcc 阅读(13) 评论(0) 推荐(0)
摘要: c++ 结构体 #include #include using namespace std; // 声明一个结构体类型 Books struct Books{ char title[50]; char author[50];... 阅读全文
posted @ 2022-08-19 22:54 luoganttcc 阅读(11) 评论(0) 推荐(0)
上一页 1 ··· 119 120 121 122 123 124 125 126 127 ··· 345 下一页