Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

rgwebb

macrumors 6502
Original poster
Nov 27, 2005
481
1,259
I try using strings by including string.h...but I get scope errors when I declare a string. Whats the beef?
 

csubear

macrumors 6502a
Aug 22, 2003
613
0
You need to include the proper namespace, in this case you should be using std::string or at global scope declare "using namepsace std". Everything from the stl is in the std namespace. Its like that on ever complier that i know of.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.