摘要: 第一题 1 #include 2 #include 3 using namespace std; 4 int main() 5 { 6 char fristname[20]; 7 char lastname[20]; 8 char grade; 9 int age;1... 阅读全文
posted @ 2014-12-02 17:02 陶修瑕 阅读(158) 评论(0) 推荐(0)
摘要: 1、1 char actors[30];2 short betsic[100];3 float chuck[13];4 long double dipsea[64];2、1 arrayactor;2 arraybestic;3 arraychuck;4 arraydipsea;3、int a[5]=... 阅读全文
posted @ 2014-12-02 14:07 陶修瑕 阅读(165) 评论(0) 推荐(0)
摘要: 4.9类型组合 1 #include 2 struct years 3 { 4 int year; 5 }; 6 7 int main() 8 { 9 using namespace std;10 11 years s1,s2,s3;12 s1.year=1998;... 阅读全文
posted @ 2014-12-02 12:07 陶修瑕 阅读(117) 评论(0) 推荐(0)
摘要: 如果给cout提供一个字符的地址,则他将从该字符开始打印,直到遇到空字符为止。 1 #include 2 #include 3 int main() 4 { 5 using namespace std; 6 char animal[20]="bear"; 7 const ch... 阅读全文
posted @ 2014-12-02 11:04 陶修瑕 阅读(273) 评论(0) 推荐(0)