#include"stdio.h"
int main()
{
struct cmpix
{
int x;
int y;
}cnum[2]={1,3,2,7};
printf("%d\n",cnum[0].y/cnum[0].x*cnum[1].x);
return 0;
}
1.
cnum[2]={1,3,2,7}ÕâÑùÓÐ´í²»£¿
²»Ó¦¸ÃÊÇcnum[2]={{1,3},{2,7}}Âð£¿
2.
³ÌÐòÖУº
cnum[2]={1,3,2,7}Óï¾äÓëcnum[2]={{1,3},{2,7}}ÊÇ·ñÏàͬ£¿
¿ÉÒÔÕâÑù.ûÎÊÌâ
cnum[2]={1,3,2,7}Óï¾äÓëcnum[2]={{1,3},{2,7}}Êǵȼ۵Ä.
µ«Ò»°ã»¹ÊÇд³ÉºóÕߵķ½Ê½£¬¶Ôÿ¸öÔªËصijõʼ»¯Ò»Ä¿ÁËÈ»£¬¿Éά»¤ÐÔºÃһЩ.
C/C++ code:
#include <stdio.h>
int main()
{
struct cmpix
{
int x;
int y;
}cnum[2]=
{
{1,3},
{2,7},
};
printf("%d\n",cnum[0].y/cnum[0].x*cnum[1].x);
return 0;
}
дµÄÆæÐιÖ×´µÄ¶¼¿ÉÒÔ,¶à¸ö,Ò²¿ÉÒÔ.
ûÓÐÎÊÌ⣬¿ÉÒÔÕâÑùд£¬µ«ÊÇÎÒ¾õµÃ×îºÃÕâÑùд
C/C++ code:
#include"stdio.h"
struct cmpix
{
int x;
int y;
}cnum[2]={{1,3},{2,7}};
int main()
{
printf("%d\n",cnum[0].y/cnum[0].x*cnum[1].x);
return 0;
}
cnum[2]={1,3,2,7}ÕâÑùдÊÇûÓдíµÄ£¬µ«ÕâÑùcnum[2]={{1,3},{2,7}}¸üºÃ¡£
cnum[2]={
visual c++2008Ëٳɰ棬²»ÄܱàÒëC³ÌÐòÂð£¿Èç¹ûÄÜÊÇÔõô¿ªÊ¼µÄ°¡£¿ÓÃËü´øµÄÃüÁîÌáʾµ¥Ôª³ýÍâ ¡£
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆ̨£©
¾ø¶Ô¿ÉÒÔ¡£½¨Á¢win32¿ØÖÆ̨³ÌÐò¾Í¿ÉÒÔ
ÒýÓÃ
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆ̨£ ......
[align=center][/align]CÓïÑÔÖÐÈçºÎÅжÏÒ»¸ödoubleÐ͵ÄÊý×飨Èçdouble S[20]£»£©ÊÇÒ»¸ö¿ÕÊý×飬¼´Êý×éÖÐûÓзÅÈκÎÖµ¡£
û°ì·¨¡£
"ÈκÎÖµ" µÄ¶¨Òå?
¾ÍÊÇÊý×éÊǿյģ¬Ã»ÓÐΪËü¸³Öµ
¿ÉÒÔ¿¼Â ......