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

windows vistaϵÄgcc»·¾³ ¿ÉÓõÄc/c++±àÒëÆ÷

ÓùývistaµÄÅóÓѶ¼ÖªµÀ vista²»ÖªÓÉÓÚʲôԭÒòºÜ¶à±àÒëÈí¼þ¶¼²»ÄÜÕý³£¹¤×÷ÁË vs6.0È«²¿¶¼ËµÓÐÒÑÖªµÄ¼æÈÝÐÔÎÊÌâ´æÔÚ
µ±È»Äã¿ÉÒÔ×°ºÃ¼¸¸ögµÄvs2005
¹ÑÈËÒ»Ö±¶¼Ïë×ÔѧһÃżÆËã»úÓïÑÔ
µ«ÊÇ¿àÓÚÕÒ²»µ½±àÒëÆ÷
Á¬×î¼òµ¥µÄhellowold¶¼²»ÄÜÕý³£±àÒë
º¹
²»¶à˵
¿´ÎÒŪµÃ
×ÜËãÄÜÓÃÁË
1.ÏÂÔØMinGW
http://sourceforge.net/project/showfiles.php?group_id=2435
ßÀ
ÏÂÃæÊǵØÖ·
¸½¼þÖÐÒ²ÓÐ
ÕÒÆäËûµÄÍøÕ¾ÏÂÔØÒ²¿ÉÒÔ
È»ºó¾ÍÊÇ°²×° °´×Ų½Öè°²×°¾ÍºÃÁË ºÜ¼òµ¥ ÕâÀﻹ¿ÉÒÔÑ¡ÔñÆäËûµÄ±àÒëÆ÷ »¹ÓÐjavaµÄ±àÒëÆ÷
2.ÉèÖû·¾³±äÁ¿
ÎҵĵçÄÔÓÒ¼ü
ÊôÐÔ
È»ºóµã»÷”¸ß¼¶ÊôÐÔÉèÖÔ(Èçͼ1)
Ñ¡Ôñ¸ß¼¶Ñ¡Ï
»·¾³±äÁ¿
³öÏÖÈçͼ2 µÄ¶Ô»°¿ò
È»ºóË«»÷path ÔÚºóÃæÌí¼Ó E:\MinGW\bin (ÕâÀïÎÒÃǼÙÉè°²×°µ½ÁËeÅÌ)
È»ºó È»ºó¾ÍÍêÁË
3.²âÊÔ
´ò¿ªcmd ÊäÈëgcc»Ø³µ
Èç¹û³öÏÖÈçͼ3µÄ½á¹û ¾Í±íÃ÷³É¹¦ÁË
ÔÚ±àÒëһ϶«Î÷ÔËÐÐһϾÍÖªµÀ³É²»³É¹¦ÁË


Ïà¹ØÎĵµ£º

C³ÌÐòÔ±µÄÇéÊé

#include <stdio.h>
#include <string.h>
int
main(void)
{
char str[] =
"3BVPSq4xF.K?=u#,"
"G'K<MrDnRr7gH%#,"
"XKf<f%G`w^=?C<#,"
"HgU_AnNR?*PDQU#,"
......

Linux c Êý¾ÝÀàÐÍ

µ±LinuxÄÚºËÔÚÌåϵ½á¹¹²îÒì½Ï´óµÄƽ̨֮¼äÒÆֲʱ£¬»á²úÉúÓëÊý¾ÝÀàÐÍÏà¹ØµÄÎÊÌâ¡£
.ÔÚ±àÒëÄÚºËʱʹÓà -Wall  -W strict-prototypes Ñ¡Ïî, ¿ÉÒÔ±ÜÃâºÜ¶à´íÎóµÄ·¢Éú
.ÄÚºËʹÓõĻù±¾Êý¾ÝÀàÐÍÖ÷ÒªÓÐ:
     int           ±ê×¼CÓïÑÔÕûÊýÀàÐÍ
&n ......

c³ÌÐòÉè¼ÆÓïÑÔÏ°Ìâ1 9

ÁªÏµ1-9±àдһ¸ö½«ÊäÈ븴ÖƵ½Êä³öµÄ³ÌÐò£¬²¢½«ÆäÖÐÁ¬ÐøµÄ¶à¸ö¿Õ¸ñÓÃÒ»¸ö¿Õ¸ñ´úÌæ¡£
#include "stdio.h"
main(){
int c;
int flag;
flag=0;//ÊÇ·ñ¿Õ¸ñ±êÖ¾
while ((c=getchar())!=EOF){
if (c!=32) {
putchar(c);
flag=0;
}else if(flag==0){
flag=1;
putchar(c);
}

/* ......

¡¾×ª¡¿CµÄÁíÒ»ÖØÒªÊý¾Ý½á¹¹bit fields

½ñÌì¿´K&RµÄÊéµÄʱºò˳±ãÎÂÏ°ÁËCµÄÁíÒ»ÖØÒªÊý¾Ý½á¹¹bit-fields£¬ÎÒÏëbit-fieldsÔÚ±àдµ×²ãÇý¶¯
Çý¶¯³ÌÐòµÄʱºòÓ¦¸Ã±È½ÏºÃÓã¬Ëü¿ÉÒÔÈÆ¿ª"&"ºÍ"|"½øÐÐλ²Ù×÷£¬¶øÇÒ¸ü¼Ó½ÚÔ¼ÄÚ´æ¿Õ¼ä¡£·Ï»°²»¶à˵
ÁË£¬»¹ÊÇÏÈÀ´¿´¿´ËüµÄÕæÃæÄ¿°É£º
bit-fieldÀ´Ô´:
bit-fieldÊÇΪÁ˽ÚÔ¼´æ´¢¿Õ¼ä¶ø´´ÔìµÄÒ»ÖÖÊý¾ ......

CµÄλÔËËã·û

Óë &£º  ÈκÎλÓÃ&ÔËËãÓë0½áºÏ½á¹ûΪ0£¬Óë1½áºÏ½á¹ûΪÆä±¾Éí£»
»ò | £º  ÈκÎλÓÃ|ÔËËãÓë0½áºÏ½á¹ûΪÆä±¾Éí£¬Óë1½áºÏ½á¹ûΪ1£»
Òì»ò  ^ £º  ÈκÎλÓÃ^ÔËËãÓë0½áºÏ½á¹ûΪÆä±¾Éí£¬Óë1½áºÏÔòÈ¡·´£» ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ