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

ɾ³ýC/C++×¢ÊÍ

/********************************************************************
*ɾ³ýC/C++×¢ÊÍ
**********************************************************************/
#include <stdio.h>
//×¢Òâ
//1.¶Ô/****/µÄ´¦Àí
//2.Òª±£ÁôË«ÒýºÅÖ®¼äµÄÄÚÈÝ£¬Èçchar* test = "/*i am not comment */";
//3.¶ÔÓÚµ¥ÒýºÅÖеÄÄÚÈÝͬÑù±£Áô(²»¼ì²é³ÌÐòµÄÓï·¨´íÎó)
//4.¶ÔÓÚתÒå×Ö·ûµÄ´¦Àí(¼û״̬6)£¬Èçchar* test = "string\"string too/*i am not comment"
int noComment(FILE *in,FILE *out)
{
    int ch, lastch, state = 0, sq = 0;
    while( ( ch = fgetc(in) ) != EOF )
    {
        switch(state)
        {
        case 0:
            if( ch == '/' )
            {
                lastch = '/' ;
                state = 1 ;
            }
            else
            {
                if( ch == '\'' || ch == '"' )
                {
                    state = 5 ;
                    if( ch == '\'' )
                        sq = 1;
                }
                fputc(ch, out);
      &n


Ïà¹ØÎĵµ£º

¼òÊöCºÍC++³ÌÐòԱѧϰÀú³Ì

    ×ÜÊDZ»Í¬Ñ§ÃÇÎʵ½,ÈçºÎѧϰCºÍC++²Å²»Ã£È»,²Å²»ÊÇÂÒѧ¡£ÏëÁËÒ»ÏÂ,ÕâÀï¸ø³öÒ»¸ö×ܵĻظ´¡£
    Ò»¼ÒÖ®ÑÔ,»¶Ó­ÅÄש¹þ¡£
    1¡¢¿ÉÒÔ¿¼ÂÇÏÈѧϰC
    ´ó¶àÊýʱºò,ÎÒÃÇѧϰÓïÑÔµÄÄ¿µÄ,²»ÊÇΪÁ˳ÉΪһ¸öÓïÑÔר¼Ò,¶øÊÇÏ£Íû³ÉΪһ¸ö½â¾öÎÊÌâµÄר¼Ò¡£×öÒ»¸öÓ ......

ÔÚpb11Öн«C/S³ÌÐòת»»µ½B/SµÄ²½Öè


ÔÚpb11Öн«C/S³ÌÐòת»»µ½B/SµÄ²½Öè(2009-01-06 21:12:20)
±êÇ©£ºÔÓ̸ 
·ÖÀࣺWebÏà¹Ø¼¼Êõ
ÔÚpb11Öн«C/S³ÌÐòת»»µ½B/SµÄ²½Öè
Ò»¡¢¿ª·¢»·¾³°²×°
1¡¢ÏȰ²×°windowsµÄIIS5.0ÒÔÉÏ
2¡¢ÔÙ°²×°
£¨1£©°²×°asp.net framework 2.0
£¨2£©°²×°Microsoft .NET Framework SDK 2.0, 3.0 or 3.5£¬ÎªÄܹ»ÔËÐÐ.net web·þÎñÒýÇ ......

»ªÎªC/C++±ÊÊÔÌâ2

  »ªÎªC/C++±ÊÊÔÌâ2 ÊÕ²Ø
1. ij32λϵͳÏÂ, C++³ÌÐò£¬Çë¼ÆËãsizeof µÄÖµ
#include <stdio.h>
#include <malloc.h>
void Foo ( char str[100] )
{
    printf("sizeof(str)=%d \n", sizeof(str) );//´Ë´¦Ê¹ÓÃchar *strÓëchar str[100]ÊÇÒ»ÑùµÄ£¬char str[100]²»Ö¸Ã÷´óС(char str[]) ......

linux ÏÂÓÃCʵÏÖ¡®CAT¡¯µÄ¹¦ÄÜ

linux
ÏÂÓÃCʵÏÖ‘CAT’µÄ¹¦ÄÜ
#include<stdio.h>
int main(int argc,char *argv[]){
FILE *file;
char buf[1024],name[20];
int n;
if(argc != 2){
printf("wrong argument\n");
return 1;
}
file=fopen(argv[1],"r");
if(file==NULL){
printf("Cant't open!\n&quo ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ