锘??xml version="1.0" encoding="utf-8" standalone="yes"?> 璇村埌Visual C++鐨勬彃浠訛紝澶у鍙兘鍙湁鎯沖埌Visual Assist鍚с傚ぉ鐪燂紒琛屽唴寮鍙戠殑鎻掍歡鍙彧鏈夎繖涓紒錛熶笅闈粙緇嶄竴涓媣c6.0鐨勫叾浠栨彃浠躲?/p>
Visual Assist錛堝己鐑堟帹鑽愶級 LineCounter Spelly SourceStyler C++ Numega BoundsChecker錛堝己鐑堟帹鑽愶級 BCGControlBar Library Comment Wizard String watch Microsoft Visual Studio add-in

/**//************************************************************************/
/**//* 浣跨敤緇撴瀯浣撲綔涓鴻繑鍥炲?nbsp; */
/**//************************************************************************/
#include "iostream.h"
struct student

{
int id;
char name[20];
int age;
char department[20];
float gpa;
};
student init(); //鍒濆鍖栵紝榪斿洖涓涓猻tudent鐨勭粨鏋?/span>
void display(student arg); //鏄劇ず緇撴瀯浣?/span>
int main()

{
display(init()); //init()榪斿洖鐨勬槸涓涓猻tudent緇撴瀯浣?/span>
return 0;
}
void display(student arg)

{
cout<<"瀛﹀彿錛?/span>"<<arg.id<<" 濮撳悕錛?/span>"<<arg.name<<" 騫撮緞"<<arg.age<<" 涓撲笟錛?/span>"<<arg.department<<" 鎴愮嘩錛?/span>"<<arg.gpa<<endl;
}
student init()

{
student s1 =
{3221,"Tom",18,"Computer",86.33}; //鍒濆鍖栦竴涓猻tudent鐨勭粨鏋勪綋
return s1; //榪斿洖涓涓猻tudent鐨勭粨鏋勪綋s1
}
]]>
/**//************************************************************************/
/**//* 鏁扮粍鐩存帴閫夋嫨鎺掑簭鐨勭畝鍗曞疄鐜幫紝娌℃湁杈撳叆杈撳嚭妯″潡 */
/**//************************************************************************/
#include "iostream.h"
void sort(int a[],int size);
int main()

{
int num[]=
{21,12,45,34,67,30,21,3,56,98,99};
sort(num,sizeof(num)/sizeof(int));
return 0;
}
void sort(int a[],int size)

{
for (int i=0;i<size;i++)
{
int min=a[i],min_i=i; //鍋囪棣栧厓绱犳槸鏈灝忕殑錛宮in_i琛ㄧず鏄渶灝忔暟瀛梚鍧愭爣
for (int j= i;j<size;j++)
{
if (a[j]<min)
{
min=a[j];
min_i = j;
}
}
int temp = a[i]; //a[min_i]涓烘壘鍒扮殑鍊兼渶灝忕殑鍏冪礌錛岃鎶婃渶灝忕殑鍏冪礌鏀懼湪a[i]涓?/span>
a[i] = a[min_i];
a[min_i]= temp;
}
}
]]>
/**//************************************************************************/
/**//* 綆鍗曠殑姹傛暟緇勪腑鏈澶у肩殑鍑芥暟璋冪敤鏂規硶 */
/**//************************************************************************/
#include "iostream.h"
int max(int a[],int size);
int main()

{
int num[]=
{12,34,32,45,65,99,33,56,58,97};
cout<<max(num,sizeof(num)/sizeof(int))<<endl;
return 0;
}
int max(int a[],int size)

{
int max = 0;
for (int i=0;i<size;i++)
{
if(max<a[i])
max=a[i];
}
return max;
}
]]>
緗戝潃錛?a >http://www.wholetomato.com/
鍔熻兘錛歏A浠?.0涓鐩村埌鐜板湪鐨刅AX錛屽姛鑳借秺鏉ヨ秺寮哄ぇ錛岄櫎浜嗕互鍓嶇増鏈腑鐨勮嚜鍔ㄨ瘑鍒悇縐嶅叧閿瓧錛岀郴緇熷嚱鏁幫紝鎴愬憳鍙橀噺錛岃嚜鍔ㄧ粰鍑鴻緭鍏ユ彁紺猴紝鑷姩鏇存澶у皬鍐欓敊璇紝鑷姩鏍囩ず閿欒絳夌瓑浠ュ錛屾渶鏂扮殑鐗堟湰涓繕鍦╓orkSpace紿楀彛涓姞鍏ヤ竴涓猇A View錛屽彲浠ユ洿鏂逛究鐨勬煡鎵懼伐紼嬩腑鐨勬枃浠躲佺被鍜屽彉閲忋?/p>
WndTabs錛堝己鐑堟帹鑽愶級
緗戝潃錛?a >http://www.wndtabs.com/
鍔熻兘錛歐ndTabs涓昏鏄湪緙栬緫紿楀彛涓樉紺轟簡鎵鏈夊凡緇忔墦寮鐨勬枃浠訛紝鍦╒C涓兘澶熸洿鏂逛究鐨勬搷浣滆繖浜涙枃浠訛紝姣斿淇敼鏂囦歡灞炴э紝copy鏂囦歡璺緞銆佹枃浠跺悕絳夛紝騫朵笖榪樺紑鏀炬簮浠g爜錛屼綘瑕佹槸鎰挎剰鐨勮瘽錛屽彲浠ユ坊鍔犺嚜宸卞緢鍏磋叮鐨勫姛鑳姐?/p>
緗戝潃錛?http://www.wndtabs.com/
鍔熻兘錛氱敤鏉ョ粺璁℃暣涓伐紼嬬殑浠g爜琛屾暟錛屽寘鎷昏鏁般佷唬鐮佽鏁般佹敞閲婅鏁般佺┖琛屾暟絳夛紝騫朵笖瀵瑰涓伐紼嬩竴璧風粺璁℃椂錛屼笉浼氭妸鐩稿悓鐨勬枃浠惰綆楀嬈?
緗戝潃錛?a >http://www.wndtabs.com/
鍔熻兘錛氫竴涓嫾鍐欐鏌ョ殑鎻掍歡錛屽彲浠ュ鏁翠釜鏂囦歡鎴栨墍閫夐儴鍒嗚繘琛屾嫾鍐欐鏌ワ紝鏀寔C/C++/C#, VB, Fortran 鍜孒TML銆?/p>
緗戝潃錛?a >http://www.sourcestyler.com/
鍔熻兘錛氭鎻掍歡鏄拡瀵笴++鐨勪竴涓牸寮忓寲宸ュ叿錛屽彲浠ラ拡瀵硅嚜宸辯殑緙栫爜涔犳儻錛岄夋嫨涓縐嶇紪鐮侀鏍鹼紝涔熷彲浠ヨ嚜宸卞畾涔夛紝鑰屼笖瀹氫箟闈炲父璇︾粏錛屾湁琛ㄨ揪寮忋佹寚閽堛佹ā鏉褲佺被銆佹灇涓劇瓑鍗佸嚑縐嶏紝鑲畾鑳芥弧瓚充綘鐨勯渶瑕併?/p>
鍔熻兘錛氭槸閽堝Visual C++6.0搴旂敤紼嬪簭鐨勬渶涓哄叏闈㈢殑閿欒媯嫻嬪伐鍏楓侭oundsChecker 鑳借嚜鍔ㄦ寚鍑洪潤鎬侊紝鍫嗘爤鍐呭瓨閿欒鍜岃祫婧愭硠婕忛棶棰樸侭oundsChecker 鑳藉鏍¢獙鏈鏂扮殑 Windows APIs錛屽寘鎷?ActiveX, DirectX, OLE/COM, ODBC絳夌瓑銆傝兘澶熷彂鐜頒笌 Windows 騫沖彴鍏煎鎬с?/p>
鍔熻兘錛氶潪甯稿ソ鐨勪竴濂楀簲鐢ㄤ簬vc6鐨勭晫闈㈡墿灞曠被搴擄紝杞繪澗鐨勪綔鍑?vc2003 鐨勭晫闈€傚茍涓旂粰浜嗗悇縐嶇晫闈緥瀛愶紝濡倂c.net銆乷utlook銆佹洿鎹㈢毊鑲ょ瓑絳夈?/p>
緗戝潃錛?a href="http://m.shnenglu.com/fwxjj/">http://m.shnenglu.com/fwxjj/
鍔熻兘錛歏isual C++鎻掍歡錛屾彁渚涗簡Visual C++婧愪唬鐮佹敞瑙f爣鍑嗗寲涓庤嚜鍔ㄥ寲鍔熻兘銆傚湪瀹冪殑甯姪涓嬶紝鎮ㄥ彲蹇熷垱寤烘爣澶存枃浠朵俊鎭敞瑙o紝鏂囦歡涓ā鍧楁敞瑙o紝 C++澶勭悊鏂瑰紡錛屼互鍙婏跡璇█鍔熻兘涓庡巻鍙叉牎姝e姛鑳芥敞瑙o紝絳夌瓑銆?/p>
緗戝潃錛?a >http://www.codeguru.com/cpp/v-s/devstudio_macros/debugging/article.php/c5989
鍔熻兘錛氳皟璇曟椂鏌ョ湅瀛楃涓茬殑銆?br>
Tabbar鎻掍歡
緗戝潃錛?a >http://www.winmsg.com/cn/tabbar.htm
鍔熻兘錛氭樉紺哄tab鐨勬彃浠?br>
杞澆鑷細http://bbs.xgcollege.com/read.php?tid-1138.html
]]>

/**//************************************************************************/
/**//* 杈撳嚭甯哥敤鐨凙SCII鐮佽〃 */
/**//************************************************************************/
#include "iostream.h"
int main()

{
for (int i=32;i<=127;i++)
{
cout<<(char)i; //寮哄埗綾誨瀷杞崲
}
return 0;
}

#include "iostream.h"
#include "iomanip.h"//涓轟簡浣跨敤setw()
int main()

{
char temp;
for (int i=32;i<=127;i++)
{
temp = i;
cout<<setw(2)<<temp; //setw(n) 璁懼煙瀹戒負n涓瓧絎?/span>
if (i%16==15)
{
cout<<endl;
}
}
return 0;
}
0 1 2 3 4 5 6 7 8 9 : ; < = > ?
@ A B C D E F G H I J K L M N O
P Q R S T U V W X Y Z [ \ ] ^ _
` a b c d e f g h i j k l m n o
p q r s t u v w x y z { | } ~
Press any key to continue
]]>
#include "iostream.h"
/**//************************************************************************/
/**//* 浣跨敤閫掑綊鏈綆鍗曠殑紼嬪簭錛屽疄鐜癴(n)=2*f(n)+3 */
/**//************************************************************************/
int f(int i);
int main()

{
for (int i=1;i<=8;i++)
{
cout<<"f"<<"("<<i<<")"<<"="<<f(i)<<endl;
}
return 0;
}
int f(int i)

{
if (i ==1)
{
return 1;
}
else
{
return 2*f(i-1)+3;
}
}
]]>
#include "iostream.h"
int main()

{
int year;
cin>>year;
if (year%4 ==0 && year%100!=0 || year%400 ==0)
{
cout<<"鏄棸騫?leapyear)";
}
else
{
cout<<"涓嶆槸闂板勾";
}
return 0;
}
]]>
*******
******
*****
****
***
**
*
#include "iostream.h"
int main()

{
for (int i=7;i>0;i--)
{
int p=i;
while (p--)
{
cout<<"*";
}
cout<<"\n";
}
return 0;
}
杈撳嚭榪欐牱鐨勪笁瑙掑艦綾諱技
*
**
***
****
*****
#include "iostream.h"
int main()

{
for (int i=1;i<=5;i++)
{
int p=i;
while (p--)
{
cout<<"*";
}
cout<<"\n";
}
return 0;
}
*
**
***
****
*****
******
*******
********
*********
**********
#include "iostream.h"
int main()

{
int sum = 10;
for (int i=1;i<=sum;i++)
{
int p=(sum -i)/2;
while (p--)
{
cout<<" ";
}
p=i;
while (p--)
{
cout<<"*";
}
cout<<"\n";
}
return 0;
}
*
* *
* * *
* * * *
* * * * *
* * * * * *
* * * * * * *
* * * * * * * *
* * * * * * * * *
* * * * * * * * * *
#include "iostream.h"
int main()

{
int sum = 10;
for (int i=sum;i>=0;i--)
{
int p=i;
while (p--)
{
cout<<" ";
}
p=sum -i;
while (p--)
{
cout<<"* ";
}
cout<<"\n";
}
return 0;
}
]]>
#include <stdio.h>
#include "iostream"
#include <string.h>
int main()

{
char *src = "hello";
int len= strlen(src);
char *dest = (char *)malloc(len+1);
char *d= dest;
char *s = &src[len-1];
len = 1;
while (len--)
{
*d++=*s--;
}
*d = 0; //鍚﹀垯浼氫貢鐮?/span>
printf("%s\n",dest);
free(dest);
return 0;
}
閲囩敤鏁扮粍鐨勬柟娉?br>
#include <stdio.h>
#include "iostream"
#include <string.h>
int main()

{
char src[] = "hello";
int len = strlen(src);
char temp;
for (int i=0;i<len/2;i++)
{
temp = src[i];
src[i] = src[len-i-1];
src[len-i-1] = temp;
}
printf("%s\n",src);
return 0;
}

int main()
{
char* src = "hello,world";
int len = strlen(src);
char* dest = (char*)malloc(len+1);//瑕佷負\0鍒嗛厤涓涓┖闂?/span>
char* d = dest;
char* s = &src[len-1];//鎸囧悜鏈鍚庝竴涓瓧絎?/span>
while( len-- != 0 )
*d++=*s--;
*d = 0;//灝鵑儴瑕佸姞\0
printf("%s\n",dest);
free(dest);// 浣跨敤瀹岋紝搴斿綋閲婃斁絀洪棿錛屼互鍏嶉犳垚鍐呭瓨姹囨硠闇?/span>
return 0;
}
#include <stdio.h>
#include <string.h>
main()

{
char str[]="hello,world";
int len=strlen(str);
char t;
for(int i=0; i<len/2; i++)

{
t=str[i];
str[i]=str[len-i-1]; str[len-i-1]=t;
}
printf("%s",str);
return 0;
}
]]>