2
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by Ancient Dragon
0

resolved with the using clause, such as using namespace std; . Alternatively you can just put the namespace when you declare the object, such as std::string mystring; or mynamespace::myobj obj;

0

ok but what if i dont know which namespace that class belongs to? for c# visual studio shows you the probable namespace options for that class, i want something like that.

0

You can find out what namespace it is by reading the header file in which it is declared or reading the programmer's documentation (for example looking it up in MSDN if it is a win32 api function).

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.