辞書を作りました。私の目標は、ユーザーに新しい単語を入力して定義してもらうことです。
「言葉の定義」の部分が下にあり、残りが下にあると思います。私が探しているものの例を以下に書きました。誰かにやってもらいたくありません。これを行う方法があるかどうか、またどこで詳細を学べるかを知りたいだけです。
現在、私はダミー用に C++ を使用しており、教師用には Sam の Teach Yourself を使用しています。
string newword
string word
cout << "Please enter a word" >> endl;
cin >> word;
if (word == newword)
{
create string <newword>; // Which would make the following
// source code appear without
// actually typing anything new
// into the source code.
}
string newword
string word
string word2 // which would make this happen
cout << "Please enter a word" >> endl;
cin >> word;
if (word == newword)
{
create string <newword>
}