代码搜索:VC开发环境
找到约 10,000 项符合「VC开发环境」的源代码
代码结果 10,000
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)
{
www.eeworm.com/read/153991/6293745
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/153991/6293746
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/153991/6293747
cpp vc0603.cpp
// Example 6-3:数组清零
#include
void clear_array(float *ptr,int len)
{
float *qtr=ptr+len;
while(ptr
www.eeworm.com/read/153991/6293785
cpp vc0801.cpp
//Example 8.1: 人员类(Person)及其子类雇员类(Employee)的定义及使用
#include
#include
class Person //人员类定义
{
protected:
char m_strName[10]; //姓名
int m_nAge; //年龄
int m_n
www.eeworm.com/read/153991/6293786
cpp vc0805.cpp
// Example 8-5 :教师和学生类
#include
#include
class Person
{
protected:
char m_strName[10];
int m_nSex;
int m_nAge;
public:
void Register(char *name,int age,char sex)
www.eeworm.com/read/153991/6293787
cpp vc0804.cpp
//Example 8.4: 定义一个通用的栈类
#include
#include
template
class AnyStack
{
T m_tStack[n];
int m_nMaxElement;
int m_nTop;
public:
AnyStack() : m_nMa