Menu

missing string class

Anonymous
2002-08-17
2012-09-26
  • Anonymous

    Anonymous - 2002-08-17

    Hi
       On 1 computer this is valid:

    string str1;

    on the other it isn't? what include files are needed to define the string class?  thanks Gary

     
    • Thomas Kurz

      Thomas Kurz - 2002-08-17

      you just need

      #include <string>

      then the string class with all its methods is available!

      btw, what compiler are you using?

      thomas

       
    • Anonymous

      Anonymous - 2002-08-17

      Thanks

      I'm using the new 5.0 beta.

      I had the .h extension so I guess it was pulling in the wrong one.

      Thanks again
      Gary

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.