C++±àдľÂíÈ«¹ý³Ì
Ê×ÏÈÊÇ<FONT color=magenta
size=5>¹¤¾ßµÄÑ¡Ôñ¡£Ä¿Ç°Á÷ÐеĿª·¢¹¤¾ßÓÐC++Builder¡¢VC¡¢VBºÍDelphi£¬ÕâÀïÎÒÃÇÑ¡ÓÃC++Builder£¨ÒÔϼò³ÆBCB£©£»VCËäÈ»ºÃ£¬µ«GUIÉè¼ÆÌ«¸´ÔÓ£¬ÎªÁ˸üºÃµØÍ»³öÎÒµÄÀý×Ó£¬¼¯ÖÐ×¢ÒâÁ¦ÔÚ<FONT color=magenta
size=5>µÄ»ù±¾ÔÀíÉÏ£¬ÎÒÃÇÑ¡ÓÿÉÊÓ»¯µÄBCB£»DelphiÒ²²»´í£¬µ«È±ÏÝÊDz»Äܼ̳ÐÒÑÓеÄ×ÊÔ´£¨Èç“ËÀÅ£³ç°Ý”<FONT color=magenta
size=5>С×鹫²¼µÄBO2000Ô´´úÂ룬ÊÇVC±àдµÄ£¬ÍøÉϸ©Ê°½ÔÊÇ£©£»VBÂ̸¶¼²»Ì¸??ÄѵÀÄ㻹¸øÊܺ¦Õß´«Ò»¸ö1Õ׶àµÄ¶¯Ì¬Á´½Ó¿â??Msvbvm60.dllÂð£¿
¡¡¡¡Æô¶¯C++Builder
5.0ÆóÒµ°æ£¬Ð½¨Ò»¸ö¹¤³Ì£¬Ìí¼ÓÈý¸öVCL¿Ø¼þ£ºÒ»¸öÊÇInternetÒ³ÖеÄServer
Socket£¬ÁíÁ½¸öÊÇFastnetÒ³ÖеÄNMFTPºÍNMSMTP¡£Server
SocketµÄ¹¦ÄÜÊÇÓÃÀ´Ê¹±¾³ÌÐò±ä³ÉÒ»¸ö·þÎñÆ÷³ÌÐò£¬¿ÉÒÔ¶ÔÍâ·þÎñ£¨¶Ô<FONT color=magenta
size=5>Õß³¨¿ª´óÃÅ£©¡£Socket×î³õÊÇÔÚUnixÉϳöÏֵģ¬ºóÀ´Î¢Èí½«ËüÒýÈëÁËWindowsÖУ¨°üÀ¨Win98ºÍWinNt£©£»ºóÁ½¸ö¿Ø¼þµÄ×÷ÓÃÊÇÓÃÀ´Ê¹³ÌÐò¾ßÓÐFTP£¨File
Transfer ProtocolÎļþ´«ÊäÐÒ飩ºÍSMTP£¨Simple Mail Transfer
Protocol¼òµ¥Óʼþ´«ÊäÐÒ飩¹¦ÄÜ£¬´ó¼ÒÒ»¿´¶¼ÖªµÀÊÇʹ<FONT color=magenta
size=5>¾ßÓÐÉÏ´«ÏÂÔع¦Äܺͷ¢Óʼþ¹¦ÄܵĿؼþ¡£
form´°ÌåÊÇ¿ÉÊӵģ¬Õ⵱ȻÊDz»¿É˼ÒéµÄ¡£²»¹âռȥÁË´óÁ¿µÄ¿Õ¼ä£¨¹âÒ»¸öform¾ÍÓÐ300KÖ®´ó£©£¬¶øÇÒʹÈí¼þ¿É¼û£¬¸ù±¾Ã»Ê²Ã´×÷Óá£Òò´Ëʵ¼ÊдľÂíʱ¿ÉÒÔÓÃһЩ¼¼ÇÉʹ³ÌÐò²»°üº¬form£¬¾ÍÏñDelphiÓùý³ÌʵÏÖµÄС³ÌÐòÒ»°ãÖ»ÓÐ17K×óÓÒÄÇÑù¡£
¡¡¡¡ÎÒÃÇÊ×ÏÈÓ¦¸ÃÈÃÎÒÃǵijÌÐòÄܹ»ÒþÉí¡£Ë«»÷form£¬Ê×ÏÈÔÚformCreateʼþÖÐÌí¼Ó¿ÉʹľÂíÔÚWin9xµÄ“¹Ø±Õ³ÌÐò”¶Ô»°¿òÖÐÒþ²ØµÄ´úÂë¡£Õâ¿´ÆðÀ´ºÜÉñÃØ£¬Æäʵ˵´©Á˲»¹ýÊÇÒ»ÖÖ±»³Æ֮ΪServiceµÄºǫ́½ø³Ì,Ëü¿ÉÒÔÔËÐÐÔڽϸߵÄÓÅÏȼ¶ÏÂ,¿ÉÒÔ˵ÊǷdz£¿¿½ü<FONT color=magenta
size=5>ºËÐĵÄÉ豸Çý¶¯³ÌÐòÖеÄÄÇÒ»ÖÖ¡£Òò´Ë£¬Ö»Òª½«ÎÒÃǵijÌÐòÔÚ½ø³ÌÊý¾Ý¿âÖÐÓÃRegisterServiceProcess£¨£©º¯Êý×¢²á³É·þÎñ½ø³Ì£¨Service
Process£©¾Í¿ÉÒÔÁË¡£²»¹ý¸Ãº¯ÊýµÄÉùÃ÷ÔÚBorlandÔ¤ÏÈ´ò°üµÄÍ·ÎļþÖÐûÓУ¬ÄÇôÎÒÃÇÖ»ºÃ<FONT color=magenta
size=5>À´ÉùÃ÷Õâ¸öλÓÚKERNEL32.DLLÖеÄÄñº¯ÊýÁË¡£
¡¡¡¡Ê×ÏÈÅжÏÄ¿±ê»úµÄ²Ù×÷ϵͳÊÇWin9x»¹ÊÇWinNt£º
{
DWORD
dwVersion = GetVersion£¨£©;
// µÃµ½²Ù×÷ϵͳµÄ°æ±¾ºÅ
if £¨dwVersion >=
0x80000000£©
// ²Ù×÷ϵͳÊÇWin
Ïà¹ØÎĵµ£º
1. ʹÓÃTCHARÀàÐÍ£¬¶¨ÒåÔÚtchar.hÖÐ
#include <tchar.h>
#include <stdio.h>
int main()
{
TCHAR s[] = "Äã";
printf("%s \n",s);
return 0;
}
2.¹ØÓÚC++ÖÐÎÄ×Ö·ûµÄ´¦Àí
Ò» ÒýÈëÎÊÌâ
´úÂë wchar_t a[3]=L”Öйú”£¬±àÒëʱ³ö´í£¬³ö´íÐÅϢΪ£ºÊý×éÔ½½ç¡£µ«wchar_ ......
ͻ񻣼
±¾ÎÄ´Ó½éÉÜ»ù´¡¸ÅÄîÈëÊÖ£¬Ì½ÌÖÁËÔÚC/C++ÖжÔÈÕÆÚºÍʱ¼ä²Ù×÷ËùÓõ½µÄÊý¾Ý½á¹¹ºÍº¯Êý£¬²¢¶Ô¼Æʱ¡¢Ê±¼äµÄ»ñÈ¡¡¢Ê±¼äµÄ¼ÆËãºÍÏÔʾ¸ñʽµÈ·½Ãæ½øÐÐÁ˲ûÊö¡£±¾ÎÄ»¹Í¨¹ý´óÁ¿µÄʵÀýÏòÄãչʾÁËtime.hÍ·ÎļþÖÐÉùÃ÷µÄ¸÷ÖÖº¯ÊýºÍÊý¾Ý½á¹¹µÄÏêϸʹÓ÷½·¨¡£
¹Ø¼ü×Ö£ºUTC£¨ÊÀ½ç±ê׼ʱ¼ä£©£¬Calendar Time£¨ÈÕÀúʱ¼ä£©£¬epoch£¨Ê±¼ä ......
A. ΪʲôҪÔÚLinuxʹÓÃEclipse¿ª·¢C/C++³ÌÐò?
LinuxÊÇÒ»¸öÒÔC/C++¿ª·¢ÎªÖ÷µÄƽ̨£¬ÎÞÂÛÊÇKernel»òÊÇApplication£¬Ö÷Òª¶¼Ê¹ÓÃC/C++¿ª·¢¡£´«Í³ÔÚLinuxÏ¿ª·¢³ÌÐò£¬ÊÇÔÚÎÄ×ÖģʽÏ£¬ÀûÓÃviµÈÎÄ×Ö±à¼Æ÷׫дC/C++³ÌÐò´æÅ̺ó£¬ÔÚCommand lineÏÂʹÓÃgcc±àÒ룬ÈôÒªdebug£¬ÔòʹÓÃgdb¡£
ÕâÖÖ¿ª·¢·½Ê½Éú²úÁ¦²¢²»¸ß£¬ÈôÖ»ÊÇ¿ª·¢Ñ§ ......
/*
* File: main.cpp
* Author: Vicky
*
* Created on 2010Äê5ÔÂ8ÈÕ, ÏÂÎç2:47
*/
#include <iostream>
using namespace std;
void swap(int x, int y) {
cout << "x and y swap before : " << x << "\t" << y << endl;
int i = x;
x = y;
y = i; ......
/*
* File: main.cpp
* Author: Vicky
*
* Created on 2010Äê5ÔÂ8ÈÕ, ÏÂÎç2:47
*/
#include <iostream>
using namespace std;
class A{
public:
A(){
cout << "Ö´Ðй¹Ô캯Êý´´½¨Ò»¸ö¶ÔÏó" << endl;
}
A(A&){
cout << "Ö´Ðп½±´º¯Êý¿½±´Ò»¸ö¶ ......