how to add my questions in c4droid

hi, i dont know any thing about c++, but i have a simple question
i found , how can i find a sentence of question by entering the first letter of each word in sentence ... for e.g how many books kumar sold today?
so i want to find it by hmbkst
and program is


#include <iostream>
#include <string>
#include <fstream>

using namespace std;

int main()
{
ifstream infile;

infile.open("message.txt");

string wordIn, wordOut, text;

wordOut.clear();

while( infile.good())
{
// getline(infile,wordIn);
infile >> wordIn;
// cout << wordIn << endl;
text = wordIn.substr(0,1);
wordOut += text;
// cout << text << endl;
// cout << wordOut << endl;
}

cout << wordOut << endl;

infile.close();
return 0;
}


but now i dont know how to add my questions in it , so i can find them as i told in beginning... any kind of help will be appreciated... please help
Last edited on
Topic archived. No new replies allowed.