代码搜索:VC制作

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

代码结果 10,000
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
www.eeworm.com/read/345926/11781963

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

cpp vc0605.cpp

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

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) {
www.eeworm.com/read/345926/11781971

cpp vc0602.cpp

// Example 6.2: 编写一个字符串复制函数 #include void mystrcpy(char *destin,char *source) { while(*source!=0) { *destin=*source; source++; destin++; } *destin=0; } void main()
www.eeworm.com/read/345926/11781974

cpp vc0606.cpp

//Example 6.6: 用梯形积分法求解定积分的通用积分函数 #include #include double integral(double a,double b,double (*fun)(double),int n) { double h=(b-a)/n; double sum=(fun(a)+fun(b))/2; int
www.eeworm.com/read/345926/11781977

cpp vc0603.cpp

// Example 6-3:数组清零 #include void clear_array(float *ptr,int len) { float *qtr=ptr+len; while(ptr
www.eeworm.com/read/345926/11781979

cpp vc0801.cpp

//Example 8.1: 人员类(Person)及其子类雇员类(Employee)的定义及使用 #include #include class Person //人员类定义 { protected: char m_strName[10]; //姓名 int m_nAge; //年龄 int m_n