上一页 1 ··· 118 119 120 121 122 123 124 125 126 ··· 345 下一页
摘要: c++ 递增一个指针 #include using namespace std;const int MAX = 3;int main (){ int var[MAX] = {10, 100, 200}; int *ptr; ... 阅读全文
posted @ 2022-08-19 22:54 luoganttcc 阅读(7) 评论(0) 推荐(0)
摘要: c++ 递增一个指针 #include using namespace std;const int MAX = 3;int main (){ int var[MAX] = {10, 100, 200}; int *ptr; ... 阅读全文
posted @ 2022-08-19 22:54 luoganttcc 阅读(3) 评论(0) 推荐(0)
摘要: c++ 指针1 #include using namespace std; int main (){ int var = 20; // 实际变量的声明 int *ip; // 指针变量的声明 ip =... 阅读全文
posted @ 2022-08-19 22:54 luoganttcc 阅读(9) 评论(0) 推荐(0)
摘要: c++ static 存储类 static 存储类 static 存储类指示编译器在程序的生命周期内保持局部变量的存在,而不需要在每次它进入和离开作用域时进行创建和销毁。因此,使用 static 修饰局部变量可以在函数调用之间保持局部变... 阅读全文
posted @ 2022-08-19 22:54 luoganttcc 阅读(10) 评论(0) 推荐(0)
摘要: c++ static 存储类 static 存储类 static 存储类指示编译器在程序的生命周期内保持局部变量的存在,而不需要在每次它进入和离开作用域时进行创建和销毁。因此,使用 static 修饰局部变量可以在函数调用之间保持局部变... 阅读全文
posted @ 2022-08-19 22:54 luoganttcc 阅读(8) 评论(0) 推荐(0)
摘要: #include using namespace std;/* * 这个程序演示了有符号整数和无符号整数之间的差别*/int ma... 阅读全文
posted @ 2022-08-19 22:54 luoganttcc 阅读(19) 评论(0) 推荐(0)
摘要: #include using namespace std;/* * 这个程序演示了有符号整数和无符号整数之间的差别*/int ma... 阅读全文
posted @ 2022-08-19 22:54 luoganttcc 阅读(13) 评论(0) 推荐(0)
摘要: c++ #define #include using namespace std;#define LENGTH 10 #define WIDTH 5#define NEWLINE '\n'int main(){ int are... 阅读全文
posted @ 2022-08-19 22:54 luoganttcc 阅读(4) 评论(0) 推荐(0)
摘要: c++ #define #include using namespace std;#define LENGTH 10 #define WIDTH 5#define NEWLINE '\n'int main(){ int are... 阅读全文
posted @ 2022-08-19 22:54 luoganttcc 阅读(6) 评论(0) 推荐(0)
摘要: #include using namespace std;#define LENGTH 10 #define WIDTH 5#... 阅读全文
posted @ 2022-08-19 22:54 luoganttcc 阅读(13) 评论(0) 推荐(0)
上一页 1 ··· 118 119 120 121 122 123 124 125 126 ··· 345 下一页