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

C±ê×¼¿â


// Õª×Ô£ºWikipedia.org
CÓïÑԵıê×¼ÎÄÎļþÒªÇóÁËÒ»¸öƽ̨ÒÆÖ²CÓïÑÔµÄʱºòÖÁÉÙҪʵÏÖµÄһЩ¹¦Äܺͷâ×°µÄ¼¯ºÏ£¬³ÆΪ“±ê×¼¿â”£¬±ê×¼¿âµÄÉùÃ÷Í·²¿Í¨¹ýÔ¤´¦ÀíÆ÷ÃüÁî#include½øÐÐÒýÓá£
ÔÚC89±ê×¼ÖУº
     01. <assert.h>
     02. <ctype.h>
     03. <errno.h>
     04. <float.h>
     05. <limits.h>
     06. <locale.h>
     07. <math.h>
     08. <setjmp.h>
     09. <signal.h>
     10. <stdarg.h>
     11. <stddef.h>
     12. <stdio.h>
     13. <stdlib.h>
     14. <string.h>
     15. <time.h>
ÔÚC95ÄêµÄÐÞÕý°æÖУº
     01. <iso646.h>
     02. <wchar.h>
     03. <wctype.h>
ÔÚC99ÖÐÔö¼ÓÁËÁù¸ö¿â£º
     01. <complex.h>
     02. <fenv.h>
     03. <inttypes.h>
     04. <stdbool.h>
     05. <stdint.h>
     06. <tgmath.h>
ÒÔÉÏÊÇCÓïÑԵıê×¼£¬¹²24¸ö¡£¶ø¸÷¸öƽ̨¸÷×ÔÓÖ¶ÔC¿âº¯Êý½øÐеĸ÷ÖÖÀ©³ä£¬¾ÍºÆÈçÑ̺£ÁË¡£ÈçPOSIX C¡¢GNU CµÈ¡£


Ïà¹ØÎĵµ£º

Linux ÏÂc/c++ ±àÒëÆ÷

Gcc¼ò½é
LinuxϵͳϵÄgcc£¨GNU C Compiler£©ÊÇGNUÍƳöµÄ¹¦ÄÜÇ¿´ó¡¢ÐÔÄÜÓÅÔ½µÄ¶àƽ̨±àÒëÆ÷£¬ÊÇGNUµÄ´ú±í×÷Æ·Ö®Ò»¡£gccÊÇ¿ÉÒÔÔÚ¶àÖÖÓ²Ìåƽ̨ÉϱàÒë³ö¿ÉÖ´ÐгÌÐòµÄ³¬¼¶±àÒëÆ÷£¬ÆäÖ´ÐÐЧÂÊÓëÒ»°ãµÄ±àÒëÆ÷Ïà±Èƽ¾ùЧÂÊÒª¸ß20%~30%¡£
gcc ±àÒëÆ÷Äܽ«C¡¢C++ÓïÑÔÔ´³ÌÐò¡¢»ã³Ìʽ»¯ÐòºÍÄ¿±ê³ÌÐò±àÒë¡¢Á¬½Ó³É¿ÉÖ´ÐÐÎļþ£¬Èç¹ûûÓи ......

c Ñ¡Ôñ½á¹¹1

/*ÓÃif¶à²ãǶÌ×ʵÏÖa£¬b£¬c´óСµÄÁùÖÖÅÅÐòÇé¿öa>b>c£¬a>c>b£¬c>a>b£¬c>b>a£¬b>c>a£¬b>a>c*/
#include<stdio.h>
void main()
{
  unsigned int a,b,c;
  printf("please input three numbers a,b,c:");
  scanf("%d%d%d",&a,&b,&c);
  if ......

C C++ Êä³öÖÐÎÄ¡¾×ª¡¿


1. wprintf
Q : sizeof(wchar_t) = ?
A : Ëæ±àÒëÆ÷²»Í¬¡£(ËùÒÔ:ÔÚÐèÒª¿çƽ̨µÄʱºò¾¡Á¿²»ÓÃwchar_t) vc : sizeof(wchar_t) = 2;
Q: ÔÚvcÖУ¬ÎªÊ²Ã´Ö±½ÓʹÓÃwprintf(L"²âÊÔ1234")»áûÓнá¹û
A: ûÓÐÉèÖúÃlocale,ÕâÑù×ö
setlocale(LC_ALL ,
"
chs
"
);
wprintf(L
"
%s
"
,L
......

ÓÃVFP9.0ºÍSQL2000¹¹½¨C/S°æ±¾µÄÈËʹÜÀíϵͳ

±¾ÊµÀýÒ»Ì×ÈËʹÜÀíϵͳ£º¿ª·¢¹¤¾ßΪVFP9.0¡¢SQL2000¡¢EXCEL;ʹÓÃÁËAdobe PhotoshopƽÃæÉè¼ÆÈí¼þ£¬²ÉÓÃÁËSPT´©Í¸¼¼Êõ£¬µ÷ÓÃÁËAPIº¯Êý£¬ÊµÏÖÁ˶Ôϵͳʱ¼äµÄͳһ¿ØÖÆ¡¢¶ÔDNSµÄ´úÂë¿ØÖÆ¡¢¶ÔÓòÃû½âÎöµÄÓ¦Ó㬵ȵÈ
ÔΣ¬ÔõôÉÏ´«£¬£¨°üº¬Ô´Âëδ±àÒëµÄ£©ÏëÒªµÄ¸øÎÒ·¢E-MAIL:zhao@tom.com ......

c/c++¶ÁдÎļþ

#include<stdlib.h>
#include<iostream>
#include<string.h>
using namespace std;
int main(void)
{
FILE *fp, *fp2;
char buf[1024*300];
fp = fopen("in.txt", "rb");
fp2 = fopen("out.txt", "wb+");
fseek(fp, 0, SEEK_END);
int iLen ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ