The images, logos, trademarks used on this site and all forwarded content are the property of their respective owners.
We are not responsible for comments posted by our visitors, as they are the property of the poster.
All other content of this website is copyrighted by 加西网 Private Policy | moonlake oblog skin
大家一般都上过电脑课吧?学习过语言的都要做一些编程练习。
一日,老师上机实践课时出了一道题让大家用C编程 -- 大意是采用各种可能的发那个方案输出某种特定格式的图案,其最后结果要和他的答案一致。一众同学在规定时间无解,又近午饭,众人更是头昏眼花。忽一同学叫老师,声他成了。老师前去一看,答案果同。就放其出去。众同学暗想,该人水平一般,何故今日高水平发挥。于是找其源程序一看。只有数句 “printf("XXXXX\n")” -- 囧。。。
此法正确。
本来简单的东西,不要复杂化。
比如要编写一个中型公司的人事档案,最简单快捷的数据结构是什么?就是:
struct
{
char name[40];
int level;
char tel[20];
....
} INFO;
INFO employees[1000];
呵呵。