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

turbo C ϵĴò×ÖÓÎÏ·

ÔÚÕâÀïÌùÉÏ×î½ü×Ô¼ºÃ¦»îµÄÓÃturbo C±àдµÄ“´ò×ÖÓÎÏ·”µÄÔ´´úÂ룺
#include<graphics.h>
#include<conio.h>
#include<STDLIB.h>
#include<dos.h>
#define BK_COLOR BLACK
#define CHAR_COLOR WHITE
#define C_COLOR BLUE
#define num 10
#define SPEED 3000
#define Esc 27
#define MenuX 200
#define MenuY 110
#define MenuWidth 200
#define MenuSinH 40
#define ChoiceX MenuX+15
#define ChoiceY MenuY+10
#define ChoiceWidth 170
#define ChoiceH 25
#define UpKey 72
#define DownKey 80
#define Enter 13
void  Choice(int c_x,int c_y,int color)
{
 setfillstyle(1,color);
 bar(c_x,c_y,c_x+ChoiceWidth,c_y+ChoiceH);
}
void Main_Menu()
{
 settextstyle(0,0,2);
 outtextxy(MenuX+20,MenuY+15,"Start Game");
 outtextxy(MenuX+20,MenuY+MenuSinH+15,"Game Steup");
 outtextxy(MenuX+40,MenuY+2*MenuSinH+15,"Exit");
}
void Option_Menu()
{
 settextstyle(0,0,2);
 outtextxy(MenuX+20,MenuY+15,"beginner");
 outtextxy(MenuX+20,MenuY+MenuSinH+15,"advancer");
 outtextxy(MenuX+40,MenuY+2*MenuSinH+15,"senior");
}
int ChooseMenu(int flag)
{
 int x,y;
 char C_key;
 x=ChoiceX;y=ChoiceY;
 do
 {
  kbhit();
  C_key=getch();
  if(C_key==Esc)
   return Esc;
  else
   if(C_key==Enter)
    return y;
  else
  switch(C_key)
  {
  case UpKey:
   if(y==ChoiceY)
    break;
   else
   {
    Choice(x,y,BK_COLOR);
    y-=MenuSinH;
    Choice(x,y,C_COLOR);
   }
   break;
  case DownKey:
   if (y==ChoiceY+2*MenuSinH)
    break;
   else
   {
    Choice(x,y,BLACK);
    y+


Ïà¹ØÎĵµ£º

c±à³ÌÔÚlinuxϲÅÓÐÒâÒå

 ½ñÌìΪÁ˸ø¶¥Ç¶±­×ö×¼±¸Óֻص½linuxÏ¿ªÊ¼c±à³ÌÁË¡£¸Õ¿ªÊ¼ÊÇÁ·Ï°Ð´Ò»¸öÓë¾ØÕó±ä»»ÓйصijÌÐò£¬ÎªÁ˽Úʡʱ¼äÓÐÒ»¸öº¯ÊýÄ£¿éÊÇÖ±½ÓÓõÄÒÔÇ°ÔÚwindowsϱà³ÌʱËùʹÓõġ£½á¹ûÔÚlinuxϱàÒëÍêÔËÐÐÖ®ºóºÜ¿ì¾Í±ÀÀ£ÁË£¬ÓÉÓÚµ÷ÊÔˮƽ²»¸ßŪÁ˺ܾÃÒ²²»Öªµ½ÎÊÌâ³öÔÚÄÄÀï¡£ÕýÔÚ°Ù˼²»µÃÆä½âʱºöÈ»×¢Òâµ½£¨µ±È»²»ÊÇ×Ô¼ºµ÷ÊÔ³öÀ´µÄ ......

³¹µ×¸ã¶¨CÖ¸Õ룭º¯ÊýÃûÓ뺯ÊýÖ¸Õë

 º¯ÊýÃûÓ뺯ÊýÖ¸Õë
    º¯Êý´æ·ÅÔÚÄÚ´æµÄ´úÂëÇøÓòÄÚ£¬ËüÃÇͬÑùÓеØÖ·£¬ÎÒÃÇÈçºÎÄÜ»ñµÃº¯ÊýµÄµØÖ·ÄØ£¿
Èç¹ûÎÒÃÇÓÐÒ»¸öint test(int a)µÄº¯Êý£¬ÄÇô£¬ËüµÄµØÖ·¾ÍÊǺ¯ÊýµÄÃû×Ö£¬ÕâÒ»µãÈçͬÊý×éÒ»Ñù£¬Êý×éµÄÃû×Ö¾ÍÊÇÊý×éµÄÆðʼµØÖ·¡£
Ò» ͨ³£µÄº¯Êýµ÷ÓÃ
    Ò»¸öͨ³£µÄº¯Êýµ÷ÓõÄÀý×Ó ......

C¡¢C++ºÍC#µÄ²»Í¬Ö®´¦

CÊÇÃæÏò¹ý³ÌµÄ³ÌÐòÉè¼Æ£¬³ÌÐò=Êý¾Ý½á¹¹+Ëã·¨ [×îԭʼ£¬µ«±à¸ö³Ìȷʵ²»Ò×]
C++ÊÇÃæÏò¶ÔÏóµÄ³ÌÐòÉè¼Æ£¬³ÌÐò=¶à¸öÀà+ÏûÏ¢(Àà=Êý¾Ý½á+Ëã·¨)[±È½ÏÈÝÒ×ÉÏÊÖ]
C# ÊÇ´¿ÃæÏò¶ÔÏóµÄÓïÑÔ[¸ü¼Ó±È½ÏÈÝÒ×ÉÏÊÖ]
VC/VC++/VC# Ö»ÊÇÓÃÀ´¿ª·¢C/C++/C#Ó¦ÓóÌÐòµÄÈí¼þÖеÄÒ»ÖÖ¡£
......

C/C++Êý×éÃûÓëÖ¸ÕëÇø±ðÏê½â

Ö¸ÕëÊÇc/c++ÓïÑÔµÄÌØÉ«£¬¶øÊý×éÃûÓëÖ¸ÕëÓÐÌ«¶àµÄÏàËÆ£¬ÉõÖÁºÜ¶àʱºò£¬Êý×éÃû¿ÉÒÔ×÷ΪָÕëʹÓá£ÓÚÊǺõ£¬ºÜ¶à³ÌÐòÉè¼ÆÕ߾ͱ»¸ãºýÍ¿ÁË¡£¶øÐí¶àµÄ´óѧÀÏʦ£¬ËûÃÇÔÚcÓïÑԵĽÌѧ¹ý³ÌÖÐÒ²´íÎóµÃ¸øѧÉú½²½â£º\"Êý×éÃû¾ÍÊÇÖ¸Õë\"¡£ºÜÐÒÔË£¬ÎҵĴóѧÀÏʦ¾ÍÊÇÆäÖÐÖ®Ò»¡£Ê±ÖÁ½ñÈÕ£¬ÎÒÈÕ¸´Ò»ÈյؽøÐÐ×Åc/c++ÏîÄ¿µÄ¿ª·¢£¬¶øÉí± ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ