标题:新手请教c程序哪里错了
取消只看楼主
无名小子朱超
Rank: 1
来 自:湖南
等 级:新手上路
帖 子:1
专家分:0
注 册:2011-2-9
结帖率:0
已结贴  问题点数:20 回复次数:0 
新手请教c程序哪里错了
#include<stdio.h>
#include<conio.h>
struct person
{
char name[20];
int  age;
char email[50];
};
main()
{
struct person zhuchao={"zhuchao",17,"9405@);
strtct person lisi={"lisi",18,"90876566@);
lisi=zhuchao;
printf("lisi's name:%s\n",lisi.name);
printf("lisi's age:%d\n",lisi.age);
printf("lisi's email:%s\n",lisi.email);
getchar();
}                                                                                                                                                                                                                                                                                                                                和下面一个                                                                                                          #include<stdio.h>
#include<conio.h>
main()
{
      char sz[]=" I Love china";
      printf("%s\n",sz);
      printf("请重新输入一个字符串,不多于12个字符\n" );
      scanf("%s",sz);
      printf("修改后的字符串为:%s\n",sz);
      getchar();
      }
      
谢谢。。。
搜索更多相关主题的帖子: email 
2011-02-09 08:58



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-331939-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.402302 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved