06 2023 档案
摘要:#include <iostream>using namespace std; //指针 if (1) { int a = 10; int b = 20; const int* pi = &a; pi = &b; //const指针可以修改指针,不能修改指向的数据 //*pi = 25; //错误
阅读全文
摘要:#include <iostream> #include <sstream> using namespace std; if (1) { int i; stringstream ss_stream; //注意:如果做多次数据转换;必须调用clear()来设置转换模式 ss_stream << "45
阅读全文