随笔分类 - C++
摘要:数据输入cin 语法:cin >> 变量 解决 CLoin 使用cin输入中文程序无法正常运行 按住Ctrl+alt+shift+/键 弹出对话框选择注册表 取消勾选run.process.with.pty
阅读全文
摘要:整型 C++除了int类型 还有其他类型的数据,所占空间也不一样 sizeof() 函数——得到数据所占的字节 #include "iostream" using namespace std; int main() { system("chcp 65001"); long long num = 20
阅读全文
摘要:cout打印输出 输出单份内容 // 输出单份内容 cout << "Hello World!" << endl; cout << 10 << endl; 输出多份内容 // 输出多份内容 cout << "I am " << 18 << "years old" << endl; 可以自由组合多个<
阅读全文
摘要:C++你好 #include "iostream" using namespace std; int main() { cout << "Hello World!!"<< endl; return 0; } 代码解析
阅读全文

浙公网安备 33010602011771号