摘要: #include<iostream> using namespace std; int main() { //字符型 char ch = 'a'; cout << ch << endl; cout << "char字符型变量所占内存:" << sizeof(char)<<endl; system(" 阅读全文
posted @ 2020-02-24 12:14 Jackie_Wang 阅读(150) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> using namespace std; int main() { //2.单精度float //3.双精度double //默认情况下会输出6位有效数字 //科学计数法 float f1 = 3.14f; float f2 = 3e-2; cout << f1 阅读全文
posted @ 2020-02-24 11:59 Jackie_Wang 阅读(530) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> using namespace std; int main() { int a = 10; cout << "a=" << a << endl; system("pause"); return 0; } 阅读全文
posted @ 2020-02-24 10:39 Jackie_Wang 阅读(127) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>using namespace std; int main(){ cout << "hello world!" << endl;//输出"hello world!" system("pause"); return 0; } 阅读全文
posted @ 2020-02-24 10:31 Jackie_Wang 阅读(394) 评论(0) 推荐(0) 编辑