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

C/C++ ±ÊÊÔ¡¢ÃæÊÔÌâÄ¿´ó»ã×Ü£¨×ª£©

1.ÊDz»ÊÇÒ»¸ö¸¸ÀàдÁËÒ»¸övirtual º¯Êý£¬Èç¹û×ÓÀา¸ÇËüµÄº¯Êý²»¼Óvirtual ,Ò²ÄÜʵÏÖ¶à̬?
virtualÐÞÊηû»á±»ÒþÐμ̳еġ£private Ò²±»¼¯³É£¬Ö»ÊÂÅÉÉúÀàûÓзÃÎÊȨÏÞ¶øÒÑ¡£virtual¿É¼Ó¿É²»¼Ó¡£×ÓÀàµÄ¿Õ¼äÀïÓи¸ÀàµÄËùÓбäÁ¿(static³ýÍâ)¡£Í¬Ò»¸öº¯ÊýÖ»´æÔÚÒ»¸öʵÌå(inline³ýÍâ)¡£×ÓÀา¸ÇËüµÄº¯Êý²»¼Óvirtual ,Ò²ÄÜʵÏÖ¶à̬¡£ÔÚ×ÓÀàµÄ¿Õ¼äÀÓи¸ÀàµÄ˽ÓбäÁ¿¡£Ë½ÓбäÁ¿²»ÄÜÖ±½Ó·ÃÎÊ¡£
--------------------------------------------------------------------------
2.ÊäÈëÒ»¸ö×Ö·û´®£¬½«ÆäÄæÐòºóÊä³ö¡££¨Ê¹ÓÃC++£¬²»½¨ÒéÓÃαÂ룩
#include <iostream>
using namespace std;
void main()
{
  char a[50];memset(a,0,sizeof(a));
  int i=0,j;
  char t;
  cin.getline(a,50,&apos;\n&apos;);
  for(i=0,j=strlen(a)-1;i<strlen(a)/2;i++,j--)
  {
   t=a[i];
      a[i]=a[j];
   a[j]=t;
  }
  cout<<a<<endl; 
}
//µÚ¶þÖÖ
string str;
cin>>str;
str.replace;
cout<<str;
--------------------------------------------------------------------------
3.Çë¼òµ¥ÃèÊöWindowsÄÚ´æ¹ÜÀíµÄ·½·¨¡£
ÄÚ´æ¹ÜÀíÊDzÙ×÷ϵͳÖеÄÖØÒª²¿·Ö£¬Á½Èý¾ä»°¿ÖÅÂ˭Ҳ˵²»Çå³þ°É¡«¡«
ÎÒÏÈ˵¸ö´ó¸Å£¬Ï£ÍûÄܹ»Å×שÒýÓñ°É
µ±³ÌÐòÔËÐÐʱÐèÒª´ÓÄÚ´æÖжÁ³öÕâ¶Î³ÌÐòµÄ´úÂë¡£´úÂëµÄλÖñØÐëÔÚÎïÀíÄÚ´æÖвÅÄܱ»ÔËÐУ¬ÓÉÓÚÏÖÔڵIJÙ×÷ϵͳÖÐÓзdz£¶àµÄ³ÌÐòÔËÐÐ×Å£¬ÄÚ´æÖв»Äܹ»ÍêÈ«·ÅÏ£¬ËùÒÔÒý³öÁËÐéÄâÄÚ´æµÄ¸ÅÄî¡£°ÑÄÄЩ²»³£ÓõijÌÐòƬ¶Ï¾Í·ÅÈëÐéÄâÄڴ棬µ±ÐèÒªÓõ½ËüµÄʱºòÔÚloadÈëÖ÷´æ£¨ÎïÀíÄڴ棩ÖС£Õâ¸ö¾ÍÊÇÄÚ´æ¹ÜÀíËùÒª×öµÄÊ¡£ÄÚ´æ¹ÜÀí»¹ÓÐÁíÍâÒ»¼þÊÂÐèÒª×ö£º¼ÆËã³ÌÐòƬ¶ÎÔÚÖ÷´æÖеÄÎïÀíλÖã¬ÒÔ±ãCPUµ÷¶È¡£
ÄÚ´æ¹ÜÀíÓпéʽ¹ÜÀí£¬Ò³Ê½¹ÜÀí£¬¶ÎʽºÍ¶Îҳʽ¹ÜÀí¡£ÏÖÔÚ³£ÓöÎҳʽ¹ÜÀí
¿éʽ¹ÜÀí£º°ÑÖ÷´æ·ÖΪһ´ó¿é¡¢Ò»´ó¿éµÄ£¬µ±ËùÐèµÄ³ÌÐòƬ¶Ï²»ÔÚÖ÷´æʱ¾Í·ÖÅäÒ»¿éÖ÷´æ¿Õ¼ä£¬°Ñ³Ì ÐòƬ¶ÏloadÈëÖ÷´æ£¬¾ÍËãËùÐèµÄ³ÌÐòƬ¶ÈÖ»Óм¸¸ö×Ö½ÚÒ²Ö»ÄÜ°ÑÕâÒ»¿é·ÖÅä¸øËü¡£ÕâÑù»áÔì³ÉºÜ´óµÄÀË·Ñ£¬Æ½¾ùÀË·ÑÁË50£¥µÄÄÚ´æ¿Õ¼ä£¬µ«Ê±Ò×ÓÚ¹ÜÀí¡£
ҳʽ¹ÜÀí£º°ÑÖ÷´æ·ÖΪһҳһҳµÄ£¬Ã¿Ò»Ò³µÄ¿Õ¼äÒª±ÈÒ»¿éÒ»¿éµÄ¿Õ¼äСºÜ¶à£¬ÏÔÈ»ÕâÖÖ·½·¨µÄ¿Õ¼äÀûÓÃÂÊÒª±È¿éʽ¹ÜÀí¸ßºÜ¶à¡£
¶Îʽ¹ÜÀí£º°ÑÖ÷´æ·ÖΪһ¶ÎÒ»¶ÎµÄ£¬Ã¿Ò»¶ÎµÄ¿Õ¼äÓÖÒª±


Ïà¹ØÎĵµ£º

C++ Ö®Boostѧϰ±Ê¼Ç Linuxϱà³Ì

C++ѧϰ±Ê¼Ç--Linuxϱà³Ì
Ò»¡¢¹ØÓÚBoostµÄʹÓ㬼¸ÖÖ³£Ó÷½·¨£¬Ö»ÊÇ×Ô¼º¹¤×÷¡¢Ñ§Ï°ÖÐ×ܽáµÄ£¬ÓÐЩ·½·¨µÄÈ·ÓÐЩ·±Ëö£¬ÄÜÂú×ãÐèÇó£¬Ó¦¸Ã»¹Óиü¼Ó¼òµ¥¿ì½ÝµÄ·½Ê½£¬´ý¸Ä½ø¡£
1¡¢ÅжÏ×Ö·û´®ÓëÕýÔò±í´ïʽÊÇ·ñÆ¥Å䣨ÍêÈ«Æ¥Å䣩
bool IsMatch(const char* data,const char * regx)
{
    boost::regex express ......

ÈçºÎÖÕÖ¹Ï̵߳ÄÔËÐУ¨C/C++£©

ÈçºÎÖÕÖ¹Ï̵߳ÄÔËÐУ¨C/C++£©
ÏëÒªÖÕÖ¹Ï̵߳ÄÔËÐУ¬¿ÉÒÔʹÓÃÒÔÏ·½·¨£º
1¡¢Ï̺߳¯Êý·µ»Ø£¨×îºÃʹÓø÷½·¨£©¡£
2¡¢Í¨¹ýµ÷ÓÃExitThreadº¯Êý£¬Ï߳̽«×ÔÐг·Ïû£¨×îºÃ²»Ê¹Óø÷½·¨£©¡£
3¡¢Í¬Ò»¸ö½ø³Ì»òÁíÒ»¸ö½ø³ÌÖеÄÏ̵߳÷ÓÃTerminateThreadº¯Êý£¨Ó¦±ÜÃâʹÓø÷½·¨£©¡£
4¡¢ExitProcessºÍTerminateProcessº¯ÊýÒ²¿ÉÒÔÓÃÀ ......

C³ÌÐòÔ±µÄÇéÊé

#include <stdio.h>
#include <string.h>
int
main(void)
{
char str[] =
"3BVPSq4xF.K?=u#,"
"G'K<MrDnRr7gH%#,"
"XKf<f%G`w^=?C<#,"
"HgU_AnNR?*PDQU#,"
......

Java C++ Çø±ð

JAVAºÍC++¶¼ÊÇÃæÏò¶ÔÏóÓïÑÔ¡£Ò²¾ÍÊÇ˵£¬ËüÃǶ¼Äܹ»ÊµÏÖÃæÏò¶ÔÏó˼Ï루·â×°£¬¼Ì³Ë£¬¶à̬£©¡£
C++Äܱ»²Ù×÷ϵͳ£¨Window£¬Linux£©Ö±½ÓÔËÐУ¬¶øJava²»ÐУ¬ÐèÒªÓиöJVM¡£
 javaÓïÑÔ¸ø¿ª·¢ÈËÔ±ÌṩÁ˸üΪ¼ò½àµÄÓï·¨£»È¡ÏûÁËÖ¸Õë´øÀ´¸ü¸ßµÄ´úÂëÖÊÁ¿£»ÍêÈ«ÃæÏò¶ÔÏ󣬶ÀÌصÄÔËÐлúÖÆÊÇÆä¾ßÓÐÌìÈ»µÄ¿ÉÒÆÖ²ÐÔ¡£
1£®Ö¸Õë
JAVA ......

C/C++ ѧϰ±Ê¼Ç[03].È¥µôC·ç¸ñµÄ×¢ÊÍ

ÍøÉÏËÑË÷ÁËÒ»´ó¶ÑÈ¥µô/*ºÍ*/Ö®¼ä×¢Ê͵ĴúÂë,¾ÍÏñ<The C Programming Language>Á·Ï°1-23ÀïÓÐÈË˵µÄÒ»Ñù
´ó²¿·Ö¶¼»á±»ÒÔϵijÌÐòbroken,Õâ¸ö¹¦ÄÜ¿´ÆðÀ´¼òµ¥,ʵ¼ÊÉϺÜÓÐÄѶÈ.ÍøÉÏʵÏֵĴúÂë,³ýÁËÎÒÕÒµ½µÄÒ»¸öÓÃÎļþÖ¸ÕëʵÏÖµÄûÓÐÎÊÌâÍâ,ÆäÓàµÄ¶¼´æÔÚ¸÷ÖÖbug,²»ÐŵĻ°¾ÍÓÃÒÔϵijÌÐò²âÊÔÒ»ÏÂ:-),µ±È»Õâ¸ö³ÌÐòÒ²²»¹»ÍêÉÆ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ