Click here to Skip to main content
15,913,307 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: CListCtrl as STL container Pin
Neville Franks12-Apr-03 12:13
Neville Franks12-Apr-03 12:13 
GeneralCustom property pages for device manager using WTL Pin
NarayanaRajaniX3-Apr-03 17:31
NarayanaRajaniX3-Apr-03 17:31 
QuestionHow to create Transparent Bitmap? Pin
jkav3-Apr-03 16:43
jkav3-Apr-03 16:43 
AnswerRe: How to create Transparent Bitmap? Pin
Ed Gadziemski7-Apr-03 4:56
professionalEd Gadziemski7-Apr-03 4:56 
Generalusing cin.getline() with string Pin
Luis E. Cuadrado3-Apr-03 2:47
Luis E. Cuadrado3-Apr-03 2:47 
GeneralRe: using cin.getline() with string Pin
valikac3-Apr-03 13:31
valikac3-Apr-03 13:31 
GeneralRe: using cin.getline() with string Pin
Luis E. Cuadrado4-Apr-03 1:55
Luis E. Cuadrado4-Apr-03 1:55 
GeneralRe: using cin.getline() with string Pin
Joaquín M López Muñoz4-Apr-03 2:33
Joaquín M López Muñoz4-Apr-03 2:33 
Hola Luis,

There are two problems, one of them is not your fault:
  • std::getline is broken in MSVC++ 6.0. See here[^] for a fix.
  • (this assumes you've installed the previous fix) After reading the int, there are extra characters pending to be read in the first line (at least, the terminating '\n'): eat this before going for the description:
    #include <iostream>
    #include <string>
     
    using namespace std;
    void main()
    {
      string itemID;
      string Desc;
      cout << "Enter ID: ";
      cin>>itemID;
      cout << "Enter Description: ";
      getline(cin, Desc); // eats what remains of the previous line
      getline(cin, Desc);
      cout << "itemID: " << itemID << endl;
      cout << "Desc: " << Desc << endl;
    } 


Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: using cin.getline() with string Pin
Luis E. Cuadrado4-Apr-03 5:34
Luis E. Cuadrado4-Apr-03 5:34 
GeneralSTL Fix Pin
Derek Lakin30-Mar-03 21:51
Derek Lakin30-Mar-03 21:51 
GeneralRe: STL Fix Pin
jhwurmbach30-Mar-03 22:28
jhwurmbach30-Mar-03 22:28 
GeneralRe: STL Fix Pin
Derek Lakin30-Mar-03 23:52
Derek Lakin30-Mar-03 23:52 
GeneralRe: STL Fix Pin
Derek Lakin31-Mar-03 2:03
Derek Lakin31-Mar-03 2:03 
GeneralRe: STL Fix Pin
jhwurmbach31-Mar-03 2:11
jhwurmbach31-Mar-03 2:11 
GeneralRe: STL Fix Pin
Derek Lakin31-Mar-03 20:49
Derek Lakin31-Mar-03 20:49 
GeneralRe: STL Fix Pin
Chris Losinger4-Apr-03 3:59
professionalChris Losinger4-Apr-03 3:59 
GeneralRe: STL Fix Pin
John M. Drescher4-Apr-03 4:19
John M. Drescher4-Apr-03 4:19 
General2 Tbbuttons Pin
DuFF30-Mar-03 16:22
DuFF30-Mar-03 16:22 
GeneralAssignment operator with ofstream Pin
Anonymous28-Mar-03 5:26
Anonymous28-Mar-03 5:26 
GeneralRe: Assignment operator with ofstream Pin
Ralph Wetzel28-Mar-03 5:54
Ralph Wetzel28-Mar-03 5:54 
GeneralRe: Assignment operator with ofstream Pin
Joaquín M López Muñoz28-Mar-03 5:54
Joaquín M López Muñoz28-Mar-03 5:54 
GeneralATL events in a container Pin
Shah Shehpori28-Mar-03 4:56
sussShah Shehpori28-Mar-03 4:56 
Generalvector reallocation giving problem (repost) Pin
Anonymous27-Mar-03 13:01
Anonymous27-Mar-03 13:01 
GeneralRe: vector reallocation giving problem (repost) Pin
Taka Muraoka27-Mar-03 13:23
Taka Muraoka27-Mar-03 13:23 
GeneralRe: vector reallocation giving problem (repost) Pin
jhwurmbach30-Mar-03 22:34
jhwurmbach30-Mar-03 22:34 

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.