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
Ïà¹ØÎÊ´ð£º
SHIFT¼ÓF10ÓëÄǸö¼üÓÒctrl±ßÉϵÄÄǸö¼ü¹¦ÄÜÒ»Ñù£¬ÏëÆÁÕâ¸ö
µ«²»ÖªÒªÔõôдÄǸö×éºÏ¼ü£¡
ÓÐûÄĸö´óÏÀ·ÅÒ»¶ÎÕâ¸öµÄ´úÂë»òдһ¶Î
http://topic.csdn.net/u/20090609/15/7dc9fb70-243f-4070-9cfd-34e48b66e6c6.html
......
±¾ÈËÕýÔÚÓÃJava×öÒ»¸öC/S¼Ü¹¹µÄÏîÄ¿£¬
¿ÉÊÇÓÉÓÚÏîÄ¿±È½Ï´ó£¬Ç°ÆڶԼܹ¹µÄÉè¼ÆÓÈÆäÖØÒª£¬ÒòΪºóÆÚ¿ÉÄÜËæʱ»á¼Ó¸ö¹¦ÄÜ»òÕßÈ¥µôijЩ¹¦ÄÜ¡£
ËùÒÔÌصØÑ°ÇóÈçºÎÉè¼ÆC/SµÄ¼Ü¹¹Ê¹³ÌÐò¸ü¼ÓÃæÏò¶ÔÏó¸ü¼ÓÒ×ÓÚά ......
ÔÚ¸ùĿ¼/libÖдæ·ÅÒ»¸ölog.c£¬log.h£¬²¢ÓÃÏÂÃæµÄÓï¾ä£º
gcc -c log.c
ar crv liblog.a log.o
±àÒë³öÒ»¸öliblog.a¾²Ì¬¿â£¬È»ºóÔÚÎļþ¼Ð£º/testfileÖд´½¨Ò»¸ötest.cºÍtestc.c£¬test.cÖÐÒýÓÃÁËtestc.cÖж¨ÒåµÄ·½·¨ ......
ΪʲôÎҵ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'> ......