#include <string.h>
using namespace std;
namespace charcount
{
int ShowPerCent();
int PerCent();
int Values(char letter);
int analize(string var);
}
此代碼是我的項目的「functions.h」的所有部分。這說:字符串未被聲明?
functions.h: 7:13: error: 'string' was not declared in this scope
而我不明白爲什麼說這個。我試着用std::string
和nope。有人知道會發生什麼?如果你需要更多的附加信息問。
一般來說,我們並不真正喜歡這裏的咒罵。 – 2013-04-08 15:34:56