hippiewhというヘッダーファイルを作成しようとしています。しかし、私はいくつかの問題に遭遇しています。
ヘッダーファイルのコードは次のとおりです。
#include <iostream>
#include <string>
using namespace std;
#ifndef hippiewh_h
#define hippiewh_h
int askInt(string prompt)
{
int var_int;
cout << prompt;
cin >> var_int;
return var_int;
}
#endif
すべてのデータ型にそのような関数があります。文字列、フロートなど。
このヘッダーファイルをCompilr.comのオンラインIDEおよびコンパイラで動作させることができません
私が得ているエラーは次のとおりです。
hippiewh.h: No such file or directory