¹ØÓÚcµÄÁ´±íÎÊÌ⣬Çó½Ì£¡ - C/C++ / CÓïÑÔ
ÕâÊÇÒ»¸öÓÃÁ´±í¼Ç¼¼üÅÌÊäÈëµÄѧÉú³É¼¨£¬×îÖÕÊä³ö×Ü·ÖµÚÒ»ÃûѧÉúµÄÏêϸÐÅÏ¢ºÍ³É¼¨µÄ³ÌÐò£¬ÊäÈëºÍÊä³ö²¿·Ö¶¼Ã»Ê²Ã´ÎÊÌ⣬ֻÊÇÅжÏÅÅÐò²¿·Ö×ÜÊÇÊä³ö²»ÕýÈ·£¬ÇóÖ¸½Ì
C/C++ code:
/*C language class exercise*/
#include<stdio.h>
#include<stdlib.h>
typedef struct link_list/*½¨Á¢Ò»¸öÁ´±í£¬³ÉÔ±ÊÇѧÉúµÄ³É¼¨£¬Ñ§ºÅ£¬ÈýÃſγ̵ijɼ¨ ÒÔ¼°ÈýÃſγ̳ɼ¨µÄºÍ*/
{
char name[10];
int code;
float math;
float english;
float physical;
float total_all;
struct link_list *next;
} *pointer,link;/*ÉùÃ÷ÁËÁ½¸öÐÂÀàÐÍÃû£¬Ò»¸öÊÇÖ¸Õ룬һ¸öÊÇÀàÐÍÃû*/
int main (void)
{
float english_total=0.0,math_total=0.0,physical_total=0.0;/*ÉùÃ÷´¢´æÿÿÃſγÌËùÓгɼ¨ºÍµÄ±äÁ¿*/
pointer first,start,end;/*ÉùÃ÷Èý¸öÖ¸ÕëÓÃÓÚ½¨Á¢Á´±íºÍÅÅÐò*/
int i;/*Ñ»·¿ØÖƱäÁ¿*/
start=(pointer)malloc(sizeof(link));/*ÉêÇë¿Õ¼ä£¬½¨Á¢Á´±í*/
start->next=NULL;/*ÈÃÁ´±íµÄµØÖ·ÓòÖ¸Ïò¿Õ*/
printf("Please input all number: name code math english physical");
for (i=0;i<10;i++)
{
end=(pointer)malloc(sizeof(link));/*Ñ»·ÊäÈëÿ¸ö½ÚµãµÄÖµ*/
printf("number:[%d] ",i+1);
scanf("%s %d %f %f %f",&end->name,&end->code,&end->math,&end->english,&end->physical);
end->total_all=(end->english)+(end->math)+(end->physical);/*¼ÆËãÿ¸öͬѧµÄ³É¼¨×ܺÍÓ
Ïà¹ØÎÊ´ð£º
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
´ó¼ÒºÃ£º
ÎÒÏëʵÏÖ¼ì²âµ½²åÈëSD¿¨ºó×Ô¶¯½«SD¿¨¸ñʽ»¯µÄ¹¦ÄÜ£¬²»ÖªC/C++ÖÐÓÐûÓиñʽ»¯UÅ̵ĺ¯Êý£¿
ÁíÍ⣬ÎÒ²»ÏëʹÓÃSHFormatDrive£¬ÒòΪÕâ¸öº¯Êý»áµ¯³öÊÇ·ñÒª¸ñʽ»¯µÄÌáʾ¿ò£¬ÎÒÐèÒªµÄÊÇϵͳ×Ô¶¯¸ñʽ»¯£¬¶ø²Ù×÷Õß² ......
ΪʲôÎҵijÌÐòµ÷ÓÃXMLÅäÖÃÎļþÖеİ¢À²®ÎÄÏÔʾ²»³öÀ´£¿ÆäËûµÄÓïÖÖ¶¼¿ÉÒÔ£¬ÈçÖÐÎÄ£¬Ó¢ÎÄ£¬µÂÎĶ¼¿É¡£
ÎÒ½«XMLµÄ±àÂë¸ÄΪutf-8ºÍunicodeµÄµ½µÃ½á¹û¶¼Ò»Ñù.
°¢À²®ÎĵÄ×Ö¿âÄãÓÐô£¿
ÓÐ,ÎÒµÄEXEÊÇ·ÅÔÚpc»úÉÏÖ´Ðе ......
visual c++2008Ëٳɰ棬²»ÄܱàÒëC³ÌÐòÂð£¿Èç¹ûÄÜÊÇÔõô¿ªÊ¼µÄ°¡£¿ÓÃËü´øµÄÃüÁîÌáʾµ¥Ôª³ýÍâ ¡£
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆ̨£©
¾ø¶Ô¿ÉÒÔ¡£½¨Á¢win32¿ØÖÆ̨³ÌÐò¾Í¿ÉÒÔ
ÒýÓÃ
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆ̨£ ......
ÏÖÓÐparadoxÊý¾Ý¿âʹÓÃBDEÇý¶¯£¬Äâ¸ÄΪC/S°æ£¬Ôö¼ÓÍøÂç¶ÁÈ¡Êý¾Ý¹¦ÄÜ¡£ÇëÄÄλ´óÏÀ£¬ÌṩԴÂë¡£
˵¾ä²»¿ÍÆøµÄ»°£¬ÓÃparadox×öC/SÊÇ×ÔÑ°ËÀ·¡£
»»Ò»¸öÍøÂçÊý¾Ý¿â
ÒòΪ²»Ï붯´óÊÖÊõ£¬½öÄܹ²Ïí¼¸¸öÎļþ¼´¿É¡£
Da ......