摘要: #include #include #includeusing namespace std;int main(){ //定义结构类型 struct human { char name[10]; int sex; int age; }; //声... 阅读全文
posted @ 2015-06-10 19:28 微博和csdn还有你 阅读(272) 评论(0) 推荐(0) 编辑
摘要: // 声明用于存放运动员号码的数组 int h[]={1001,1002,1003,1004}; // 声明用于存放运动员成绩的数组 float x[]={12.3,13.1,11.9,12.1}; //声明用于存放运动姓名的字符型指针数组 char ... 阅读全文
posted @ 2015-06-10 16:00 微博和csdn还有你 阅读(289) 评论(0) 推荐(0) 编辑
摘要: #include #include #includeusing namespace std;int main(){ //声明字符型数组和指针变量 char str[10]; char *strip=str; //输入输出 cout>str; //用字符数组输... 阅读全文
posted @ 2015-06-10 14:34 微博和csdn还有你 阅读(566) 评论(0) 推荐(0) 编辑