17 lines
337 B
C++
17 lines
337 B
C++
#include <iostream>//函数 cout输出 cin输入
|
|
// input输入 output输出 stream流
|
|
using namespace std;//标准命名空间
|
|
int main() {
|
|
//int 整型 short long long long
|
|
//float 浮点型 double
|
|
//char 字符
|
|
//string 字符串
|
|
//cin>>n;
|
|
//cout<<n;
|
|
//+ - * / %
|
|
// > < >= <= == !=
|
|
//&& || !
|
|
double a = 10.0;
|
|
double b = 3.0;
|
|
cout << a / b;
|
|
} |