代码搜索:array
找到约 10,000 项符合「array」的源代码
代码结果 10,000
www.eeworm.com/read/210880/15190294
h array.h
// ============================================================================
// Data Structures For Game Programmers
// Ron Penton
// Array.h
// This is the basic 1D array class.
// ==========
www.eeworm.com/read/210877/15190435
h array.h
// ============================================================================
// Data Structures For Game Programmers
// Ron Penton
// Array.h
// This is the basic 1D array class.
// ==========
www.eeworm.com/read/210876/15190531
h array.h
// ============================================================================
// Data Structures For Game Programmers
// Ron Penton
// Array.h
// This is the basic 1D array class.
// ==========
www.eeworm.com/read/209853/15212490
cpp array.cpp
//: C16:Array.cpp
// From Thinking in C++, 2nd Edition
// Available at http://www.BruceEckel.com
// (c) Bruce Eckel 2000
// Copyright notice in Copyright.txt
#include "../require.h"
#include
www.eeworm.com/read/209274/15224141
h array.h
template
class Array
{
private:
int FSize; // 数组的大小
T* alist; // 指向数组的第一个元素的指针
void Allocate(); //为数组申请内存空间
public:
Array(int sz=50); //构造函数
Array(const Array &x); /
www.eeworm.com/read/209274/15224151
cpp array.cpp
#include "stdafx.h"
using namespace std;
template
void Array::Allocate()
{
alist=new T[FSize];
if (alist==0)
cerr
www.eeworm.com/read/208576/15243754
h array.h
// Fig. 11.6: Array.h
// Array class for storing arrays of integers.
#ifndef ARRAY_H
#define ARRAY_H
#include
using std::ostream;
using std::istream;
class Array
{
friend os
www.eeworm.com/read/208576/15243755
cpp array.cpp
// Fig 11.7: Array.cpp
// Member-function definitions for class Array
#include
using std::cout;
using std::cin;
using std::endl;
#include
using std::setw;
#include
www.eeworm.com/read/208576/15243765
h array.h
// Fig. 11.17: Array.h
// Array class for storing arrays of integers.
#ifndef ARRAY_H
#define ARRAY_H
#include
using std::ostream;
using std::istream;
class Array
{
friend o
www.eeworm.com/read/208576/15243766
cpp array.cpp
// Fig 11.7: Array.cpp
// Member-function definitions for class Array
#include
using std::cout;
using std::cin;
using std::endl;
#include
using std::setw;
#include