ambigious symbols??

This is a discussion on ambigious symbols?? within the C++ Programming forums, part of the General Programming Boards category; wondering if anyone can help. i'm still trying to write a program where there are string variables. i have the ...

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    57

    ambigious symbols??

    wondering if anyone can help. i'm still trying to write a program where there are string variables. i have the following declerations
    #include <string>
    using namespace std;

    i understand this is all you have to do to use a string variable but for some reason when i make these declerations it says that cout, ifstream, and ofstream are all ambigious symbols, any idea what this means?

  2. #2
    Registered User abrege's Avatar
    Join Date
    Nov 2002
    Posts
    369
    try including iostream
    I am against the teaching of evolution in schools. I am also against widespread
    literacy and the refrigeration of food.

  3. #3
    Registered User
    Join Date
    Nov 2002
    Posts
    1,109
    and fstream

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linux Putting my children to sleep with futex!?
    By Abs in forum Linux Programming
    Replies: 18
    Last Post: 02-12-2009, 06:43 PM
  2. Replies: 7
    Last Post: 02-02-2009, 07:27 AM
  3. Trouble with Windows/DirectX programming
    By bobbelPoP in forum Windows Programming
    Replies: 16
    Last Post: 07-08-2008, 03:27 AM
  4. Strange error?
    By MrLucky in forum C++ Programming
    Replies: 5
    Last Post: 02-04-2006, 03:01 PM
  5. symbols, no symbols, symbols ...
    By pavmarc in forum Linux Programming
    Replies: 0
    Last Post: 08-23-2005, 01:36 PM

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