Thread: Help with compile problem

  1. #1
    Registered User
    Join Date
    Nov 2010
    Posts
    1

    Help with compile problem

    Hello all,
    I am having a problem with an assignment, When I try and compile the attached file I get an error that a string was not declared in scope. I am trying to write an appointment calendar I decided to use a vector but am not sold on this approach if anyone has suggestions on a better way please let me know. The instructor for this class is known for using the same basis for later labs so I would like to use something scalable.

    Thanks for any assistance

  2. #2
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    In header file calender.h
    Code:
    std::vector< string > messageTimeBooked();
    I suggest trying
    Code:
    std::vector< std::string > messageTimeBooked();
    I am a good C programmer; working on learning C++; so, my answer may/may not be right.

    Tim S.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 09-14-2008, 02:35 PM
  2. compile problem
    By chintugavali in forum C++ Programming
    Replies: 3
    Last Post: 02-21-2008, 12:16 AM
  3. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 11:22 AM
  4. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  5. size of Object c++ compile problem
    By micha_mondeli in forum C++ Programming
    Replies: 5
    Last Post: 04-06-2005, 01:20 PM