• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
爱白菜的小昆虫
博客园    首页    新随笔    联系   管理    订阅  订阅
2016年12月11日
C/C++ 结构体 指针 函数传递
摘要: 1 #include 2 #include 3 4 struct student{ 5 int num; 6 char str[20]; 7 double dec; 8 }; 9 10 void scan(struct student *stu[], int *n){ 11 scanf("%d", n); 12 *stu ... 阅读全文
posted @ 2016-12-11 18:12 爱白菜的小昆虫 阅读(752) 评论(0) 推荐(0)
C/C++ 结构体 指针 简单输入输出
摘要: 1 #include 2 #include 3 4 struct student{ 5 int num; 6 char str[20]; 7 double dec; 8 }; 9 10 int main(){ 11 int n; 12 struct student *stu; 13 14 scanf("%d", &n);... 阅读全文
posted @ 2016-12-11 14:06 爱白菜的小昆虫 阅读(3307) 评论(0) 推荐(0)
C/C++ 结构体 数组 函数传递
摘要: 1 #include 2 #include 3 4 struct student{ 5 int num; 6 char str[20]; 7 double dec; 8 }; 9 10 void scan(struct student stu[], int *n){ 11 scanf("%d", n); 12 for(int i ... 阅读全文
posted @ 2016-12-11 13:58 爱白菜的小昆虫 阅读(5592) 评论(3) 推荐(0)
C/C++ 结构体 数组 简单输入输出
摘要: 1 #include 2 #include 3 4 struct student{ 5 int num; 6 char str[20]; 7 double dec; 8 }; 9 10 11 int main(){ 12 13 int n; 14 struct student stu[10]; 15 16 s... 阅读全文
posted @ 2016-12-11 13:54 爱白菜的小昆虫 阅读(18180) 评论(0) 推荐(0)
C/C++ 结构体 函数传递
摘要: 1 #include 2 #include 3 4 struct student{ 5 int num; 6 char str[20]; 7 double dec; 8 }; 9 10 void scan(struct student *stu){ 11 // scanf("%d%s%lf", &stu->num, stu->str, &s... 阅读全文
posted @ 2016-12-11 03:56 爱白菜的小昆虫 阅读(1468) 评论(0) 推荐(0)
C/C++ 结构体 简单输入输出
摘要: 1 #include 2 #include 3 4 struct student{ 5 int num; 6 char str[20]; 7 double dec; 8 }; 9 10 11 int main(){ 12 13 struct student stu; 14 15 scanf("%d%s%lf", &s... 阅读全文
posted @ 2016-12-11 02:54 爱白菜的小昆虫 阅读(3384) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3