代码搜索:vC

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

代码结果 10,000
www.eeworm.com/read/345926/11781932

cpp vc0504.cpp

// Example 5-4:交换两个变量的值 (不成功) #include void swap(int x,int y) { int t; t = x; x = y; y = t; } // 测试函数 swap() 用的主函数 void main() { int a = 1,b = 2; cout
www.eeworm.com/read/345926/11781935

cpp vc0507.cpp

// Example 5-7:求两数中的大数 #include inline int max(int x,int y) { return x>y?x:y; } void main() { cout > a >> b; cout
www.eeworm.com/read/345926/11781938

cpp vc0501.cpp

// Example 5-1:函数 fac()计算阶乘n! int fac(int n) { int result = 1; if(n1) { result *= n; n--; } return result; } // Example
www.eeworm.com/read/345926/11781941

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/345926/11781944

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/345926/11781947

cpp vc0510.cpp

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

cpp vc0503.cpp

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

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/345926/11781956

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/345926/11781959

cpp vc0604.cpp

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