[C/C++]C++Ï»ù±¾ÀàÐÍËùռλÊýºÍÈ¡Öµ·¶Î§
ÔÎÄ£ºhttp://hi.baidu.com/magicdemon/blog/item/821b2e22d7df494cad34debd.html
C++Ï»ù±¾ÀàÐÍËùռλÊýºÍÈ¡Öµ·¶Î§£º
·ûºÅÊôÐÔ ³¤¶ÈÊôÐÔ »ù±¾ÐÍ ËùռλÊý È¡Öµ·¶Î§ ÊäÈë·û¾ÙÀý Êä³ö·û¾ÙÀý
-- -- char 8 -2^7 ~ 2^7-1 %c %c¡¢%d¡¢%u
signed -- char 8 -2^7 ~ 2^7-1 %c %c¡¢%d¡¢%u
unsigned -- char 8 0 ~ 2^8-1 %c %c¡¢%d¡¢%u
[signed] short [int] 16 -2^15 ~ 2^15-1 %hd
unsigned short [int] 16 0 ~ 2^16-1 &nb
Ïà¹ØÎĵµ£º
תÔØ×Ô£ºhttp://www.cnblogs.com/chio/archive/2007/11/26/972152.html
CRTÔÏÈÊÇÖ¸Microsoft¿ª·¢µÄC Runtime Library£¬ÓÃÓÚ²Ù×÷ϵͳµÄ¿ª·¢¼°ÔËÐС£ºóÀ´ÔÚ´Ë»ù´¡ÉÏ¿ª·¢ÁËC++ Runtime Library£¬ËùÒÔÏÖÔÚCRTÊÇÖ¸Microsoft¿ª·¢µÄC/C++ Runtime Library¡£ÔÚVCµÄCRT/SRCĿ¼Ï£¬¿ÉÒÔ¿´µ½CRTµÄÔ´Â룬²»½öÓÐCµÄ£¬Ò²ÓÐC++µ ......
1. ¸½¼ÓÏîÒ»¶¨ ¼ÓÉÏlibmysql.lib¡£
2. include Ò»¶¨¼ÓÉÏ mysqlµÄinclude£¨ÒòΪҪÅÜÕâ¹Ø¼üÒ»¾ä
#include <mysql.h>£©
3 lib Ò»¶¨¼ÓÉÏ mysqlµÄlib
ºÃÁËÏÂÃæÊÇʵÀýºÍphpº¯Êý»ù±¾Ò»ÑùµÄ¡£±¾È˲»¿ÉÄܸøÄã·ÒëÎĵµ£¬º¯Êý²»¶®×Ô¼º¿´¡£
#include
<windows.h>//ÓÃÕâ¸ö·½±ã£¬°üº¬winsock.hËùÒ ......
³£¼ûÎÊÌ⣺
±àÒëʧ°Ü£¬±¨´íÈçÏ“ÎÞ·¨½âÎöµÄÍⲿ·ûºÅ _WSACleanup@0”µÈ¡£
ÔÒòÊÇûÓÐÒýÓÃwinsock.hËùÔڵĿâ--Ws2_32.lib¡£
ÕâʱֻҪÌí¼ÓÒ»ÐдúÂë
#pragma comment( lib, "Ws2_32.lib")
¼´¿É¡£ ......
·Ò룺cn-cuckoo | 2010-01-10 12:05:43 | ÔĶÁ129 | À´Ô´
ÃæÊÔÇ°¶Ë¹¤³Ìʦ¶ÔÎÒÀ´ËµÊÇÒ»¼þ·Ç³£ÓÐÒâ˼µÄÊ£¬ÒòΪÃæÊÔ¹ý³ÌºÜ´ó³Ì¶ÈÉÏÒ²ÊÇ×ÔÎÒÌáÉýµÄ¹ý³Ì¡£ÎÞÂÛ´ó¹«Ë¾»¹ÊÇС¹«Ë¾£¬Ö®ËùÒÔÔÚÈçºÎÕÐƸµ½ÕæÕýÓÐÄÜÁ¦µÄÇ°¶Ë¹¤³Ìʦ·½Ãæ»áÓöµ½Í¬ÑùµÄÎÊÌ⣬¾ÍÊÇÒòΪ¸ºÔðÕÐƸµÄÄÇЩÈ˲»ÖªµÀ×Ô¼º¹«Ë¾ÐèҪʲôÑùµÄÈË£¬½á¹ûÎÊÎÊÌâʱҲÎʲ»µ ......
Ò»¡¢¹¤¾ßµÄʹÓÃ
1¡¢Ñ§»áʹÓÃvim/emacs£¬vim/emacsÊÇlinuxÏÂ×î³£ÓõÄÔ´Âë±à¼¾ß£¬²»¹âҪѧ»áÓÃËüÃDZà¼Ô´Â룬»¹ÒªÑ§»áÓÃËüÃǽøÐвéÕÒ¡¢¶¨Î»¡¢Ìæ»»µÈ¡£ÐÂÊֵĻ°ÍƼöʹÓÃvim£¬ÕâÒ²ÊÇÎÒĿǰʹÓõÄÎı¾±à¼Æ÷¡£vimÓÐÒ»¸öÖÐÎÄÔÚÏßÊÖ²áhttp://vcd.gro.clinux.org¡£
2¡¢Ñ§»ámakefileÎļþµÄ±àд¹æÔò£¬²¢½áºÏʹÓù¤¾ßaclocal¡¢autoc ......