(ת£©Ñ§Ï°c/c++µÄ50¸öºÃÍøÕ¾
1¡¢http://snippets.dzone.com/tag/c/ --ÊýÒÔǧ¼ÆµÄÓÐÓõÄCÓïÑÔÔ´´úÂëƬ¶Î
2¡¢http://www.hotscripts.com/category/c-cpp/scripts-programs/ Hotscripts --ÌṩÊýÒ԰ټƵÄCºÍC++½Å±¾ºÍ³ÌÐò¡£ËùÓгÌÐò¶¼·ÖΪ²»Í¬µÄÀà±ð¡£
3¡¢http://www.planetsourcecode.com/vb/default.asp?lngWId=3 --³¬¹ýÍòÐÐCºÍC++Ãâ·ÑµÄÔ´´úÂë
4¡¢http://freshmeat.net/browse/164/ --³¬¹ý9000¸öC±àдµÄÏîÄ¿¡£
5¡¢http://www.daniweb.com/code/c.html --DANIWEBÌṩµÄʵÓôúÂë¶Î ¡£
6¡¢http://www.programmersheaven.com/tags/C/ --programmersheaven.comÉϵÄC±à³Ì×ÊÔ´¡£
7¡¢http://www.ddj.com/code/ddj.html --Dr. Dobb’s JournalµÄÔ´´úÂë¡£
8¡¢http://www.cprogramming.com/cgi-bin/source/source.cgi --CºÍC + +±à³Ì×ÊÔ´¡£
9¡¢http://www.codecogs.com/ --CodeCogsÊÇÒ»ÏîÐ×÷µÄ¿ª·ÅÔ´Âë¿â£¬C/C++µÄÊýÖµ·½ÃæµÄ×é¼þ¡£
10¡¢http://www.google.com/codesearch?q=programming++lang:c&cs_r=lang:c --¹È¸è´úÂëµÄCÔ´´úÂë¡£
11¡¢http://www.codepedia.com/1/C --CodePediaÊÇÒ»¸ö¿ª·ÅµÄ¹ØÓÚϵͳ±à³ÌºÍÆäËûÓëµçÄÔÓйصÄÒéÌâ¡£
12¡¢http://www.cis.temple.edu/~ingargio/cis71/code/ --ΪѧÉúÌṩµÄÒ»¸ö¼òµ¥µÄCÓïÑÔ³ÌÐòµÄÁÐ±í¡£
13¡¢http://www.codeproject.com/?cat=2 --codeprojectÌṩµÄC/C++×ÊÔ´´úÂëÏîÄ¿¡£
14¡¢http://www.thefreecountry.com/sourcecode/cpp.shtml --ÒÔÏÂÊÇһЩCºÍC++¿âµÄDLL£¬VCLs£¬Ô´´úÂ룬Ԫ¼þ£¬Ä£¿é£¬Ó¦ÓóÌÐò¿ò¼Ü£¬Àà¿â£¬Ô´´úÂëƬ¶ÎµÈ£¬Äã¿ÉÒÔÔÚÄúµÄÏîÄ¿ÖÐʹÓöø²»ÐèÒªÖ§¸¶·ÑÓúͰæË°¡£
15¡¢http://people.sc.fsu.edu/~burkardt/cpp_src/cpp_src.html --ÕâÊÇÒ»¸öÈ«ÃæµÄ¹ØÓÚC++µÄ345¸öÔ´´úÂëÇåµ¥¡£
16¡¢http://www.cplusplus.com/src/ --C++дµÄͨÓÿØÖÆ̨³ÌÐòºÍWindows³ÌÐò´úÂëÇåµ¥¡£
17¡¢http://users.cs.fiu.edu/~weiss/dsaa_c++/code/ --C++ÓïÑÔÊý¾Ý½á¹¹ÓëËã·¨·ÖÎö£¨µÚ¶þ°æ£©µÄÔ´´úÂë¡£
18¡¢http://c.snippets.org/ --CÔ´´úÂëƬ¶Î¡£
19¡¢http://www.bbdsoft.com/downloads.html --C++Ô´´úÂë¡£
20¡¢http://www.moshier.net/ ÌìÎÄѧºÍÊýÖµÈí¼þÔ´´úÂë
21¡¢http://cplus.about.com/od/cgames/C_Games_with_Source_Code.htm --ÓÎÏ·ÓйصÄC++Ô´´úÂë¡£
22¡¢http://cliodhna.cop.uop.edu/~hetrick/c-sources.html --Ãâ·ÑµÄC/C++ÊýÖµ¼ÆËãÔ´´úÂë¡£
23¡¢http://www.mathtools.net/C_C__/Utilities/index.html -
Ïà¹ØÎĵµ£º
ÃèÊö ¸ø¶¨Ò»¸öÕûÊýÐòÁУ¬ÅжÏÆäÖÐÓжàÉÙ¸öÊý£¬µÈÓÚÊýÁÐÖÐÆäËûÁ½¸öÊýµÄºÍ¡£ ±ÈÈ磬¶ÔÓÚÊýÁÐ1 2 3 4, Õâ¸öÎÊÌâµÄ´ð°¸¾ÍÊÇ2, ÒòΪ3 = 2 + 1, 4 = 1 + 3¡£ ÊäÈë µÚÒ»ÐÐÊÇÒ»¸öÕûÊýT£¬±íʾһ¹²ÓжàÉÙ×éÊý¾Ý¡£ 1<= T <= 100
½ÓÏÂÀ´µÄÿ×éÊý¾Ý¹²Á½ÐУ¬µÚÒ»ÐÐÊÇÊýÁÐÖÐÊýµÄ¸öÊýn ( 1 <= n <= 100)£¬µÚ¶þÐÐÊÇÓÉn¸öÕûÊý×é³ ......
¹æÔò»ò½¨Ò顣ÿÌõ×¼Ôò¶¼ÓÐÀýÍâ
1£¬¼ÙÏëµÄ±àÒë³ÌÐò
ʹÓñàÒë³ÌÐòËùÓеĿÉÑ¡¾¯¸æÉèÊ©
ʹÓÃlintÀ´²é³ö±àÒë³ÌÐò©µôµÄ´íÎó
Èç¹ûÓе¥Ôª²âÊÔ£¬¾Í½øÐе¥Ôª²âÊÔ
2£¬×Ô¼ºÉè¼Æ²¢Ê¹ÓöÏÑÔ
¼ÈҪά»¤³ÌÐòµÄ½»¸¶°æ±¾£¬ÓÖҪά»¤³ÌÐòµÄµ÷ÊÔ°æ±¾
ҪʹÓöÏÑÔ¶Ôº¯Êý²ÎÊý½øÐÐÈ·ÈÏ
Òª´Ó³ÌÐòÖÐɾȥÎÞ¶¨ÒåµÄÌØÐÔ£¬»òÕßÔÚ³ÌÐòÖÐʹÓöÏÑÔÀ´¼ ......
ÒªÈà 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ÏÂÔØÆäËü° ......
/*
* 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; ......
Technorati ±êÇ©: C++ ÔÎĵØÖ·£ºhttp://www.byvoid.com/blog/c-int64/ ÔÚC/C++ÖУ¬64ΪÕûÐÍÒ»Ö±ÊÇÒ»ÖÖûÓÐÈ·¶¨¹æ·¶µÄÊý¾ÝÀàÐÍ¡£ÏÖ½ñÖ÷Á÷µÄ±àÒëÆ÷ÖУ¬¶Ô64ΪÕûÐ͵ÄÖ§³ÖÒ²ÊDZê×¼²»Ò»£¬ÐÎ̬¸÷Òì¡£Ò»°ãÀ´Ëµ£¬64λÕûÐ͵Ķ¨Ò巽ʽÓÐlong longºÍ__int64Á½ÖÖ(VC»¹Ö§³Ö_int64)£¬¶øÊä³öµ½±ê×¼Êä³ö·½Ê½ÓÐprintf(¡°%lld¡±,a)£¬printf ......