update
This commit is contained in:
parent
d933df17a1
commit
778ee62a92
13
class/test.cpp
Normal file
13
class/test.cpp
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#include<iostream>
|
||||||
|
#include<iomanip>
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
int main(){
|
||||||
|
int a,b,c;
|
||||||
|
a = 3;
|
||||||
|
b = 4;
|
||||||
|
c = a * a + b * b;
|
||||||
|
cout <<a<<"*"<<a<<"+"<<b<<"*"<<b<<"="<<setprecision(2)<<c<<endl;
|
||||||
|
return 0;
|
||||||
|
}
|
12
class/test1.cpp
Normal file
12
class/test1.cpp
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#include<iostream>
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
int main(){
|
||||||
|
|
||||||
|
|
||||||
|
float jg = 4/8 * 100 /2.0;
|
||||||
|
|
||||||
|
cout <<"结果:"<<jg;
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user