Ö÷Ì⣺Çë½ÌC£¬Êý×éµÄÎÊÌâ¡£ - C/C++ / CÓïÑÔ
ÒÔÏÂÊÇÎÒдµÄ³ÌÐò£º
# include <stdio.h>
# define students 5
int main(int argc, char** argv)
{
int student[students];
int i;
for (i=1;i<=students;i++)
{
printf("Number %d\n", i);
scanf("%d",&student[i]);
}
do
{
printf("Query: \n");
scanf("%d",&i);
if(i<=0 || i>students) break;
printf("%d\n", student[i]);
}while (1);
return 0;
}
ÔÚCÖУ¬ Èç¹û¶¨ÒåÁËÒ»¸öa[5]µÄÊý×飬 ÊDz»ÔÊÐíʹÓÃa[5]Õâ¸öÔªËصġ£
²»¹ý£¬ÔÚÎҵijÌÐòÖоͿÉÒÔʹÓᣠ²»ÖªµÀΪʲô£¬ ÇëÖ¸½Ì¡£
ÁíÍ⣬ÎÒʹÓõÄÊÇGCC±àÒëÆ÷¡£
C±àÒëÆ÷²»¶Ô³ÌÐòÔ±µÄÎó²Ù×÷¸³Öµ£¬Òò´ËºÜÃ÷ÏÔʹÓÃa[5]ÊÇÄãµÄÎó²Ù×÷£¬µ«±àÒëÆ÷²»¹Ü£¬¶ÔËüÀ´Ëµ£¬Õâ¾ÍÊÇÒ»¸öµØÖ·£¨a£©+Æ«ÒÆ£¨5£©µÄ¹ý³Ì
ÔÚÄÄÀﶼ²»ÈÝÐíʹÓã¡
µ«ÊÇÄãʵÔÚÒªÓà £¬ ±àÒëÆ÷Ҳû°ì·¨£¡
a¡¾5¡¿ÓõIJ»ÊÇÄã ¶¨ÒåµÄÊý×é £¬ ÒѾԽ½çÁË£¡ ΣÏÕ£¡
C/C++ code:
for (i=1;i<=students;i++)
{
printf("Number %d\n", i);
scanf("%d",&student[i]);
}
Ä
Ïà¹ØÎÊ´ð£º
ÈçÌ⣬C/C++ÖеÄexeclÔõôµ÷ÓÃдºÃµÄjava³ÌÐò£¬
execl("/opt/java1.5/bin/java","MyClass",NULL);
ÕâÑùµÄ²»ÐÐŶ¡£
²»»á.
ÔËÐÐjava³ÌÐò
ÕÒ¹¤¾ß²é¿´Ò»ÏÂÄǸö³ÌÐòµÄÃüÁîÐÐ
ËÑË÷Ï£ºjni ......
±¾ÈËÕýÔÚÓÃJava×öÒ»¸öC/S¼Ü¹¹µÄÏîÄ¿£¬
¿ÉÊÇÓÉÓÚÏîÄ¿±È½Ï´ó£¬Ç°ÆڶԼܹ¹µÄÉè¼ÆÓÈÆäÖØÒª£¬ÒòΪºóÆÚ¿ÉÄÜËæʱ»á¼Ó¸ö¹¦ÄÜ»òÕßÈ¥µôijЩ¹¦ÄÜ¡£
ËùÒÔÌصØÑ°ÇóÈçºÎÉè¼ÆC/SµÄ¼Ü¹¹Ê¹³ÌÐò¸ü¼ÓÃæÏò¶ÔÏó¸ü¼ÓÒ×ÓÚά ......
´ó¼ÒºÃ£º
ÎÒÏëʵÏÖ¼ì²âµ½²åÈëSD¿¨ºó×Ô¶¯½«SD¿¨¸ñʽ»¯µÄ¹¦ÄÜ£¬²»ÖªC/C++ÖÐÓÐûÓиñʽ»¯UÅ̵ĺ¯Êý£¿
ÁíÍ⣬ÎÒ²»ÏëʹÓÃSHFormatDrive£¬ÒòΪÕâ¸öº¯Êý»áµ¯³öÊÇ·ñÒª¸ñʽ»¯µÄÌáʾ¿ò£¬ÎÒÐèÒªµÄÊÇϵͳ×Ô¶¯¸ñʽ»¯£¬¶ø²Ù×÷Õß² ......
visual c++2008Ëٳɰ棬²»ÄܱàÒëC³ÌÐòÂð£¿Èç¹ûÄÜÊÇÔõô¿ªÊ¼µÄ°¡£¿ÓÃËü´øµÄÃüÁîÌáʾµ¥Ôª³ýÍâ ¡£
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆ̨£©
¾ø¶Ô¿ÉÒÔ¡£½¨Á¢win32¿ØÖÆ̨³ÌÐò¾Í¿ÉÒÔ
ÒýÓÃ
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆ̨£ ......
ÎÒ¸Õ°ÑÌ·ºÆÇ¿µÄµÚÈý°æµÄÊéѧÍ꣬ÎÒÖªµÀµÄÓÐC++£¬CºÍÖ¸Õë CȱÏݺÍÏÝÚå Cר¼Ò±ä³É£¬»¹ÓÐÊý¾Ý½á¹¹£¬ÎÒÏëÎÊÎÊÎÒÓ¦¸ÃÒÔʲô˳ÐòÀ´Ñ§ÄØ
CȱÏݺÍÏÝÚå Cר¼Ò±à³Ì
Êǽø½×µÄ£¬²»Óü±×Å¿´
ÖÁÓÚ
CºÍÖ¸Õë
Äã²»Àí½âÖ ......