Thread: String and Vectors Problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Jun 2006
    Posts
    47
    I have to put "using namespace std;" at the top, or else it tells me that "cin" is undeclared.
    Windows XP Service Pack 2
    Borland C++ Compiler Version 5.5

  2. #2
    Registered User
    Join Date
    Dec 2006
    Location
    Scranton, Pa
    Posts
    252
    Actually, I should have typed it as; std::cin.get() My bad -

    If that compiles and runs, I'd imagine you should look at your outputContents string.
    Last edited by Oldman47; 04-14-2007 at 08:32 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Some questions with strings, vectors, references...
    By samus250 in forum C++ Programming
    Replies: 11
    Last Post: 07-10-2008, 02:31 PM
  2. Using Vectors (cont) - Sort Problem
    By clegs in forum C++ Programming
    Replies: 2
    Last Post: 09-17-2007, 06:31 AM
  3. problem with reading and writing
    By yahn in forum C++ Programming
    Replies: 2
    Last Post: 01-03-2006, 04:38 PM
  4. Shell Sort with Vectors Problem
    By TheSpoiledMilk in forum C++ Programming
    Replies: 4
    Last Post: 11-22-2005, 03:05 PM
  5. how get string vector from class in file?
    By tord in forum C++ Programming
    Replies: 3
    Last Post: 06-17-2005, 09:58 AM