Click here to Skip to main content
15,918,049 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ question Pin
David Crow12-Sep-05 4:20
David Crow12-Sep-05 4:20 
GeneralRe: C++ question Pin
Anonymous12-Sep-05 5:37
Anonymous12-Sep-05 5:37 
GeneralRe: C++ question Pin
Sveta8012-Sep-05 5:41
Sveta8012-Sep-05 5:41 
GeneralRe: C++ question Pin
David Crow12-Sep-05 6:20
David Crow12-Sep-05 6:20 
QuestionRedrawing problems Pin
dudeua11-Sep-05 6:19
dudeua11-Sep-05 6:19 
AnswerRe: Redrawing problems Pin
PJ Arends11-Sep-05 10:12
professionalPJ Arends11-Sep-05 10:12 
GeneralRe: Redrawing problems Pin
dudeua11-Sep-05 10:44
dudeua11-Sep-05 10:44 
Questionproblem with fstream Pin
Member 224774911-Sep-05 3:24
Member 224774911-Sep-05 3:24 
Dear friends,
I'd a problem. Please see the code below.
int main()
{
ifstream infile("exclusion_set");
istream_iterator<string> input(infile),eos;
vector<string> vec;
copy(input,eos,inserter(vec,vec.begin()));
sort(vec.begin(),vec.end(),greater<string>());
ostream_iterator<string> output(cout,"\n");
unique_copy(vec.begin(),vec.end(),output);
return 0;

}

if "exclusion_set" file cotents are like this:

the and but that then are been
can can't cannot could did for
had have him his her its into
were which when with would

the output will be each word like
the
and
etc.......

But if i want to read each line in the specified vector instead of each word. How shall i do.Which parameter that i should set so that each line is read in vector element.Please help.

Thanking you,
yours sincerely,
bhadram

bhadram
QuestionHow to set the BackGround color of a window? Pin
eli1502197911-Sep-05 1:09
eli1502197911-Sep-05 1:09 
AnswerRe: How to set the BackGround color of a window? Pin
ThiefXXX11-Sep-05 11:16
ThiefXXX11-Sep-05 11:16 
AnswerRe: How to set the BackGround color of a window? Pin
Mircea Puiu12-Sep-05 4:40
Mircea Puiu12-Sep-05 4:40 
Questiontextbox Pin
lallaba10-Sep-05 23:26
lallaba10-Sep-05 23:26 
AnswerRe: textbox Pin
Mohammed F. Salem11-Sep-05 7:42
Mohammed F. Salem11-Sep-05 7:42 
QuestionColor map Pin
Ta Xuan Hung10-Sep-05 22:55
Ta Xuan Hung10-Sep-05 22:55 
AnswerRe: Color map Pin
Branislav12-Sep-05 0:54
Branislav12-Sep-05 0:54 
QuestionPutting a Large Icon in an MFC dialog box Pin
nde_plume10-Sep-05 21:27
nde_plume10-Sep-05 21:27 
QuestionXmlDocument: Retrieving validation file Pin
picazo10-Sep-05 14:57
picazo10-Sep-05 14:57 
AnswerResolved Pin
Anonymous10-Sep-05 16:19
Anonymous10-Sep-05 16:19 
Questiona help-bar Pin
Ali Tavakol10-Sep-05 12:08
Ali Tavakol10-Sep-05 12:08 
AnswerRe: a help-bar Pin
Ravi Bhavnani10-Sep-05 16:29
professionalRavi Bhavnani10-Sep-05 16:29 
QuestionOnButton1 Pin
Richard_4810-Sep-05 9:49
Richard_4810-Sep-05 9:49 
AnswerRe: OnButton1 Pin
ThiefXXX10-Sep-05 11:53
ThiefXXX10-Sep-05 11:53 
AnswerRe: OnButton1 Pin
David Crow10-Sep-05 17:11
David Crow10-Sep-05 17:11 
QuestionActivating Single instance Pin
laiju9-Sep-05 23:50
laiju9-Sep-05 23:50 
AnswerRe: Activating Single instance Pin
shiraztk10-Sep-05 0:03
shiraztk10-Sep-05 0:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.