首页 | 乐园 | 淘宝店 | 社区 | 电驴 | 网页游戏 | 网址大全
attach

第41讲.csf

最新评论

 
内容
评分
 

相关评论

0cd 2009/11/28 15:56:37 [+1] [0]

好多内容 希望有更多的精彩

回复

zhengyi_super 2009/11/21 12:41:27 [0] [0]

这个资源很好的,下载方便,谢谢楼主了。

回复

touchsky200606 2009/11/10 16:24:20 [0] [0]

好东西,谢谢楼主分享

回复

853358760 2009/11/08 09:38:13 [0] [0]

感谢分享啊

回复

gxhreader 2009/10/21 14:22:30 [0] [0]

十分感谢楼主和各位提供资源

回复

qq490441460 2009/10/15 21:38:07 [0] [0]

感谢你。!支持- -

回复

88xiaoliangok 2009/09/25 00:32:55 [0] [0]

支持你的分享精神,贡献

回复

happygao521 2009/09/22 14:15:29 [+1] [0]

QQ群
13112135

回复

佳越梦想 2009/09/17 09:31:39 [+1] [0]

太感谢了

回复

daqiang26 2009/09/16 16:21:40 [+1] [0]

例题8.4 从键盘上读10个值,每个值从一新行开始读起,以字符I或C开头,指出此值是整数还是字符。把这些值保存在链表中,重新显示。
#include "stdio.h"
#define ERROR {printf("errorn");return;}
#define SKIP while(getchar()!='n');
main()
{int i;
struct item
{union
{char c;
int a;
}val;
int what;
struct item *next;
}*p,*temp;
if((p=(struct item*)malloc(sizeof(struct item)))==NULL)
ERROR
temp=p;
for(i=0;;i++)
{switch(getchar())
{case 'i'tongue.gif->what=0;scanf("%d",&(p->val.a));break;
case 'c'tongue.gif->what=1;scanf("%c",&(p->val.c));break;
default:ERROR
}
SKIP
if(i==9) break;
else
{if((p->next=(struct item*)malloc(sizeof(struct item)))==NULL)
ERROR
p=p->next;
}
}
for(i=0,p=temp;i<10;p=p->next,i++)
if(p->what)
printf("%c",p->val.c);
else printf("%d",p->val.a);
}
为何字符没有输出?

回复

tank103016 2009/09/15 09:50:54 [0] [0]

非常好的资源感谢楼主分享!!!

回复

lipingyahoo 2009/08/15 23:59:06 [+1] [0]

谢了

回复

zsyjpki 2009/08/08 16:34:48 [0] [0]

各位如果下不到的话
就下这个地址ftp://210.51.180.252/bbs/computer/吉林大学C语言视频教程_第01集[www.TopSage.com].zip
把01换成01-51就好了,这个用迅雷比较方便
或者直接去http://bbs.topsage.com/dispbbs.asp?boardID=121&ID=177517

回复

早班火车yy 2009/08/06 10:59:03 [0] [-1]

好东西!

回复

boniehan 2009/08/05 14:22:32 [+1] [-1]

谁说这好的,泪奔了

回复

该文件创建于 2005-05-26 22:15:38
文件大小:
(77196112 字节)
文件指纹:
aab93a530bd8d8054fae18bd34984d1b
文件格式:
未知类型
文件详情:
ed2k:
相关文件
第01讲.csf
第02讲.csf
第03讲.csf
第04讲.csf
第05讲.csf
第06讲.csf
第07讲.csf
第08讲.csf
第09讲.csf
第10讲.csf
第11讲.csf
第12讲.csf
第13讲.csf
第14讲.csf
第15讲.csf
第16讲.csf
第17讲.csf
第18讲.csf
第19讲.csf
第20讲.csf
显示全部
相关资源
《C语言程序设计》
by phoenix639
相关分类
资料 计算机教程
关于我们 | 诚聘英才 | 著作权声明 | 合作信息 | 广告事务
沪ICP备05001009号
©2003 - 2009 VeryCD.com Some Rights Reserved.