̽Ë÷еÄC + +ºÍMFCÔÚVisual Studio 2010¹¦ÄÜ
̽Ë÷еÄC + +ºÍMFCÔÚVisual Studio 2010¹¦ÄÜ
Sumit Kumar
2010ÄêÁгöµÄVisual Studio C + +¿ª·¢µÄ¾Þ´óºÃ´¦¡£´Ó¹ÍÓÃÄÜÁ¦ÌṩÓÉWindows 7´óÁ¿´úÂëµÄ»ù´¡¹¤×÷£¬ÒÔÔöÇ¿Éú²úÁ¦ÌØÕ÷µÄÐÂÌص㣬ÓÐһЩеĶ«Î÷£¬Ìá¸ßÁ˼¸ºõËùÓеÄC + +¿ª·¢ÈËÔ±¡£
ÔÚÕâƪÎÄÕÂÖУ¬ÎÒ½«½âÊÍ΢ÈíÒѾ½â¾öÁËÈçºÎÓÃC + +¿ª·¢ÈËÔ±ËùÃæÁٵĹ㷺µÄһЩÎÊÌâ¡£¾ßÌåÀ´Ëµ£¬
µÄVisual Studio 2010¿ÉÒÔ´Ó¼´½«¼ÓÈëµÄC + +0ºËÐÄÓïÑÔ¹¦ÄܸüÏÖ´úµÄ±à³ÌÄ£ÐÍX±ê×¼£¬ÒÔ¼°´óÐÞ±ê×¼¿â²ÉÈ¡µÄеÄÓïÑÔ¹¦ÄÜ¡£ÓÐеIJ¢Ðбà³Ì¿âºÍ¹¤¾ß£¬ÒÔ¼ò»¯²¢ÐгÌÐòµÄ´´½¨¡£Ä㻹»á·¢ÏÖÌá¸ßÕûÌåÐÔÄܺͿª·¢ÈËÔ±µÄÉú²úÁ¦ÓÉÓÚÖÇÄܸÐÖªºÍ´úÂëµÄÁ˽⣬¹¦ÄÜ£¬¹æÄ£´óµÄ´úÂë¿â¡£¶øÄã»áÊÜÒæÓÚÕû¸ö
ͼÊé¹ÝºÍÆäËû¹¦ÄÜÉè¼ÆʱÌá¸ßÐÔÄÜ£¬Éú³Éʱ£¬±àÒëʱ¼äºÍÁªÏµÊ±¼ä¡£
2010ÄêǨÒƵ½Visual StudioÖÐÉú³ÉϵͳµÄMSBuild£¬Ê¹Æä¸ü¼Ó¶¨ÖÆ£¬²¢Ö§³Ö±¾µØ¶àÄ¿±ê¡£¶øÔÚMFC¿âÀûÓÃеÄWindows 7 APIµÄÁ¦Á¿ÔöÇ¿£¬Ê¹ÄúÄܹ»±àдӦÓóÌÐòΰ´óµÄWindows 7¡£
ÈÃÎÒÃÇÀ´¿´Ò»¿´ÕâЩC + +ΪÖصãµÄ½ø²½ÔÚVisual Studio 2010×Ðϸ¿´¿´¡£
µÄC + +0 xºËÐĵÄÓïÑÔÌØÉ«
ÏÂÒ»¸öC + +±ê×¼ÕýÖðÈÕ½Ó½ü¶¨¸å¡£ÎªÁË°ïÖúÄãÔÚC + +0 XÀ©Õ¹¿ªÊ¼£¬ÔÚVisual C + +ÔÚVisual Studio 2010±àÒëÆ÷µÄC + +0ʹ6 X CoreϵÁеÄÓïÑÔÌØÐÔ£ºLambda±í´ïʽ£¬×Ô¶¯¹Ø¼ü×Ö£¬ÓÒÖµÒýÓã¬static_assert£¬nullptrºÍdecltype¡£
Lambda±í´ïʽÒþʽ¶¨ÒåºÍ¹¹½¨ÄäÃûº¯Êý¶ÔÏó¡£ lambda±í´ïʽÌṩÁËÒ»¸öÇáÁ¿¼¶µÄ×ÔÈ»µÄÓï·¨À´¶¨Ò壬¶ø²»»á²úÉúÐÔÄÜ¿ªÏúµÄ×÷Óã¬Ê¹ËûÃÇʹÓõĶÔÏó¡£
º¯Êý¶ÔÏóÊÇÒ»¸ö·Ç³£Ç¿´óµÄ·½Ê½À´¶¨ÖƵıê׼ģ°å¿â£¨STL£©Ëã·¨µÄÐÐΪ£¬¿ÉÒÔ·â×°´úÂëºÍÊý¾Ý£¨²»ÏñÆÕͨº¯Êý£©¡£µ«²»·½±ãµÄº¯Êý¶ÔÏóÀ´¶¨Ò壬ÒòΪÐèҪдÈëÕû¸öÀà¡£´ËÍ⣬ËûÃÇûÓж¨ÒåÔÚÄãµÄÔ´´úÂ룬ÄãÕýÔÚ³¢ÊÔʹÓÃËüÃǵĵط½£¬·Ç¾ÖÓòÐÔʹµÃËûÃǸüÄÑÒÔÀûÓá£Í¼Êé¹ÝÊÔͼ¼õÇá¶ÔÈß³¤ºÍ·Ç¾ÖÓòÐÔµÄһЩÎÊÌ⣬µ«Ã»ÓÐÌṩ¶àÉÙ°ïÖú£¬ÒòΪÓï·¨±äµÃ¸´ÔÓ£¬±àÒëÆ÷´íÎó²¢²»Ê®·ÖÓѺᣴÓͼÊé¹ÝµÄ¹¦ÄÜʹÓöÔÏóÒ²½ÏÉÙ£¬ÒòΪ×÷ΪÊý¾Ý³ÉÔ±²»ÄܳÉÐеĶ¨ÒåµÄº¯Êý¶ÔÏóÓÐЧ¡£
Lambda±í´ïʽ½â¾öÕâЩÎÊÌâ¡£ÏÂÃæµÄ´úÂëƬ¶ÎÏÔʾÁËÒ»¸ölambda±í´ïʽÔÚÒ»¸ö³ÌÐò£¬ÒÔÏû³ý±äÁ¿Ö®¼äµÄÕûÊýxºÍÒ»¸öÕûÊýÏòÁ¿yʹÓá£
v.erase(remove_if(v.begin(),
v.end(), [x, y](int n) {
return x < n && n < y; }),
v.end());
µÚ¶þÐÐÏÔʾµÄlambda±í´ïʽ¡£·½À¨ºÅÄÚ£¬³ÆΪÀÄ·´ï£¬½éÉÜÈË£¬±íʾһ¸ölambda±í´ïʽ¶¨Òå¡£ÕâÀÄ·´ï²ÉÓÃÕûÊý×÷Ϊ²
Ïà¹ØÎĵµ£º
/*
* 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 << "Ö´Ðп½±´º¯Êý¿½±´Ò»¸ö¶ ......
Technorati ±êÇ©: C++ ÔÎĵØÖ·£ºhttp://www.byvoid.com/blog/c-int64/ ÔÚC/C++ÖУ¬64ΪÕûÐÍÒ»Ö±ÊÇÒ»ÖÖûÓÐÈ·¶¨¹æ·¶µÄÊý¾ÝÀàÐÍ¡£ÏÖ½ñÖ÷Á÷µÄ±àÒëÆ÷ÖУ¬¶Ô64ΪÕûÐ͵ÄÖ§³ÖÒ²ÊDZê×¼²»Ò»£¬ÐÎ̬¸÷Òì¡£Ò»°ãÀ´Ëµ£¬64λÕûÐ͵Ķ¨Ò巽ʽÓÐlong longºÍ__int64Á½ÖÖ(VC»¹Ö§³Ö_int64)£¬¶øÊä³öµ½±ê×¼Êä³ö·½Ê½ÓÐprintf(¡°%lld¡±,a)£¬printf ......
C/C++ Reference
http://www.cppreference.com/
C++ Library Reference
http://www.cplusplus.com/ref/
Standard C++ Library Class Reference at Rogue Wave
http://www.roguewave.com/support/docs/hppdocs/stdref/
Dink ......
oracleÖÐpro*cµÄѧϰ
¡¡Ò» Pro*C ³ÌÐò¸ÅÊö£º
1£®Ê²Ã´ÊÇPro*C³ÌÐò
ÔÚORACLEÊý¾Ý¿â¹ÜÀíºÍϵͳÖУ¬ ÓÐÈýÖÖ·ÃÎÊÊý¾Ý¿âµÄ·½·¨£»
£¨1£© ÓÃSQL*Plus£¬ ËüÓÐSQLÃüÁîÒÔ½»»¥µÄÓ¦ÓóÌÐò·ÃÎÊÊý¾Ý¿â£»
£¨2£© ÓõÚËÄ´úÓïÑÔÓ¦Óÿª·¢¹¤¾ß¿ª·¢µÄÓ¦ÓóÌÐò·ÃÎÊÊý¾Ý¿â£¬ÕâЩ¹¤¾ßÓÐSQL*froms£¬QL*Reportwriter,SQL*MenuµÈ£»
£¨3£© ÀûÓÃÔÚ ......