c±à³ÌÇóÖú - C/C++ / CÓïÑÔ
ÊäÈë10ѧÉúµÄ³É¼¨£¬¹²4¿Æ£¬°´ÕÕÒªÇó±àдʵÏÖÏÂÁй¦ÄܵijÌÐò£¨ÓÃ×Óº¯ÊýʵÏÖ£©
1 Çó³öÿ¿ÆµÄƽ¾ù³É¼¨ ½«Æ½¾ù·Ö¡µ90µÄͬѧµÄÅÅÐò
×÷ÒµÌù~£¡
àÅ ÎÒͬѧ¸øÎÒ·¢µÄ×÷Òµ ÎÒ×òÌì×öÁË µ«Êǽá¹ûÔËÐв»¶Ô ×òÌìÓкöàÈË°ïÎÒ¿´ÁË
×Óº¯ÊýÊÇɶ×Ó¶«¶«.....
mainÒªµ÷ÓÃʵÏÖº¯Êý
¹À¼ÆÕâ¸öÒâ˼°É
°ÑÄãµÄ´úÂëÌùÉÏÀ´¡£
ÓпհïÄã¸Ä¸Ä¡£
Ö¸³öÄãµÄÎÊÌâËùÔÚ±ÈÖ±½Ó¸øÄã´úÂë¶ÔÄãÀ´ËµÒªºÃÒ»µã¡£
Òâ˼¾ÍÊÇ×Ô¼º¶¨ÒåÒ»¸öº¯ÊýÓÃÀ´¼ÆËãÓõġ¡¡¡CÓïÑÔÀï±ß²»ÊÇÓиö¶¨Ò庯ÊýÁË¡¡
#include "head.h"
void EveyAvg(int score[10][4])
{
int i,j;
int count=0;
int temp[10];
for(i=0;i<10;i++)
{
float sum=0;
for(j=0;j<4;j++)
{
sum+=score[i][j];
sum/=4.0;
if(sum>90)
{
temp[count]=sum;
count++;
}
}
}
for(i=1;i<count;i++)
{
for(j=0;j<count-i;j++)
{
if(temp[j]<temp[j+1])
{
temp[j]=temp[j]+temp[j+1];
temp[j+1]=temp[j]-temp[j+1];
temp[j]=temp[j]-temp[j+1];
}
}
}
for(i=0;i<count;i++)
{
printf("%d",temp[i]);
}
}
#include "head.h"
void SumAvg(int score[10][4])
{
int i,j;
int count=0;
int sum=0;
fo
Ïà¹ØÎÊ´ð£º
ÈçÌ⣬C/C++ÖеÄexeclÔõôµ÷ÓÃдºÃµÄjava³ÌÐò£¬
execl("/opt/java1.5/bin/java","MyClass",NULL);
ÕâÑùµÄ²»ÐÐŶ¡£
²»»á.
ÔËÐÐjava³ÌÐò
ÕÒ¹¤¾ß²é¿´Ò»ÏÂÄǸö³ÌÐòµÄÃüÁîÐÐ
ËÑË÷Ï£ºjni ......
ÓÐÒ»10*10¾ØÕ󣬳ýÈ¥µÚÒ»¸öµã£¨0£¬0£©ºÍ×îºóÒ»µã£¨9£¬9£©£¬»¹Óа˸öµãΪ1£¬ÆäËû¶¼Îª0£¬ÒªÇóÓöþάÊý×é±íʾ¡£°Ë¸öµãÊÇËæ»úÉú³ÉµÄ£¬±àдÏà¹Ø³ÌÐò±íʾ¾ØÕóËùÓпÉÄÜÇé¿ö¡£
ÕæÐÄÇó½Ì¸÷λ¸ßÊÖ£¬°¥£¡±¾ÈËÌ«²ËÁË£¡ºÇºÇ£¡
......
´ó¼ÒºÃ£º
ÎÒÏëʵÏÖ¼ì²âµ½²åÈëSD¿¨ºó×Ô¶¯½«SD¿¨¸ñʽ»¯µÄ¹¦ÄÜ£¬²»ÖªC/C++ÖÐÓÐûÓиñʽ»¯UÅ̵ĺ¯Êý£¿
ÁíÍ⣬ÎÒ²»ÏëʹÓÃSHFormatDrive£¬ÒòΪÕâ¸öº¯Êý»áµ¯³öÊÇ·ñÒª¸ñʽ»¯µÄÌáʾ¿ò£¬ÎÒÐèÒªµÄÊÇϵͳ×Ô¶¯¸ñʽ»¯£¬¶ø²Ù×÷Õß² ......
ΪʲôÎҵijÌÐòµ÷ÓÃXMLÅäÖÃÎļþÖеİ¢À²®ÎÄÏÔʾ²»³öÀ´£¿ÆäËûµÄÓïÖÖ¶¼¿ÉÒÔ£¬ÈçÖÐÎÄ£¬Ó¢ÎÄ£¬µÂÎĶ¼¿É¡£
ÎÒ½«XMLµÄ±àÂë¸ÄΪutf-8ºÍunicodeµÄµ½µÃ½á¹û¶¼Ò»Ñù.
°¢À²®ÎĵÄ×Ö¿âÄãÓÐô£¿
ÓÐ,ÎÒµÄEXEÊÇ·ÅÔÚpc»úÉÏÖ´Ðе ......
˼·£ºÒªÓÃc#Éú³ÉÒ»¸ö²¥·Å»úµÄ²¥·ÅÁбíµÄxml£¬ÀýÈ磺
<daty datys='2010-04-05' datye='2010-05-01' > //ÕâÊDz¥·ÅµÄÈÕÆÚ¶Î
<time times='01:12:00' timee='02:30:00'> ......