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

Cר¼Ò±à³Ì¾«±àÖ®Ò»

Cר¼Ò±à³Ì  ¾«±àÖ®Ò»     µÚÒ»ÕÂ~µÚÈýÕÂ
CµÄ¸´ÔÓÖ®´¦ ÔÚÓÚËüµÄÖ¸Õë ,µ«ÊÇ±ÈÆäÖ¸Õë¸üΪ¸´ÔÓµÄÊÇËüµÄÉùÃ÷ !!!
ÄãÄÜ¿´¶®ËüÃǵÄÒâ˼ Âð?
apple=sizeof(int)*p  ;   apple=sizeof * p;
j= (char (*)[20])malloc(20);
int   const * grape; Óë   int * const grape; µÄÇø±ð 
typedef void (*ptr_to_func)(int);
void (*signal(int sig,void (*func)(int )))(int );  
¼¸¸öÑùÀý:
        Ò»:char *a; const char *b;   a=b;//³öÏÖ¾¯¸æ.         why?
        ¶þ: const int two =2;
            switch(i)
             {
              case 1:printf("case 1 !  \n");
              case two :printf("case 2\n");
              }
            ±àÒë³ö´í,˵Ã÷ÁË.....?
       Èý:switch(){..}ÖÐ°Ñ default¸Ä³É defau1t (ÎÞÐÄÖ®¹ý,»òÆäËü±êÇ©Èçdefavlt,dafault..)¶¼±àÒëͨ¹ý .  why?
       ËÄ: apple=sizeof(int)*p  ;   apple=sizeof * p;    //ÊÇʲôÒâ˼?   ÁíÍâ, y=sizeof x; ÄܱàÒëͨ¹ýÂð?
       Îå:  j= (char (*)[20])malloc(20);                     //ÔõôÑù?
       Áù:  result=*x/*y ;     //³ö´í?why   ?   
             z=y+++x;   ¼´Îª: z=y++ +x;    µ«z=y+ + +x; &n


Ïà¹ØÎĵµ£º

C¶ÓÁÐ Êä³öÑî»ÔÈý½Ç


Ò²ÊÇÖÐÈí±ÊÊÔµÄËã·¨Ì⣬µ±Ê±²¢²»ÖªµÀ½ÐÑî»ÔÈý½Ç£¬°¦¡£NÄê²»ÓÃÁË£¬»¹µÃÔÙʰÆð£¬ÎªÁËÄǸöÃΡ£
#include <stdio.h>
void main()
{
    int a[50][50];
    int i,j,n;
    printf("Please input Number:");
    scanf("%d",&n);
  ......

Fortran & C »ì±à

C µ÷ÓÃ Fortran
c2ffn.f
      SUBROUTINE NAMEAGE(NAME, NLEN, AGE, TEMP)
      CHARACTER*(*) NAME
      INTEGER NLEN,AGE
      REAL TEMP
C
      WRITE(6,1000) NAME(1:NLEN),AGE,TEMP ......

Ò»¸öC²¡¶¾ !

//Á¬½ÓÍ·Îļþ
#include <io.h>
#include <dir.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//¿½±´ÎļþÄ£¿é
int copyfile (char *infile, char *outfile)
{
    FILE *in,*out; //¶¨ÒåÎļþÖ¸Õë
    in = fopen(infile,"r"); //´ ......

C×Ö·û´®´¦Àíº¯ÊýµÄʵÏÖ

C×Ö·û´®´¦Àíº¯ÊýµÄʵÏÖ£¨Linux£©
#include <stddef.h>
char * ___strtok = NULL;
char * strcpy(char * dest,const char *src)
{
char *tmp = dest;
while ((*dest++ = *src++) != '\0')
/* nothing */;
return tmp;
}
char * strncpy(char * dest,const char *src,size_t count)
{
char *tmp = d ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ