Help with compile problem

This is a discussion on Help with compile problem within the C++ Programming forums, part of the General Programming Boards category; Hello all, I am having a problem with an assignment, When I try and compile the attached file I get ...

  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
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    May 2009
    Posts
    2,610
    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-20-2008, 11:16 PM
  3. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 10: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21