I just started my university lessons. So, they gave us a book, which explains how are we going to write in c++. The book was written to use a c++ compiler in an PC that runs the free compiler named DevC++ (from Bloodshed software).
But I want to use XCode, so that I don't have to use Virtual PC!
So i open xCode and I make a new project (c++ tool) and then I follow my book's instructions which gives me an example hello world application:
int main()
{
cout << "Hello world";
}
But XCode gets me an error "cout undeclared"!!!
It wants me to write "std::cout" instead! What is going on? Perhaps I am doing something wrong?
I just want to program simple console applications using C++ on a mac. How can I do that?
But I want to use XCode, so that I don't have to use Virtual PC!
So i open xCode and I make a new project (c++ tool) and then I follow my book's instructions which gives me an example hello world application:
int main()
{
cout << "Hello world";
}
But XCode gets me an error "cout undeclared"!!!
It wants me to write "std::cout" instead! What is going on? Perhaps I am doing something wrong?
I just want to program simple console applications using C++ on a mac. How can I do that?