Thread: Learning how to use classes and create header files

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    2,663
    Quote Originally Posted by Welshy
    Did i not just quote the error message there
    uuuhhh, no:
    I get two errors for the class definitions file saying 'string does not name a type',
    Include string in your header file.
    Have included string header file but it still doesnt compile.
    ...why? what errors caused it not to compile? what lines were the errors on(not the line number, but a clear mark in the code you posted indicating the line with the error)? An error message with a mark where it occurred in your code can be immediately diagnosed.
    Last edited by 7stud; 04-19-2005 at 05:04 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Defining multiple classes in the same header file
    By Stonehambey in forum C++ Programming
    Replies: 2
    Last Post: 08-14-2008, 10:36 AM
  2. Create generic classes to be specified later?
    By jmd15 in forum C++ Programming
    Replies: 18
    Last Post: 08-05-2007, 09:21 AM
  3. How to use classes in seperate C++ files
    By dxfoo in forum C++ Programming
    Replies: 3
    Last Post: 03-19-2006, 05:55 PM
  4. Can not reach the classes and create instances of them
    By kromozom in forum C++ Programming
    Replies: 4
    Last Post: 04-11-2005, 07:31 AM
  5. doin' classes in header files?
    By face_master in forum C++ Programming
    Replies: 9
    Last Post: 11-14-2001, 03:56 AM