代码搜索:Chapter
找到约 10,000 项符合「Chapter」的源代码
代码结果 10,000
www.eeworm.com/read/128466/14296288
cpp chapter3-14.cpp
//SORTED_CPP_
//文件名:CHAPTER2-19.cpp
#include "CHAPTER3-14.h"
//#include "Urand.h"
#include
#include
using namespace std;
char* words[] = {"is", "running", "big", "dog",
www.eeworm.com/read/128466/14296289
cpp chapter3-1.cpp
//文件名:CHAPTER3-1.cpp
template class X { typename T::id i; public: void f() { i.g(); } };
class Y { public: class id { public: void g() {} }; };
//主程序:
int main() { Y y; X xy; xy.f()
www.eeworm.com/read/128466/14296291
cpp chapter3-3.cpp
//文件名:CHAPTER3-3.cpp
#include
#include
template void print(const T& var){ std::cout
www.eeworm.com/read/128466/14296293
cpp chapter3-12.cpp
//文件名:CHAPTER3-12.cpp
#include
#include
class Student
{ int number;
static Student *ip;
Student *p;
public:
Student(){p=NULL;}
Student(int n);
static
www.eeworm.com/read/128466/14296294
cpp chapter3-10.cpp
//文件名:CHAPTER3-10.cpp
#include
template
class Array
{ T *ar;
public:
Array(int c){ar=new T[c];}
void init(int n,T x){ar[n]=x; }
T& operator[](int n){return ar[n];}
www.eeworm.com/read/128466/14296297
cpp chapter3-2.cpp
//文件名:CHAPTER3-2.cpp
#include
#include
void printstring(const std::string& str) { std::cout
www.eeworm.com/read/128466/14296300
cpp chapter3-9.cpp
//: 下面是主程序,主要用于测试上面的代码是否可用:P5_9.cpp
#include "CHAPTER3-9.h"
#include
//using namespace std;
int main()
{
int* p = 0;
getmem(p, 10);
for(int i = 0;i < 10;i++)
{
cout
www.eeworm.com/read/128466/14296302
cpp chapter3-13.cpp
//文件名:CHAPTER3-13.cpp
template
class wrapper
{public:
wrapper() throw() : value_(NULL)
{ try { value_ = new T;}
catch (...) { }
}
~wrapper() throw()
{ try { delete va
www.eeworm.com/read/128466/14296304
cpp chapter3-7.cpp
//文件名:CHAPTER3-7.cpp
#include
#include
// 定义函数模板,找出三个值中最小的值,与数据类型无关
template
T min(T ii, T jj, T kk)
{
T temp;
if((ii
www.eeworm.com/read/128466/14296307
cpp chapter3-16.cpp
//文件名:CHAPTER3-16.cpp
// Template class for storing list elements
#include
#include
using namespace std;
template // Use template keyword
c