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

³£ÓÃCÍ·Îļþ¼°ÆäÔÚ±ê×¼C++Öеı£Áô

Í·ÎļþµÄ×÷ÓÃ
ÔçÆڵıà³ÌÓïÑÔÈçBasic¡¢Fortran ûÓÐÍ·ÎļþµÄ¸ÅÄC++/C ÓïÑԵijõѧÕßËäÈ»»áÓÃʹÓÃÍ·Îļþ£¬µ«³£³£²»Ã÷ÆäÀí¡£ÕâÀï¶ÔÍ·ÎļþµÄ×÷ÓÃÂÔ×÷½âÊÍ£º
£¨1£©Í¨¹ýÍ·ÎļþÀ´µ÷Óÿ⹦ÄÜ¡£ÔںܶೡºÏ£¬Ô´´úÂë²»±ã£¨»ò²»×¼£©ÏòÓû§¹«²¼£¬Ö»ÒªÏòÓû§ÌṩͷÎļþºÍ¶þ½øÖƵĿ⼴¿É¡£Óû§Ö»ÐèÒª°´ÕÕÍ·ÎļþÖеĽӿÚÉùÃ÷À´µ÷Óÿ⹦ÄÜ£¬¶ø²»±Ø¹ØÐĽӿÚÔõôʵÏֵġ£±àÒëÆ÷»á´Ó¿âÖÐÌáÈ¡ÏàÓ¦µÄ´úÂë¡£
£¨2£©Í·ÎļþÄܼÓÇ¿ÀàÐÍ°²È«¼ì²é¡£Èç¹ûij¸ö½Ó¿Ú±»ÊµÏÖ»ò±»Ê¹ÓÃʱ£¬Æ䷽ʽÓëÍ·ÎļþÖеÄÉùÃ÷²»Ò»Ö£¬±àÒëÆ÷¾Í»áÖ¸³ö´íÎó£¬ÕâÒ»¼òµ¥µÄ¹æÔòÄÜ´ó´ó¼õÇá³ÌÐòÔ±µ÷ÊÔ¡¢¸Ä´íµÄ¸ºµ£¡£
´ó¼Òд³ÌÐòÊǽ¨Á¢ÔÚ±àÒëÆ÷ϵͳΪÎÒÃÇÌṩµÄµ×²ã±ê×¼¿âº¯Êý»ù´¡ÉÏ£¬ÕâЩ¿âº¯ÊýµÄ½Ó¿Ú¾ÍÉùÃ÷ÔÚ±ê×¼¿âÍ·ÎļþÖС£ÈôÏë±àд¸ßЧµÄ³ÌÐò£¬ÎÒÃÇÒª¶Ô±àÒëÆ÷ϵͳÌṩµÄ±ê×¼¿âº¯ÊýÐÅÊÖÄéÀ´£¬Ê×ÏÈÒªÊìÖªËûÃǵÄÉùÃ÷ËùÔÚµÄÍ·Îļþ¡£
 
ÒÔÏÂÊǶÔC/C++³£ÓÃÍ·Îļþ½øÐмòµ¥ÊáÀí£º
±ê×¼C¿ØÖÆ̨ÊäÈëÊä³öÁ÷º¯ÊýÍ·Îļþ<cstdio>-----<stdio.h>
using ::size_t; using ::fpos_t; using ::FILE;
using ::clearerr; using ::fclose; using ::feof;
using ::ferror; using ::fflush; using ::fgetc;
using ::fgetpos; using ::fgets; using ::fopen;
using ::fprintf; using ::fputc; using ::fputs;
using ::fread; using ::freopen; using ::fscanf;
using ::fseek; using ::fsetpos; using ::ftell;
using ::fwrite; using ::getc; using ::getchar;
using ::gets; using ::perror;
using ::putc; using ::putchar;
using ::printf; using ::puts; using ::remove;
using ::rename; using ::rewind; using ::scanf;
using ::setbuf; using ::setvbuf; using ::sprintf;
using ::sscanf; using ::tmpfile; using ::tmpnam;
using ::ungetc; using ::vfprintf; using ::vprintf;
using ::vsprintf;
wsprintf() //winuser.h,include in windows.h
size_tÒ»°ãÓÃÀ´±íʾһÖÖ¼ÆÊý£¬±ÈÈçÓжàÉÙ¶«Î÷±»¿½±´µÈ£¬sizeof²Ù×÷·ûµÄ½á¹ûÀàÐÍÊÇsize_t£¬ËüÔÚÍ·ÎļþÖÐtypedefΪ unsigned intÀàÐÍ£¬¼´typedef unsigned int size_t £¬¸ÃÀàÐͱ£Ö¤ÄÜÈÝÄÉʵÏÖËù½¨Á¢µÄ×î´ó¶ÔÏóµÄ×Ö½Ú´óС¡£strncat£¬strncmp£¬strncpyµÈ¶¼Óõ½ÁËËü¡£
size_t ÊÇΪÁË·½±ãϵͳ֮¼äµÄÒÆÖ²¶ø¶¨ÒåµÄ£¬ÔÚ32λϵͳÉÏ ¶¨ÒåΪunsigned int£¬ÔÚ64λϵͳÉÏ ¶¨ÒåΪunsigned long¡£
±ê×¼¿âº¯ÊýÍ·Îļþ<cstdlib>-----<stdlib


Ïà¹ØÎĵµ£º

C compiler cannot create executablesµÄ½â¾ö·½·¨

¸ãÁ˼¸ÌìµÄÎÊÌâ¡£±àÒëÒ»¸öÎļþʱ,ÀÏÊdzöÏÂÃæÕâ¸ö´í.
checking for C compiler default output file name… configure: error: C compiler cannot create executables
û·¨×Ó,ÕÒ¸ßÈË°ïÎÒ´¦Àí,¹þ¹þ….¼Ç¼ÏÂÀ´.ÒòΪ64λµÄ»úÆ÷£¬Ä¬È϶ÔCFLAGSµÄÕâÊǽøÐÐÁËÉèÖÃ,ËùÒÔʹÓÃÏÂÃæµÄÃüÁîÇå¿ÕËû¾ÍÐÐÁË£¬ÕâÑùÈí¼þ¾Í²»»á±¨ ......

C#ÀàºÍC#½á¹¹ÌåµÄ¹Øϵ

C#ÀࣺÀàÊÇC# Öй¦ÄÜ×îΪǿ´óµÄÊý¾ÝÀàÐÍ£¬ÀàÒ²¶¨ÒåÁËÊý¾ÝÀàÐ͵ÄÊý¾ÝºÍÐÐΪ¡£È»ºó£¬³ÌÐòÔ±¿ÉÒÔ´´½¨×÷Ϊ´ËÀàµÄʵÀýµÄ¶ÔÏó¡£
C#½á¹¹Ì壺½á¹¹ÌåÊÇÇáÁ¿Ð͵ÄÀ࣬ʹÓÿªÏúÏà¶ÔÓÚÀà½ÏС¡£
C#ÀàºÍC#½á¹¹ÌåÁ½ÕߵĹØϵ£º
1.Êý¾ÝÀàÐÍ£ºÀàºÍ½á¹¹Ì嶼ÊÇÊý¾ÝÀàÐÍ£¬ÀàÊÇÒýÓÃÀàÐÍ£¬½á¹¹ÌåÊÇÖµÀàÐÍ¡£
2.¼Ì³ÐÐÔ£ºÀà¿ÉÒԼ̳кͱ»¼Ì³Ð£¬¶ø½á¹ ......

²»ÓÃÁÙʱ±äÁ¿½»»»Á½¸öÊýµÄÖµ(CʵÏÖ)

µ±Òª½»»»Á½¸öÊýµÄֵʱ£¬Í¨³£µÄ×ö·¨ÊǶ¨ÒåÒ»¸öÁÙʱ±äÁ¿£¬È»ºóÔÙ½øÐн»»»¡£ÄÇôÄܲ»Äܲ»ÓÃÁÙʱ±äÁ¿¶ø½»»»Á½¸öÊýµÄÖµÄØ£¿¿ÉÒԵģ¡CÓïÑÔÌṩµÄÒì»òÔËËã¾Í¿ÉÒÔʵÏÖÕâÑùµÄ²Ù×÷¡£
 
Òì»òÔËËã·û^Ò²³ÆXORÔËËã·û£¬ËüµÄ¹æÔòÊÇÈô²Î¼ÓÔËËãµÄÁ½¸ö¶þ½øλͬºÅ£¬Ôò½á¹ûΪ0£¨¼Ù£©£»ÒìºÅΪ1£¨Õ棩¡£¼´0 ^ 0 = 0, 0 ^ 1 = 1, 1 ^ 0 = 1, ......

cµ÷ÓÃapi´ò¿ªÎļþ¶Ô»°¿ò

#include <windows.h>
int WINAPI WinMain( HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nShowCmd )
{
OPENFILENAME ofn;
//ÔÚÄÚ´æÖпª±ÙÒ»¿é¿Õ¼ä£¬´æ·ÅÓû§Ñ¡È¡µÄÎļþÃû
char szFile[MAX_PATH];//MAX_PATH ......

cÓÃapiµ÷ÓöԻ°¿ò

#include <windows.h>
int WINAPI WinMain( HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nShowCmd )
{
OPENFILENAME ofn;
//ÔÚÄÚ´æÖпª±ÙÒ»¿é¿Õ¼ä£¬´æ·ÅÓû§Ñ¡È¡µÄÎļþÃû
char szFile[MAX_PATH];//MAX_PATH ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ