Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

¹ØÓÚ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);/*¼ÆËãÿ¸öͬѧµÄ³É¼¨×ܺÍÓ


Ïà¹ØÎÊ´ð£º

linux»·¾³ÏÂgethostbynameº¯ÊýÎÊÌâ - C/C++ / CÓïÑÔ

дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
   
  struct hostent *hp; 
char AlarmDevIP[20];  
  int x2;

hp = gethostbyname("www.google.com");
if (hp)
{ ......

execlÔõôµ÷ÓÃjava³ÌÐò - C/C++ / CÓïÑÔ

ÈçÌ⣬C/C++ÖеÄexeclÔõôµ÷ÓÃдºÃµÄjava³ÌÐò£¬
execl("/opt/java1.5/bin/java","MyClass",NULL);
ÕâÑùµÄ²»ÐÐŶ¡£

²»»á.

ÔËÐÐjava³ÌÐò
ÕÒ¹¤¾ß²é¿´Ò»ÏÂÄǸö³ÌÐòµÄÃüÁîÐÐ

ËÑË÷Ï£ºjni ......

C/SÏîÄ¿¼Ü¹¹Éè¼Æ----ÇóÖú - Java / Java SE

±¾ÈËÕýÔÚÓÃJava×öÒ»¸öC/S¼Ü¹¹µÄÏîÄ¿£¬ 
¿ÉÊÇÓÉÓÚÏîÄ¿±È½Ï´ó£¬Ç°ÆڶԼܹ¹µÄÉè¼ÆÓÈÆäÖØÒª£¬ÒòΪºóÆÚ¿ÉÄÜËæʱ»á¼Ó¸ö¹¦ÄÜ»òÕßÈ¥µôijЩ¹¦ÄÜ¡£ 
ËùÒÔÌصØÑ°ÇóÈçºÎÉè¼ÆC/SµÄ¼Ü¹¹Ê¹³ÌÐò¸ü¼ÓÃæÏò¶ÔÏó¸ü¼ÓÒ×ÓÚά ......

Çó½Ìc/c++ÓïÑÔÏà¹ØÎÊÌâ - C/C++ / CÓïÑÔ

ÓÐÒ»10*10¾ØÕ󣬳ýÈ¥µÚÒ»¸öµã£¨0£¬0£©ºÍ×îºóÒ»µã£¨9£¬9£©£¬»¹Óа˸öµãΪ1£¬ÆäËû¶¼Îª0£¬ÒªÇóÓöþάÊý×é±íʾ¡£°Ë¸öµãÊÇËæ»úÉú³ÉµÄ£¬±àдÏà¹Ø³ÌÐò±íʾ¾ØÕóËùÓпÉÄÜÇé¿ö¡£
ÕæÐÄÇó½Ì¸÷λ¸ßÊÖ£¬°¥£¡±¾ÈËÌ«²ËÁË£¡ºÇºÇ£¡
......

C/C++ÖÐÓÐûÓиñʽ»¯UÅ̵ĺ¯Êý - C/C++ / C++ ÓïÑÔ

´ó¼ÒºÃ£º
ÎÒÏëʵÏÖ¼ì²âµ½²åÈëSD¿¨ºó×Ô¶¯½«SD¿¨¸ñʽ»¯µÄ¹¦ÄÜ£¬²»ÖªC/C++ÖÐÓÐûÓиñʽ»¯UÅ̵ĺ¯Êý£¿
ÁíÍ⣬ÎÒ²»ÏëʹÓÃSHFormatDrive£¬ÒòΪÕâ¸öº¯Êý»áµ¯³öÊÇ·ñÒª¸ñʽ»¯µÄÌáʾ¿ò£¬ÎÒÐèÒªµÄÊÇϵͳ×Ô¶¯¸ñʽ»¯£¬¶ø²Ù×÷Õß² ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ