¹ØÓÚthe c program µÄÒ»µÀÌâ!
±àд³ÌÐòdetab, ½«ÊäÈëÖеÄÖƱí·ûÌæ»»³ÉÊʵ±ÊýÄ¿µÄ¿Õ¸ñ£¬Ê¹¿Õ¸ñ³äÂúµ½ÏÂÒ»¸öÖƱí·ûÖÕÖ¹µÄµØ·½¡£¼ÙÉèÖƱí·ûÖÕֹλµÄλÖÃÊǹ̶¨µÄ£¬±ÈÈçÿ¸ônÁоͻá³öÏÖÒ»¸öÖƱí·ûÖÕֹλ¡£
££££££££££££££££££££££££££££££££££££££££££££
C/C++ code:
/*detab.c -- the_c Á·Ï°1£20
£ª£ª£ª α´úÂë
for(»¹ÓÐû¶ÁÈ¡µÄ×Ö·û)
if(Óÿհ׷ûÌæ´úTAB£©£»*/
#include <stdio.h>
#define TABSIZE 7 /*¼ÙÉèTABÕ¼7¸ö¿Õ°×·ûλ*/
int main(void)
{
int nChar; /*µ±Ç°µÄ×Ö·û*/
int pos = 0; /*ͳ¼Æ×Ö·ûÊý*/
int spacenumber = 0; /*Êä³ö¶àÉÙ¸ö¿Õ°×·û?*/
int i;
while((nChar = getchar() ) != EOF ){
if(nChar == '\t'){
spacenumber = TABSIZE - pos % TABSIZE;
for(i = 0;i < spacenumber;i++){
putchar(' ');
++pos;
}
}
else {
putchar(nChar);
++pos;
}
}
return 0;
}
¿Õ°×·û²¢²»ÄÜÌæ´úÖƱí·û²»ÖªµÀΪʲô £¿
Ïà¹ØÎÊ´ð£º
µØµãÔÚÉîÛÚÄÏɽ
¡¡¡¡×öCÈí¼þ¡£ÊÔÓÃ2K£¬²»ÖªµÀתÕý¸ø¹«Ë¾Ì¸¶àÉÙºÏÊÊ°¡£¿
¡¡¡¡ÁíÍ⣬±¾ÈËС±¾£¬Ó¢ÓïÁù¼¶£¬ÊÔÓÃÈý¸öÔ±íÏÖµÃÒ²ËãÖÐÉÏˮƽ¡£µ«ÊÇÏÖÔÚ»¹²»ÄÜ×öÏîÄ¿¡£ÁíÍâ±ÏҵѧУûÓÐÃûÆø¡£
¡¡¡¡×ªÕý¸ø¹«Ë¾Ì¸¶àÉ ......
ÒªÇóÈçÏ£º
¸ÚλְÔð£º
1¡¢ºËÐÄ´úÂë±àд£»
2¡¢È·±£Èí¼þ²úÆ·µÄÖÊÁ¿£»
¸ÚλҪÇó£º
1¡¢ÊìϤC¼°C++³ÌÐòÉè¼Æ£¬ÊìϤ»ã±àÓïÑÔ,ÊìϤC/C++±ê×¼¿â¡£
2¡¢Á˽âwindowsµ×²ãÇý¶¯¡£
3¡¢¾ßÓпª· ......
#include <stdio.h>
#include <graphics.h>
void main()
{
int x0,y0,x1,y1,driver,mode,i;
driver=VGA;
mode=VGAHI;
initgraph(&driver,&mode,&qu ......
ÎÒÓÃPHPÀ©Õ¹Cʱ£¬ÓõÄÊÇÔ´ÂëextĿ¼ÏµÄ./ext_skel
×îºó±àÒë×ÜÊDz»ÄÜÉú³ÉÀ©Õ¹Ä£¿éµÄ.so¶¯Ì¬¿â£¬ÎÒÓõİ汾ÊÇ5.3.0£¬
ÕâÊÇÔõô»ØÊ£¬¸ßÊÖ½â´ðÏÂ
²»ÄÜÉú³ÉʱÓÐɶÌáʾÐÅÏ¢£¿
ÔËÐÐÁË/ext_skel --extname=Ä ......
C/C++ code:
void p1(const char **pname)
{
const char *name = "test1";
*pname = name;
}
void p2(const char **pname)
{
char *name = "test2";
*pname = name ......