You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
383 B
18 lines
383 B
2 years ago
|
#include <bits/stdc++.h>
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
int main() {
|
||
|
//结构体
|
||
|
struct Student {
|
||
|
string name;
|
||
|
string xb;
|
||
|
int age;
|
||
|
float weight;
|
||
|
} s1;
|
||
|
cin >> s1.name >> s1.xb >> s1.age >> s1.weight;
|
||
|
cout << s1.name << " " << s1.xb << " " << s1.age << " " << fixed << setprecision(1) << s1.weight << endl;
|
||
|
return 0;
|
||
|
}
|
||
|
|