Click here to Skip to main content
15,921,841 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralVirtual List Controls Pin
Jeremy Pullicino28-Sep-03 23:48
Jeremy Pullicino28-Sep-03 23:48 
GeneralRe: Virtual List Controls Pin
KarstenK29-Sep-03 0:32
mveKarstenK29-Sep-03 0:32 
GeneralMFC Pin
Member 21732628-Sep-03 23:31
Member 21732628-Sep-03 23:31 
GeneralRe: MFC Pin
Michael Dunn29-Sep-03 0:55
sitebuilderMichael Dunn29-Sep-03 0:55 
GeneralRe: MFC Pin
Member 21732629-Sep-03 15:49
Member 21732629-Sep-03 15:49 
Generalwho can tell me how to save the DC... Pin
Grrrr28-Sep-03 22:58
Grrrr28-Sep-03 22:58 
GeneralRe: who can tell me how to save the DC... Pin
KarstenK29-Sep-03 0:30
mveKarstenK29-Sep-03 0:30 
GeneralRe: who can tell me how to save the DC... Pin
Grrrr29-Sep-03 2:06
Grrrr29-Sep-03 2:06 
GeneralRe: who can tell me how to save the DC... Pin
KarstenK29-Sep-03 2:32
mveKarstenK29-Sep-03 2:32 
GeneralRe: who can tell me how to save the DC... Pin
Grrrr29-Sep-03 14:01
Grrrr29-Sep-03 14:01 
GeneralAbout a time event Pin
FlyingDancer28-Sep-03 22:13
FlyingDancer28-Sep-03 22:13 
GeneralRe: About a time event Pin
jhwurmbach28-Sep-03 22:26
jhwurmbach28-Sep-03 22:26 
GeneralRe: About a time event Pin
FlyingDancer28-Sep-03 22:37
FlyingDancer28-Sep-03 22:37 
GeneralRe: About a time event Pin
jhwurmbach28-Sep-03 22:43
jhwurmbach28-Sep-03 22:43 
GeneralRe: About a time event Pin
FlyingDancer28-Sep-03 23:04
FlyingDancer28-Sep-03 23:04 
GeneralRe: About a time event Pin
Fredrik Skog28-Sep-03 23:46
Fredrik Skog28-Sep-03 23:46 
GeneralRe: About a time event Pin
FlyingDancer29-Sep-03 0:33
FlyingDancer29-Sep-03 0:33 
Generaldirect draw and multimon problem Pin
gwenael28-Sep-03 22:07
gwenael28-Sep-03 22:07 
Generalgraphics query Pin
coda_x28-Sep-03 21:54
coda_x28-Sep-03 21:54 
QuestionAccelerator keys in modeless Dialog? Pin
Brian van der Beek28-Sep-03 21:53
Brian van der Beek28-Sep-03 21:53 
AnswerRe: Accelerator keys in modeless Dialog? Pin
Phil J Pearson29-Sep-03 2:50
Phil J Pearson29-Sep-03 2:50 
GeneralRe: Accelerator keys in modeless Dialog? Pin
Brian van der Beek29-Sep-03 2:59
Brian van der Beek29-Sep-03 2:59 
General"string" problem. Pin
WREY28-Sep-03 21:39
WREY28-Sep-03 21:39 
GeneralRe: "string" problem. Pin
ZoogieZork28-Sep-03 23:22
ZoogieZork28-Sep-03 23:22 
GeneralRe: "string" problem. Pin
Joaquín M López Muñoz28-Sep-03 23:25
Joaquín M López Muñoz28-Sep-03 23:25 
Try the following
#include <iostream>
#include <string>
#include <sstream>
#include <vector>
 
using namespace std;
 
int main()
{
  string line;
  getline(cin,line);
  istringstream istrstr(line);
  vector<string> vStr;
  for(;;)
  {
    string str;
    if(!(istrstr>>str))break;
    vStr.push_back(str);
    cout<<"\n "<<str;
    cout<<"\n Size: " <<vStr.size();
  }
 
  return 0;
}


Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo

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.