题解 | #结构体简单使用#

结构体简单使用

https://www.nowcoder.com/practice/87c31efeb07b496cb88b137b54b98330

#include <iostream>
using namespace std;
typedef struct student{
    char name[100];
    int age;
    float heigth;
}stu;
int main()
{
    stu A;
    cin.get(A.name,100);
    cin>>A.age>>A.heigth;
    cout<<A.name<<' '<<A.age<<' '<<A.heigth;
    return 0;
}

全部评论

相关推荐

不愿透露姓名的神秘牛友
07-11 11:21
被夸真的超级开心,好可爱的姐姐
码农索隆:老色批们不用脑补了,我把金智妮的图找来了查看图片
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务