代码搜索:vC
找到约 10,000 项符合「vC」的源代码
代码结果 10,000
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
www.eeworm.com/read/345926/11781983
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/345926/11781986
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
www.eeworm.com/read/345926/11781989
cpp vc0806.cpp
//Example 8.6: 定义一个棋子类
#include
#include
// 棋子类
class Stone
{
protected:
int m_nColor; // 颜色
int m_nCol; // 路
int m_nRow; // 行
bool m_bShow; // 是否显