7-6
来源:互联网 发布:淘宝钻展一般多少钱 编辑:程序博客网 时间:2024/06/07 15:36
#include <iostream>#include <strstream>using namespace std;//struct staffstruct student{ int num; char name[10]; //int age; //double pay; double score;};int main(){student stud[3]={1001,"z",78,1002,"x",89.5,1004,"f",90},stud1[3]; char c[50];int i;ostrstream strout(c,50);for(i=0;i<3;i++)strout<<stud[i].num<<" "<<stud[i].name<<" "<<stud[i].score<<" ";strout<<ends;cout<<"array c:"<<endl<<c<<endl<<endl;istrstream strin(c,50);for(i=0;i<3;i++)strin>>stud1[i].num>>stud1[i].name>>stud1[i].score;cout<<"data from array c to arry s1:"<<endl;for(i=0;i<3;i++)cout<<stud[i].num<<" "<<stud[i].name<<" "<<stud[i].score<<endl;cout<<endl;return 0;}
0 0
- 7/6
- 7/6
- 6-7
- 7-6
- SNMP_PP_CHS Charpter 6 - 7
- 6+5=7
- 7,6,2007
- 2008-6-7
- 6月7日!!!
- 7月6号
- 2010/7/6
- 7月6日
- 2011-6-7
- 日志2011-7-6
- 2012-7-6 计划
- 2012-7-6 总结
- 例7-6
- 6 . 7 上溯造型
- OC学习--文件操作
- Lucene源码解析--IndexWriterConfig配置参数说明
- hdu 1281 棋盘游戏
- 婴幼儿乳制品和钙的摄入建议--澳洲相关育儿经验分享
- Linux下Tomcat的启动、关闭、杀死进程
- 7-6
- [leetcode] Decode Ways
- [算法]java实现 二分查找 斐波那契数列 静静思考
- Spring Jdbc
- 进程管理(四)
- linux下导入、导出mysql数据库命令
- HDU 1151 Air Raid(最小路径覆盖)
- 新的一天 新的征程
- struts2 counter循环标签的使用