题解 | 结构体简单使用
结构体简单使用
https://www.nowcoder.com/practice/87c31efeb07b496cb88b137b54b98330
#include <iostream>
#include <string>
using namespace std;
struct student {
string name;
int age;
float height;
// write your code here......
};
int main() {
struct student stus;
cin >>stus.name>>stus.age>>stus.height;
cout <<stus.name<<" "<<stus.age<<" "<<stus.height;
// write your code here......
return 0;
}
C/C++题解 文章被收录于专栏
记录个人编程题的解题思路以及学习的新知识
网易游戏公司福利 630人发布