ゲームが作れるようになるまでがんばる日記

ゲーム制作のことを中心にゲームに関することを書いています

2008-11-24から1日間の記事一覧

ファイル読み込み

C++

C++でファイルを読み込むにはifstreamを使えばよい。 ファイルを読み込む処理は次のような感じ。 #include <iostream> #include <fstream> using namespace std; char* openFile( const char* name, int* fileSize ) { ifstream inputFile( name, ifstream::binary ); if ( !inp</fstream></iostream>…