ÏÖÔڵĹ«Ë¾ÕÐƸ,¶¼Òª±ÊÊÔÃæÊÔ.Èç¹ûÄã²»ÊÇÄÇÖÖ±à³Ì¹¦µ×·Ç³£ÉîºñµÄÈË,ÓÖ²»ºÃºÃ×¼±¸Ò»·¬,ÔÚ±ÊÊÔÃæÊÔÖÐÍùÍù»á´¦ÓÚ±»¶¯¾ÖÃæ.ËäÈ»ÓÐЩ±ÊÊÔÌâÊǹÊÒâΪÄÑÎÒÃÇ£¬Óеã×êÅ£½Ç¼â.µ«ÊǺܶà±ÊÊÔÌâÃæÊÔÌâȷʵÄܹ»ºÜºÃµØ¿´³öÎÒÃǵĻù´¡. ÔÚÕâÀï,ÎÒ¾ÍÂÔÈ¥ÄÇЩ×êÅ£½Ç¼âµÄÌâ.´ÓcsdnÂÛ̳ÎÒ½ü°ëÄêµÄÊÕ¼¯ÖÐÑ¡³ö10µÀÓдú±íÐÔµÄÌâÄ¿,ÄѶȻù±¾ÉÏÊÇÖð½¥¼Ó´ó.¶ÔÊý×é,Ö¸Õë,Êý¾Ý½á¹¹,Ëã·¨,×Ö·û´®,Îļþ²Ù×÷µÈÎÊÌⶼÓи²¸Ç.Ö÷ÒªÒÔcÓïÑÔµÄʵÏÖΪÖ÷,Ò²ÓÐc++µÄÌâ.´ó¼Ò¿ÉÒÔÏÈ×ö×öÕâ10µÀÌâ,²âÊÔÒ»ÏÂ×Ô¼ºµÄˮƽ. 1. ÏÂÃæÕâ¶Î´úÂëµÄÊä³öÊǶàÉÙ(ÔÚ32λ»úÉÏ). char *p; char *q[20]; char *m[20][20]; int (*n)[10]; struct MyStruct { char dda; double dda1; int type ; }£»
MyStruct k; printf("%d %d %d %d",sizeof(p),sizeof(q),sizeof(m),sizeof(n),sizeof(k)); 2. (1) char a[2][2][3]={{{1,6,3},{5,4,15}},{{3,5,33},{23,12,7}} };
for(int i=0;i<12;i++)
printf("%d ",_______);
ÔÚ¿Õ¸ñ´¦ÌîÉϺÏÊʵÄÓï¾ä£¬Ë³Ðò´òÓ¡³öaÖеÄÊý×Ö (2) char **p, a[16][8]; ÎÊ£ºp=aÊÇ·ñ»áµ¼Ö³ÌÐòÔÚÒÔºó³öÏÖÎÊÌ⣿Ϊʲô£¿ 3.Óõݹ鷽ʽ,·ÇµÝ¹é·½Ê½Ð´º¯Êý½«Ò»¸ö×Ö·û´®·´×ª. º¯ÊýÔÐÍÈçÏÂ:char *reverse(char *str); 4.strcpyº¯ÊýºÍmemcpyº¯ÊýÓÐʲôÇø±ð?ËüÃǸ÷×ÔʹÓÃʱӦ¸Ã×¢ÒâʲôÎÊÌâ? 5.дһ¸öº¯Êý½«Ò»¸öÁ´±íÄæÐò. Ò»¸öµ¥Á´±í£¬²»ÖªµÀ³¤¶È£¬Ð´Ò»¸öº¯Êý¿ìËÙÕÒµ½Öмä½ÚµãµÄλÖÃ. дһ¸öº¯ÊýÕÒ³öÒ»¸öµ¥ÏòÁ´±íµÄµ¹ÊýµÚn¸ö½ÚµãµÄÖ¸Õë.(°ÑÄÜÏëµ½µÄ×îºÃË㷨д³ö). 6.ÓõݹéËã·¨ÅжÏÊý×éa[N]ÊÇ·ñΪһ¸öµÝÔöÊý×é¡£ 7. ÓÐÒ»¸öÎļþ(ÃûΪa.txt)ÈçÏÂ,ÿÐÐÓÐ4Ïî,µÚÒ»ÏîÊÇËûÃǵÄÃû´Î,дһ¸öc³ÌÐò,½«Îå¸öÈ˵ÄÃû×Ö´òÓ¡³öÀ´.²¢°´Ãû´ÎÅÅÐòºó½«5ÐÐÊý¾ÝÈÔÈ»±£´æµ½a.txtÖÐ.ʹÎļþ°´Ãû´ÎÅÅÁÐÿÐÐ. 2,07010188,0711,ÀîÕòºÀ,
1,07010154,0421,³ÂÒàÁ¼,
3,07010194,0312,ÁèÈðËÉ,
4,07010209,0351,ÂÞ°²Ïé,
5,07010237,0961,»ÆÊÀ´«, 8.дһ¸öº¯Êý,ÅжÏÒ»¸öunsigned char ×Ö·ûÓм¸Î»ÊÇ1. дһ¸öº¯ÊýÅжϼÆËã»úµÄ×ֽڴ洢˳ÐòÊÇÉýÐò(little-endian)»¹ÊǽµÐò(big-endian). 9.΢ÈíµÄ±ÊÊÔÌâ. Implement a string class in C++ with basic functionality like comparison, concatenat