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;
    cout << "x and y swap after : " << x << "\t" << y << endl;
}
void swap2(int * x, int * y) {
    cout << "x and y swap before : " << *x << "\t" << *y << endl;
    int * i = x;
    x = y;
    y = i;
    cout << "x and y swap after : " << *x << "\t" << *y << endl;
}
/**
 * ×¢Òâ,´Ë´¦·Ç&xÓë&y²¢·ÇµØÖ·,¶øÊǶÔÏóµÄ±ðÃû!!!
 */
void swap3(int &x, int &y) {
    cout << "x and y swap before : " << x << "\t" << y << endl;
    int i = x;
    x = y;
    y = i;
    cout << "x and y swap after : " << x << "\t" << y << endl;
}
/**
 * °´Ö·´«µÝ,´«µÝµÄ²ÎÊýÊǵØÖ·.
 */
void swap4(int * x, int * y) {
    cout << "x and y swap before : " << *x << "\t" << *y << endl;
    int i = *x;
    *x = *y;
    *y = i;
    cout << "x and y swap after : " << *x << "\t" << *y << endl;
}
int main(int argc, char** argv) {
    int x = 1;
    int y = 9;
    cout << "main function swap before : " << x << "\t" << y << endl;
    swap(x, y);
    cout << "main function swap after : " << x << "\t" << y << endl;
    // ¿É½«,Ö÷º¯ÊýµÄxÓëy²¢Ã»Óн»»»,±íʾswapº¯Êý½»»»µÄ½ö½öÊÇxÓëyµÄ¸±±¾
    cout << "---------" << endl;
    int * px = new int(1);
    int * py = new int(9);
    cout << "main function swap before : " << *px << "\t" << *py << endl;
    swap2(px, py);
    cout << "main function swap after : " << *px << "\t" << *py << en
    
     
	
	
    
    
	Ïà¹ØÎĵµ£º
        
    
    /*
**ÅжÏC?ÐÐ??¾³µÄ³ÌÐò
*/
/*
**¾²?³õʼ»¯
*/
int static_variable=5;
void
f()
{
 register int i1, i2, i3, i4, i5, i6, i7, i8, i9, i10;
 register char *c1, *c2, *c3, *c4, *c5, *c6, *c7 , *c8, *c9, *c10;
 extern int a_very_long_name_to_sec_how_long_they_can_be;
 double  ......
	
    
        
    
    ½â¾ö²½Ö裺 
gylu@dell-desktop:~$ sudo apt-get install ckermit
ÏÔʾ°²×°¹ý³Ì
gylu@dell-desktop:~$gedit ~/.kermrc
ÊäÈëÏÂÃæÄÚÈݺ󱣴æ.kermrcÍ˳ö:
   set line            /dev/ttyS0
    set speed    & ......
	
    
        
    
    http://uncrustify.sourceforge.net/
Ident code, aligning on parens, assignments, etc
Align on '=' and variable definitions
Align structure initializers
Align #define stuff
Align backslash-newline stuff
Reformat comments (a little bit)
Fix inter-character spacing
Add or remove parens on return ......
	
    
        
    
    
ÒªÈà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ÏÂÔØÆäËü° ......
	
    
        
    
    CAPTION: ¹ØÓÚC/C++ÖÐÄÚ´æ¿Õ¼äµÄ»®·Ö
AUTHOR: aIsland Õª×ÔÖйúITʵÑéÊÒ
DATE: 2010-05-30
E-MAIL: aIsland@live.cn
QQ: 418662213
P.S.
     1.Bolanlan|ËæÐÄhigh|aIsland Èý¸öÍøÃû¾ùΪ±¾ÈË
     2.ÉùÃ÷aIsland ËùÊÕ¼µÄËùÓÐÎÄÕÂÆäÖø×÷Ȩ¶¼ÊôÓÚÔ´´×÷Õß
   ......