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

CÓëC++µÄÇø±ð

1. C++ËäÈ»Ö÷ÒªÊÇÒÔCµÄ»ù´¡·¢Õ¹ÆðÀ´µÄÒ»ÃÅÐÂÓïÑÔ£¬µ«Ëý²»ÊÇCµÄÌæ´úÆ·£¬²»ÊÇCµÄÉý¼¶£¬C++ºÍCÊÇÐֵܹØϵ¡£Ã»ÓÐË­±ÈË­ÏȽøµÄ˵·¨£¬¸üÖØÒªµÄÒ»µãÊÇCºÍC++¸÷×Եıê׼ίԱ»áÊǶÀÁ¢µÄ£¬×îеÄC++±ê×¼ÊÇC++98£¬×îеÄC±ê×¼ÊÇC99¡£Òò´ËҲûÓÐÏÈѧCÔÙ˵C++µÄ˵·¨£¬Ò²²»ÔÙ£¨×¢ÒâÕâ¸ö"²»ÔÙ"£©ÓÐC++Óï·¨ÊÇCÓï·¨µÄ³¬¼¯µÄ˵·¨¡£
2. C++/CLI ºÍ C# ÊÇ΢ÈíµÄ£¬ËüÃÇÓëCºÍC++ûÓÐÈκιØϵ£¬ËäÈ»²¿·ÖÓï·¨ÏàËÆ¡£µ«ÄÄÁ½ÖÖÓïÑÔ²»ÏàËÆÄØ£¿¶¼ÊÇabcÕâ26¸ö×Öĸ¡£
3. ²»ÒªÊ¹ÓÃTC/TC++/BC/CBµÈ¹ÅÀϵıàÒëÆ÷À´Ñ§Ï°C/C++£¬ÒòΪËüÃÇÌ«¹ÅÀÏÁË£¬²»Ö§³ÖеÄC/C++±ê×¼¡£²»ÒªÊ¹ÓÃCBX/VC++6.0/VC2005µÈ¶ÔC/C++±ê×¼Ö§³Ö²»ºÃµÄ±àÒëÆ÷£¬ËäÈ»ÕâЩ±àÒëÆ÷ÊʺϹ¤×÷£¬µ«²»ÊʺÏѧϰ£¬ÒòΪËüÃÇÖеÄÓï·¨ÏÝÚåºÜ¶à¡£¼ÇסΨһÊʺÏѧϰµÄ±àÒëÆ÷ÊÇgcc/mingw¡£[antigloss×¢£ºDev-C++ ʹÓõıàÒëÆ÷¾ÍÊÇgcc & g++]
4. ²»ÒªÓÃ""´úÌæ<>À´°üº¬ÏµÍ³Í·Îļþ£¬ËäÈ»ÓÐЩ±àÒëÆ÷ÔÊÐíÄãÕâÑù×ö£¬µ«Ëü²»·ûºÏC/C++±ê×¼¡£
´íÎóµÄʾÀý£º#include "stdio.h"£¬#include "iostream"¡£[antigloss×¢£ºÏ°¹ßÉÏ£¬<> ÓÃÓÚ°üº¬±ê׼ͷÎļþºÍϵͳͷÎļþ£¬"" ÓÃÓÚ°üº¬×Ô¶¨ÒåÍ·Îļþ¡£±ê×¼ËƺõûÓÐÃ÷È·¹æ¶¨²»×¼Óà "" °üº¬±ê׼ͷÎļþºÍϵͳͷÎļþ¡£Ê¹Óà "" °üº¬±ê׼ͷÎļþ»òÕßϵͳͷÎļþÖ»ÄÜ˵ÊÇÒ»ÖÖ²»Á¼·ç¸ñ¡£]
5. ²»Òª½«mainº¯ÊýµÄ·µ»ØÀàÐͶ¨ÒåΪvoid£¬ËäÈ»ÓÐЩ±àÒëÆ÷ÔÊÐíÄãÕâÑù×ö£¬µ«Ëü²»·ûºÏC/C++±ê×¼¡£²»Òª½«º¯ÊýµÄint·µ»ØÀàÐÍÊ¡ÂÔ²»Ð´£¬ÔÚC++ÖÐÒªÇó±àÒëÆ÷ÖÁÉÙ¸øÒ»¸ö¾¯¸æ¡£´íÎóµÄʾÀý£ºvoid main() {}£¬main() {} [antigloss×¢£ºC99ºÍC++98¶¼ÒªÇó±àÒëÆ÷¶ÔÊ¡ÂÔintÖÁÉÙ·¢³öÒ»¸ö¾¯¸æ]
Èç¹û²»ÐèÒª´ÓÃüÁîÐÐÖлñÈ¡²ÎÊý£¬ÇëÓÃint main(void) £»·ñÔòÇëÓÃint main( int argc, char *argv[] ) ¡£
6. ²»Òª°ÑVC++ÖÐµÄ #include "stdafx.h" Ìù³öÀ´£¬ËüÊÇÔ¤±àÒëÍ·Îļþ¡£ÈçͬÉϲËʱ²»Òª°Ñ³øʦҲ·Åµ½ÍÐÅÌÖС£
7. [C++]²»Òª#include <iostream.h>£¬²»Òª#include <string.h>£¬ÒòΪËüÃÇÒѾ­±»C++±ê×¼Ã÷È·µÄ·ÏÆúÁË£¬Çë¸ÄΪ #include <iostream> ºÍ #include <cstring>¡£¹æÔò¾ÍÊÇ£º
    a. Èç¹ûÕâ¸öÍ·ÎļþÊǾÉC++ÌØÓеģ¬ÄÇôȥµô.hºó׺£¬²¢·ÅÈëstdÃû×ֿռ䣬
        ±ÈÈç iostream.h ±äΪ iostream¡£
    b. Èç¹ûÕâ¸öÍ·ÎļþÊÇCÒ²Óеģ¬ÄÇôȥµô.hºó׺£¬Ôö¼ÓÒ»¸öcǰ׺£¬±ÈÈç string.h
        ±äΪ


Ïà¹ØÎĵµ£º

SpringÅäC3P0Á¬½Ó³Ø(ÒÔMySQLÊý¾Ý¿âÅäÖÃΪÀý)

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:jee="http://www.springframework.org/schema/jee"
      &nbs ......

C Sharp ÏÞÖÆÐÞÊηû

public¿ÉÒÔ±»ÈÎÒâ´æÈ¡£»
protectedÖ»¿ÉÒÔ±»±¾ÀàºÍÆä¼Ì³Ð×ÓÀà´æÈ¡£»
internalÖ»¿ÉÒÔ±»±¾×éºÏÌ壨Assembly£©ÄÚËùÓеÄÀà´æÈ¡£¬×éºÏÌåÊÇC#ÓïÑÔÖÐÀà±»×éºÏºóµÄÂß¼­µ¥Î»ºÍÎïÀíµ¥Î»£¬Æä±àÒëºóµÄÎļþÀ©Õ¹ÃûÍùÍùÊÇ“.DLL”»ò“.EXE”¡£
protected internalΨһµÄÒ»ÖÖ×éºÏÏÞÖÆÐÞÊηû£¬ËüÖ»¿ÉÒÔ±»±¾×éºÏÌåÄÚ ......

C# µ÷Óà c++ dll µÄһЩÎÊÌâ×ܽá

1.c++µÄµ½´¦º¯ÊýÖ»ÒªÔÚº¯ÊýÉêÃ÷µÄʱºò¼Ó¸öµ¼³ö¹Ø¼ü×־ͿÉÒÔÁË
2.²ÎÊýÀàÐÍÎÊÌâ,
Ò»°ãµÄc++ÖÐchar * ¶ÔÓ¦ c#ÖеÄstring
¶øc++ÖÐ char **ÀàÐ͵IJÎÊý¶ÔÓ¦c#ÖÐ ref string ÕâÖÖÒ»°ã¶¼ÊÇÓÃÀ´·µ»Ø×Ö·û´®µÄ!
3.º¯ÊýÈë¿ÚÎÊÌâ,Ò»°ã»á³öÏÖ "ÕÒ²»µ½Èë¿Úµã" Õâ¸öÎÊÌâ²»ÊÇÓÉÄãÒýÆðµÄ,¶øÊÇϵͳ×Ô¼º°ÑÃû×Ö¸ÄÁË,¸Ä³ÉʲôÑùµÄÃû×Ö½¨ÒéÄãÓà ......

C++ÓëJavaµÄÇø±ðÏê½â:

1.JavaÔÚÐéÄâ»úÉÏÔËÐР
JavaÔ´´úÂë²¢²»ÊDZ»±àÒë³ÉΪÆÕͨµÄ»úÆ÷´úÂë¡£¶øÊDZ»·­Òë³ÉΪÐéÄâ»ú¿ÉÒÔÖ´ÐеĴúÂë¡£Ò»¸öJava½âÊÍÆ÷×îÖÕÖ´ÐÐÕâЩ´úÂë¡£ÕâÆäÖÐûÓÐÁ¬½ÓµÄ¹ý³Ì£»½âÊÍÔÚÐèÒªµÄʱºò¶¯Ì¬µÄ¼ÓÔØһЩÀࣻ 
2.JavaÊÇÍêÈ«ÃæÏò¶ÔÏóµÄ 
JavaÊÇÒ»ÖÖÍêÈ«ÃæÏò¶ÔÏóµÄÓïÑÔ¡£ÕâÒâζ×ÅÄã¶ÔÈκÎÒ»¸öJava¶ÔÏóËù×öµÄ¶ ......

ÔÚÆÁÄ»ÉÏ»­Í¼µÄC££ÊµÏÖ´úÂë


DllImportËùÔÚµÄÃû×Ö¿Õ¼ä using System.Runtime.InteropServices;
[DllImport("User32.dll")]
        public extern static System.IntPtr GetDC(System.IntPtr hWnd);   
        private void button19_Click(obj ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ