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

C/C++º¯Êý²ÎÊý,´«ÖµÓò´«Ö·µÄÇø±ð!!!

/*
* 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 << "Ö´Ðп½±´º¯Êý¿½±´Ò»¸ö¶ÔÏó" << endl;
}
~A(){
cout << "Ö´ÐÐÎö¹¹º¯Êýɾ³ýÒ»¸ö¶ÔÏó" << endl;
}
};
void func(A a){
cout << "µ÷ÓÃÒ»¸ö´«Öµº¯Êý" << endl;
}
void func2(A &a){
cout << "µ÷ÓÃÒ»¸ö´«Ö·º¯Êý" << endl;
}
A getA(A a){
return a;
}
A getA2(A &a){
return a;
}
/**
* ͬgetA4
*/
A* getA3(A &a){
return &a;
}
/**
* ͬgetA3
*/
A* getA4(A *a){
return a;
}
/*
* °´Öµ´«µÝµÄȱµã...µ±´´½¨Ò»¸öеĶÔÏóÖ®ºó,Èç¹û°´Öµ´«µÝ
* ½«¸´Öƹ¹Ô캯Êý´´½¨¶ÔÏóµÄ¸±±¾,¸±±¾ÔÚʹÓÃÍê³ÉÖ®ºó,ÓÖ»áÖ´ÐÐÎö¹¹º¯Êýɾ³ý¸Ã¸±±¾!
*/
int main(int argc, char** argv) {
A a;
func(a);
func(a);
cout << "-------" << endl;
func2(a);
func2(a);
cout << "-------" << endl;
getA(a); // ½«¿½±´2¸ö¶ÔÏóºÍɾ³ý2¸ö¶ÔÏó,1¸ö¶ÔÏóÊÇ×÷Ϊ²ÎÊý´«µÝµÄ,ÁíÍâÒ»¸ö¶ÔÏóÊÇ×÷Ϊֵ·µ»ØµÄ!
cout << "-------" << endl;

getA2(a); // ½«¿½±´1¸ö¶ÔÏóºÍɾ³ý1¸ö¶ÔÏó,¸Ã¶ÔÏóÊÇ×÷Ϊֵ·µ»ØµÄ!
cout << "-------" << endl;
getA3(a); // ½«²»¿½±´aµÄ¶ÔÏó×öΪ²ÎÊý,Ò²²»»á¿½±´aµÄ¶ÔÏó×÷Ϊ·µ»ØÖµ(°üÀ¨É¾³ý)!
getA4(&a);
return (EXIT_SUCCESS);
}
Ö´Ðй¹Ô캯Êý´´½¨Ò»¸ö¶ÔÏó
Ö´Ðп½±´º¯Êý¿½±´Ò»¸ö¶ÔÏó
µ÷ÓÃÒ»¸ö´«Öµº¯Êý
Ö´ÐÐÎö¹¹º¯Êýɾ³ýÒ»¸ö¶ÔÏó
Ö´Ðп½±´º¯Êý¿½±´Ò»¸ö¶ÔÏó
µ÷ÓÃÒ»¸ö´«Öµº¯Êý
Ö´ÐÐÎö¹¹º¯Êýɾ³ýÒ»¸ö¶ÔÏó
-------
µ÷ÓÃÒ»¸ö´«Ö·º¯Êý
µ÷ÓÃÒ»¸ö´«Ö·º¯Êý
-------
Ö´Ðп½±´º¯Êý¿½±´Ò»¸ö¶ÔÏó
Ö´Ðп½±´º¯Êý¿½±´Ò»¸ö¶ÔÏó
Ö´ÐÐÎö¹¹º¯Êýɾ³ýÒ»¸ö¶ÔÏó
Ö´ÐÐÎö¹¹º¯Êýɾ³ýÒ»¸ö¶ÔÏó
-------
Ö´Ðп½±´º¯Êý¿½±´Ò»¸ö¶ÔÏó
Ö´ÐÐÎö¹¹º¯Êýɾ³ýÒ»¸ö¶ÔÏó
-------
Ö´ÐÐÎö¹¹º¯Êýɾ³ýÒ»¸ö¶ÔÏó
ÔËÐгɹ¦£¨×ܼÆʱ¼ä£º 255ºÁÃ룩


Ïà¹ØÎĵµ£º

ÓеÀÄÑÌâÁ·Ï°Èü2ÖеÄcÌâ

ÃèÊö ¸ø¶¨Ò»¸öÕûÊýÐòÁУ¬ÅжÏÆäÖÐÓжàÉÙ¸öÊý£¬µÈÓÚÊýÁÐÖÐÆäËûÁ½¸öÊýµÄºÍ¡£ ±ÈÈ磬¶ÔÓÚÊýÁÐ1 2 3 4, Õâ¸öÎÊÌâµÄ´ð°¸¾ÍÊÇ2, ÒòΪ3 = 2 + 1, 4 = 1 + 3¡£ ÊäÈë µÚÒ»ÐÐÊÇÒ»¸öÕûÊýT£¬±íʾһ¹²ÓжàÉÙ×éÊý¾Ý¡£ 1<= T <= 100
½ÓÏÂÀ´µÄÿ×éÊý¾Ý¹²Á½ÐУ¬µÚÒ»ÐÐÊÇÊýÁÐÖÐÊýµÄ¸öÊýn ( 1 <= n <= 100)£¬µÚ¶þÐÐÊÇÓÉn¸öÕûÊý×é³ ......

´¿Java°æ¹¤ÐÐB2CÍøÒø½Ó¿Úµ÷ÓÃ×ܽá

1.Ê×ÏÈ¿´¶®¹Ù·½Îĵµ
2.icbc.jarÕâ¸öjar°üÒ»¶¨ÒªÒªµ½£¡ÕâÊǽøÐÐbase64¼ÓÃܽâÃÜ£¬ÒÔ¼°
ʹÓù¤ÐÐÖ¤ÊéÇ©ÃûµÄÖØÒª¹¤¾ßÀà¡£
3.²ÉÈ¡´¿Java±àÂ룬Ҫȷ±£ÓöÔÖ¤Ê飬·ÅÔÚDÅ̸ùĿ¼ÏÂ(ÆäËû·¾¶Òà¿É)¡£
4.±àдJSP½Ó¿ÚÒ³Ã棬×ֶαØÐëÓ빤ÐеÄÒ»Ò»¶ÔÓ¦¡£
¶øÇÒÈçtranDataµÈ×ֶνøÐÐbase64¼ÓÃܺó»òÕßÇ©Ãûºó ±ØÐëÒÔ"“Ë«ÒýºÅÀ©ÉϲŠ......

C±à³Ì¾«´â

¹æÔò»ò½¨Ò顣ÿÌõ×¼Ôò¶¼ÓÐÀýÍâ
1£¬¼ÙÏëµÄ±àÒë³ÌÐò
ʹÓñàÒë³ÌÐòËùÓеĿÉÑ¡¾¯¸æÉèÊ©
ʹÓÃlintÀ´²é³ö±àÒë³ÌÐò©µôµÄ´íÎó
Èç¹ûÓе¥Ôª²âÊÔ£¬¾Í½øÐе¥Ôª²âÊÔ
2£¬×Ô¼ºÉè¼Æ²¢Ê¹ÓöÏÑÔ
¼ÈҪά»¤³ÌÐòµÄ½»¸¶°æ±¾£¬ÓÖҪά»¤³ÌÐòµÄµ÷ÊÔ°æ±¾
ҪʹÓöÏÑÔ¶Ôº¯Êý²ÎÊý½øÐÐÈ·ÈÏ
Òª´Ó³ÌÐòÖÐɾȥÎÞ¶¨ÒåµÄÌØÐÔ£¬»òÕßÔÚ³ÌÐòÖÐʹÓöÏÑÔÀ´¼ ......

ÔÚEclipseϵÄC/C++¿ª·¢£¨Eclipse3.2 + CDT 3.1£©


ÒªÈàEclipse ¿ÉÒÔ¿ª·¢ C/C++ ³Ìʽ£¬Òª¹ÒÉÏ CDT ²Å¿ÉÒÔ¡£
 
Ê×ÏÈÒªÏÂÔØCDT
 
CDTµÄ×îа汾ÊÇ 3.1.0£¬ËüÖ§³Öeclipse3.2.0£¬ÆäÏÂÔصØÖ·£ºhttp://download3.eclipse.org/tools/cdt/releases/callisto/dist/3.1.0/£¬»òÕßÊǵ½http://www.eclipse.org/cdt/downloads.phpÏÂÔØÆäËü° ......

C/C++º¯Êý²ÎÊý,´«ÖµÓò´«Ö·!!!

/*
* 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; ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ