ぼるじょあがC/C++の宿題を片づけますYO! 67代目
■ このスレッドは過去ログ倉庫に格納されています
0721デフォルトの名無しさん
2007/04/25(水) 20:44:48> hoge.cppとhoge.hをさらせよ
はい
まずhoge.h
#ifndef HOGE_H
class Hoge
{
public:
int func_hoge();
};
#endif
続いてhoge.cpp
#include <stdio.h>
その他インクルード
#include <hoge.h>
int func_hoge()
{
int modori;
なんかの処理
return modori;
}
って感じです
■ このスレッドは過去ログ倉庫に格納されています