代码搜索:VC代码

找到约 10,000 项符合「VC代码」的源代码

代码结果 10,000
www.eeworm.com/read/153991/6293450

cpp vc0511.cpp

// Example 5-11:比较两个字符串 #include int mystrcmp(char s1[],char s2[]) { int i = 0; while(s1[i]==s2[i] && s1[i]!=0 && s2[i]!=0) i++; return s1[i]-s2[i]; } void main() { char
www.eeworm.com/read/153991/6293451

cpp vc0509.cpp

// Example 5-9:静态变量的使用 #include int func() { static int count = 0; return ++count; } void main() { for(int i=0;i
www.eeworm.com/read/153991/6293452

cpp vc0510.cpp

// Example 5-10: 打印回文数 #include int Ispalindrome(int n); void main() { for(int i=1000;i
www.eeworm.com/read/153991/6293453

cpp vc0503.cpp

// Example 5-3:求两数中的大数 #include int max(int x,int y); void main() { cout > a >> b; cout
www.eeworm.com/read/153991/6293739

cpp vc0608.cpp

// Example 6.8:利用数组计算阶乘 #include #define MAXSIZE 100 int lfac(int *a, int n) { int sum,sc; for(int i=0;i
www.eeworm.com/read/153991/6293740

cpp vc0601.cpp

// Example 6-1:函数 swap(): 交换两个整形变量的值 #include void swap(int *xp,int *yp) { int tmp; tmp = *xp; *xp = *yp; *yp = tmp; } // 试验函数swap()用的主函数 void main() { int x = 2, y = 3;
www.eeworm.com/read/153991/6293741

cpp vc0604.cpp

// Example 6-4:用动态数组来求斐波那挈数列的前n项 #include void main() { int *p, n; coutn; p=new int[n+1]; if ( p==0 || n
www.eeworm.com/read/153991/6293742

cpp vc0607.cpp

#include #include #include int mystrnicmp(char *str1,char *str2,int n) { while(toupper(*str1)==toupper(*str2)&&*str1!=0&&*str2!=0&&n>0) { str1++; str2++
www.eeworm.com/read/153991/6293743

cpp vc0605.cpp

// Example 6-5:将月份数值转换为相应的英文名称 #include char *month_name(int n) { static char *month[]= { "Illegal month", // 月份值错 "January", // 一月 "February", // 二月 "March",
www.eeworm.com/read/153991/6293744

cpp vc0609.cpp

// Example 6-9:不区分大小写字母的部分字符串比较 #include #include int mystrnicmp(char *str1, char *str2, int n) { while(toupper(*str1)==toupper(*str2) && *str1!=0 && *str2!=0 && n>0) {