Skip to content

Instantly share code, notes, and snippets.

@MasazI
Created May 20, 2015 10:56
Show Gist options
  • Save MasazI/db14fec2a7a935674b13 to your computer and use it in GitHub Desktop.
Save MasazI/db14fec2a7a935674b13 to your computer and use it in GitHub Desktop.
ArrayStream.hpp (子 - 配列操作)
//
// ArrayStream.h
// CplusplusPractice
//
// Created by masai on 2015/05/20.
// Copyright (c) 2015年 masai. All rights reserved.
//
#ifndef __CplusplusPractice__ArrayStream__
#define __CplusplusPractice__ArrayStream__
#include "Stream.hpp"
class ArrayStream : public Stream{
public:
ArrayStream(const double* array); //コンストラクタ
protected:
virtual void SetBase();
private:
const double* m_array; //配列
int m_i; //現在のインデックス
};
#endif /* defined(__CplusplusPractice__ArrayStream__) */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment