-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexe.cpp
More file actions
50 lines (35 loc) · 1.03 KB
/
exe.cpp
File metadata and controls
50 lines (35 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//#include<iostream.h> vc6.0依旧支持这个旧的头文件
//这个是旧C++的头文件 ,新的编译器(如vs2008及以上 )都不再支持
//#include<iostream>
//using namespace std;
//
//int main(){
// std::cout<<"hello world"<<std::endl;
// return 0;
//}
//cout是标准输出流对象,<<是输出操作符
//cin是标准输入流对象,>>是输入操作符
//#include<stdio.h>
//
//int main(){
// int i2 = 1;
// double d2 = 2.22;
// printf("c type :int->%d,double->%f\n",i2,d2);
//
// printf("please input int and double:");
// scanf("%d, %f",&i2,&d2); //注意输入的操作
// printf("c type :int->%d,double->%f\n",i2,d2);
// return 0;
//}
//#include<iostream>
////using namespace std;
//
//int main(){
// int i2 = 1;
// double d2 = 1.1215;
// std::cout<<"c++ type:"<<"int->"<<i2<<"double->"<<d2<<std::endl;
// std::cout<<"please input int and double:";
// std::cin>>i2>>d2;
// std::cout<<"c++ type:"<<"int->"<<i2<<"double->"<<d2<<std::endl;
// return 0;
//}