java¿ì »¹ÊÇ c¿ì[c++¿ì],ËÆÊǶø·ÇµÄ̸
Ê×ÏÈ˵Ã÷Ò»ÏÂÕâ¸ö”¿ì”µÄº¬Òå,ÎÒÏëÒÔÇ°ÄÇЩÌÖÂÛÕâ¸ö»°ÌâµÄÈ˵±È»ÈÏΪÕâ¸ö¿ìÊÇÖ¸³ÌÐòµÄÔËÐÐËÙ¶È,ÖÁÓÚ”Èí¼þ¿ª·¢ËٶȔ¿ÖÅÂÏëҲûÏë,»òÐíÈÏΪÈí¼þ¿ª·¢ËٶȺÍÕâ¸ö»°Ì⳶²»ÉÏÒ»µã¹Øϵ.ÄÇôÕâ¸öÎÊÌâÔÚÍøÉÏËÑËÑ,ËѵÄÒ»´ó¶Ñ,ÄÇЩc/c++ÕóÓªµÄÁÐÁ˺ܶàÀý×ÓÀ´ËµÃ÷c/c++¿ì, javaÕóÓªµÄÒ²ÊÇÈç´Ë,»¹ÌṩһЩ»ú¹¹µÄÊý¾ÝÀ´ËµÃ÷java²¢²»Âý.¿ÉÊÇÈÔȻûÓÐÈôó¼Ò¶¼ÐÅ·þµÄÀíÓÉ»òÕß½á¹û.´ÓÕâЩÌÖÂÛÖÐÎÒÃÇÓ¦¸ÃµÃµ½Ò»Ð©Æôʾ,ÄǾÍÊÇÌÖÂÛÕâ¸ö»°ÌâµÄÇ°ÌáÊÇÌÖÂÛµÄÈ˱ØÐë¼È¶ÔjavaÓкÜÉîµÄÁ˽⻹Ҫ¶Ôc/c++ÓкÜÉîÈëµÄ½Ó´¥,·ñÔò¶¼ÊÇÆ«ÃæµÄ.
ÁíÍâ´ÓÍøÉϵĽá¹û¿´´ó¼Ò¶¼Ì¸µ½ÁËÒ»¸ö¹²Í¬µã,±àÒëµÄ·½Ê½»ò»úÖÆÊǶÔËÙ¶ÈÊÇÓÐÓ°ÏìµÄ.ÔÚÕâÀïÌáµ½ÁËjavaµÄ¶¯Ì¬±àÒëµÄÎÊÌâJIT(just in time).ºÜÃ÷ÏԺܶàc/c++³ÌÐòÔ±Ëû²»Á˽âjavaµÄÔËÐлúÖÆ,javaµÄ¶¯Ì¬±àÒëÊÇÕâÑùÃèÊöµÄ,Ê×ÏÈдÍêÒ»¸öhelloworld.javaµÄÔ´Îļþ½»ÓÉjava compilerµÃµ½helloworld .classÎļþ,java.exe»áÆô¶¯Java Virtual Machine,²¢¼ÓÔØÕâ¸öclassÎļþͨ¹ýJIT±àÒëΪ±¾»úµÄ»úÆ÷´úÂë.ÌرðҪǿµ÷µÄÊÇÕâ¸öclassÎļþ,ËüÊDZàÒëÔÀíÖÐËùνµÄÖмä´úÂë,Ëü²¢²»ÊÇÄ¿±ê´úÂë.Ò²ÕýÒòΪÓÐÁËÕâ¸öÖмä´úÂë²Åʹ¶¯Ì¬±àÒëµÃÒÔʵÏÖ,¶øc/c++ÊÇÖ±½Óµ½¶þ½øÖƵĻúÆ÷´úÂë,Ò²²»ÐèÒªÖмä´úÂë¶à´ÎÒ»¾Ù.²»¹ý²»ÒªÈÏΪjavaµÄclassÎļþÊǶàÓàµÄŶ,ËüµÄÕæÕýÄ¿µÄ¾ÍÊÇÕû¸öjavaÓïÑԵijÐŵwrite once, run anywhere,Ò²¾ÍÊÇ˵²»¹ÜÄãÊÇÔÚwindows osƽ̨»¹ÊÇÔÚlinux osƽ̨,class¶¼ÊÇÒ»ÑùµÄ,Ö»ÊÇJava Virtual MachineÊDz»Ò»ÑùµÄ,ËùÒÔÓв»Í¬os°æ±¾µÄjdk(ÒªÏëÔËÐÐjavaÒ»°ãÖ»ÒªJava Runtime Environments¾Í¹»ÁË).ͬÀí.NETÒ²ÊÇÕâÑùµÄ,ËùνµÄ.net framework¾ÍÊdzе£ÁËJVMµÄ½ÇÉ«.˵µ½ÕâÓбØÒªÌáÐÑһϸ÷λjavaΪʲôҪ¸ã¸öJVM,.NETÄѵÀÊǽö½öΪÁ˺Íjava¾ºÕù²Å¸ã.net frameworkÂð?ºÇºÇ,ÔÒòÒ²ÐíºÜ¶à,µ«Ò»¶¨»áÓÐÈí¼þ¿ª·¢ÖÜÆÚ,ÈËÁ¦³É±¾,ÕâºÜÖØҪŶ,ºÇºÇ,¿ìÒª³¶µ½Èí¼þ¿ª·¢ËÙ¶ÈÉÏÀ´ÁË.
ÔÚÕâÀïÎÒÒªÌáÐѸ÷λµÄÊǹØÓÚ±àÒëÆ÷µÄ,ÓÃjavaÍêÈ«¿ÉÒÔд³öÒ»¸öc/c++±àÒëÆ÷,µ±È»¸ü¿ÉÒÔд³öÒ»¸öjava±àÒëÆ÷,²»ÒªÆæ¹ÖŶ,Èç¹ûÄ㶮±àÒëÔÀíµÄ»°,ÄãÒ»¶¨»áÔÞͬÎҵĹ۵ãµÄ. ¼¦ºÍ¼¦µ°µÄÎÊÌâ!!!
Èç¹ûÄÇÖÖÓïÑÔÂýµÄÁîÈËÎÞ·¨ÈÌÊܵĻ°,ÄÇËüÔç¾ÍÍƳöÀúÊ·Îę̀ÁË,¿ÉÊÇjavaÍ˳öÁËÂð,ÎÒÃÇÏȲ»Ì¸ÏÖÔÚjavaÈí¼þµÄÈ«ÇòÊг¡·Ý¶î,¾Í¿´¿´TIOBEÊÀ½ç±à³ÌÓïÑÔÅÅÐаñ,ÅÅÔÚÇ°3λµÄÊÇjava,c,c++.JavaµÄʹÓÃÈËÊýÏÖÔÚÿÄêÔÚС·ùϽµ,²»ÊÇÒòÎ
Ïà¹ØÎĵµ£º
¡¡¡¡inkfish·Ò룬ÇëÎðÉÌÒµÐÔÖÊתÔØ£¬×ªÔØÇë×¢Ã÷À´Ô´£¨http://blog.csdn.net/inkfish
£©¡£±¾ÎÄÊÇÎÒѧϰJUELͬʱ£¬¶ÔÔÍøÕ¾½øÐеļòµ¥µÄ·Ò룬ÔÍøÕ¾µØÖ·£ºhttp://juel.sourceforge.net/
¡¡¡¡JUEL
ÊÇͳһ±í´ïʽÓïÑÔ£¨Unified Expression Language
, EL
£©µÄÒ»¸öʵÏÖ£¬ÊÇJSP 2.1
±ê×¼£¨JSR-245
£©µÄÒ»²¿·Ö£¬ÒѾ×÷ΪJa ......
Ç°ÃæһƪÎÒÃǽ²ÁËλÔËËãºó£¬»ù±¾CÓïÑԵĴó¿é¶¼Ìá¼°ÁË£¬Ò»Ð©Ï¸½ÚºÍÓ÷¨ÔÝʱ²»ÔÙ±¾Ä£¿é½éÉÜÁË¡£Ï£ÍûÎÒµÄÐÄÔ¸Äܹ»ÔÚÎÒ±Ïҵ֮ǰ¸øÎҵĴóѧÉúÑÄ»®ÉÏÒ»¸öÔ²ÂúµÄ¾äºÅ¡£¼ÓÓÍŬÁ¦¡£
ÔÚ±¾Ä£¿éµÄµÚÈýƪ¾ÍÒѾ½²ÁË»ù±¾µÄÊý¾ÝÀàÐÍ£¬ÆäÖаѸ¡µãÊý¿ÌÒâÁôÔÚÁ˺óÃæÀ´½éÉÜ¡£ÎÒµÄÀí½âÊÇÔÚÎÒÃÇÀí½âÁËÄڴ棬ָÕ룬λÔËËãµÈºó£¬ÔÙÀ´½éÉܸ¡µãÕâ¸öÌ ......
http://www.cppreference.com/wiki/cn/stl/algorithm/remove
Óï·¨:
#include <algorithm>
forward_iterator remove( forward_iterator start, forward_iterator end, const TYPE& val );
remove Ëã·¨ÒƳý [start,end) ·¶Î§Ö®ÄÚµÄËùÓÐÓë val ÏàµÈµÄÔªËØ¡£
´Ëº¯ÊýµÄ·µ»ØÖµÊÇÒ»¸öµ ......
C¡¢´«Í³ C++
#include <assert.h>¡¡¡¡¡¡¡¡//É趨²åÈëµã
#include <ctype.h>¡¡¡¡¡¡¡¡ //×Ö·û´¦Àí
#include <errno.h>¡¡¡¡¡¡¡¡ //¶¨Òå´íÎóÂë
#include <float.h>¡¡¡¡¡¡¡¡ //¸¡µãÊý´¦Àí
#include <fstream.h>¡¡¡¡¡¡ //ÎļþÊäÈ룯Êä³ö
#include <iomanip.h>¡¡¡¡¡¡ //²ÎÊý»¯ÊäÈ룯Êä³ ......
1.
ÒýÑÔ
¡¡¡¡C++
ÓïÑԵĴ´½¨³õÖÔÊÇ“a
better C”
£¬µ«ÊÇÕâ²¢²»Òâζ×ÅC++
ÖÐÀàËÆC
ÓïÑÔµÄÈ«¾Ö±äÁ¿ºÍº¯ÊýËù²ÉÓõıàÒëºÍÁ¬½Ó·½Ê½ÓëC
ÓïÑÔÍêÈ«Ïàͬ¡£×÷ΪһÖÖÓûÓëC
¼æÈݵÄÓïÑÔ£¬C++
±£ÁôÁËÒ»²¿·Ö¹ý³Ì ʽÓïÑÔµÄÌص㣨±»ÊÀÈ˳ÆΪ“
²»³¹µ×µØÃæÏò¶ÔÏó”
£©£¬Òò¶øËü¿ÉÒÔ¶¨Òå²»ÊôÓÚÈκÎÀàµÄÈ«¾Ö ......