CÎļþ²Ù×÷Óëfstream¶ÁÈ¡Îı¾ÎļþµÄЧÂʱȽÏ
Õ⼸ÌìÓÉÓÚÒª¶ÁÈ¡½Ï´óµÄÎı¾Îļþ£¬ËùÒԾͱȽÏÁËÒ»ÏÂÁ½ÕßÖ®¼äµÄЧÂÊÎÊÌâ¡£ ËùÒª¶ÁÈ¡µÄÎı¾Îļþ½á¹¹ÎªÃ¿ÐÐÓÉ5¸öÊý×é³É£¬int int int float int£¬²âÊÔµÄÎļþÓÐ33WÐУ¬´óСΪ9M¡£ÏÖÔÚÒª½«Æä¶Áµ½Ò»¸öcube½á¹¹ÌåÀïÃæÈ¥£¬½á¹¹ÌåÓÐ5¸ö³ÉÔ±±äÁ¿ÓëÖ®¶ÔÓ¦¡£ Á½ÖÖ²Ù×÷µÄ´úÂëÈçÏ start = clock();
while(1)
{
fscanf(fp,"%d %d %d %f %d",&tmpcube.x,&tmpcube.y,&tmpcube.z,&tmpcube.temp,&tmpcube.type);
cubes.push_back(tmpcube);
if (tmpcube.type == -1)
break;
}
end = clock(); start = clock();
while(1)
{
fp>>tmpcube.x>>tmpcube.y>>tmpcube.z>>tmpcube.temp>>tmpcube.type;
cubes.push_back(tmpcube);
if (tmpcube.type == -1)
break;
}
end = clock(); ×îºóÔÚÎҵĵçÄÔ(AMD4000+)ÉÏÔËÐеõ½µÄ½á¹ûΪǰÕß960ms×óÓÒ ºóÕß2400+ms
Ïà¹ØÎĵµ£º
VB
If MSComm1.PortOpen = True Then MSComm1.PortOpen = False
MSComm1.CommPort = i1
MSComm1.PortOpen = True
MSComm1.InputMode = comInputModeBinary
MSComm1.InBufferCount = 0
& ......
µ±½ñÓÐÐí¶àÃâ·ÑµÄ RDBMS£¨Relational Database Management
System£¬¹ØϵÊý¾Ý¿â¹ÜÀíϵͳ£©£¬ÆäÖÐһЩÊÇ¿ª·ÅÔ´ÂëÈí¼þ£¬ÁíһЩÊÇÉÌÒµ³§ÉÌÌṩµÄÃâ·Ñ²úÆ·¡£Èç¹ûÄúÕýÔÚʹÓà C/C++¡¢Java™¡¢.NET
»ò PHP
¿ª·¢Ó¦ÓóÌÐò£¬ÏëÑ°ÕÒÒ»ÖÖ¿É¿¿µÄÊý¾Ý·þÎñÆ÷£¬Ï£ÍûËüÖ§³ÖÏȽøµÄ¼¼Êõ¡¢¾ßÓ⻶ÏÀ©´óµÄ¿ª·¢ÈËÔ±ÉçÇø²¢ÒѾ²¿ÊðÔÚÐí¶à¹Ø¼ ......
C/C+ÓïÑÔstructÉî²ã̽Ë÷
×÷ÕߣºËᦻª ³ö´¦£ºPConline
1. structµÄ¾Þ´ó×÷ÓÃ
¡¡¡¡Ãæ¶ÔÒ»¸öÈ˵ĴóÐÍC/C++³ÌÐòʱ£¬Ö ......
Õ⼸ÌìÔÚʹÓÃÓÃCд¸öÏîÄ¿×éµÄ×Ô¶¯»¯²âÊÔ¹¤¾ßÀàËÆCGI³ÌÐò£¬µÚÒ»¸öÓöµ½µÄÎÊÌâ¾ÍÊDZàÂëÁË¡£
0~9 a~z A¡«ZÕâЩ×Ö·ûÊDz»»á±»±àÂëµÄ£¬µ«ÊDZÈÈçһЩÌØÊâ×Ö·û»òÊÇÖÐÎÄ£¬post»ògetÊý¾Ýʱ£¬»á¶ÔÊý¾Ý×Ô¶¯½øÐбàÂ룬±ÈÈ纺×Ö'ÖÐ',Èç¹ûÒ³Ãæ²ÉÓõÄÊÇgb2312±àÂ룬'ÖÐ'×ֻᱻ±àÂëΪ'%D6%D0'£¬ºöÂÔ'%'±êʶ,Á½¸öÊ®Áù½øÖÆÊý£¬¼´0xD6,0xD0£¬Áù¸ ......
½ñÌì²Î¼Ó±ÊÊÔ,ÆäÖÐÓÐÁ½ÌâÊÇ·ÖÅäÄÚ´æµÄ,µÚÒ»ÌâÊǶ¯Ì¬·ÖÅäÒ»¸öһάÊý×é,µÚ¶þ¸öÌâÊǶ¯Ì¬·ÖÅäÒ»¸ö¶þάÊý×é.µÚÒ»ÌâºÍµÚ¶þÌâÎÒ·Ö±ðÊÇÕâÑùдµÄ:
/*µÚÒ»Ìâ*/
p=(float*)malloc(sizeof(float[M]));
/*µÚ¶þÌâ*/
p=(float*)malloc(sizeof(int[M][N]));
½á¹û˵ÎÒµÚ¶þÌâ´íÁË,ÎÒ»¹²»Ã÷°×´íÄÄÁË,ÎÒÓÖÎÊд³ÉM*N¶Ô²»,½á¹û»¹ÊÇ˵²»¶Ô.¸Õ² ......