One way around having to write that a lot is to put this in your code:
using namespace std;
Note, however, that this method is only recommended for larger apps, because it takes up a few to many resources for something as simple as "Hello, world".
using namespace std;
Quote:Original post by RavynousHunter
I think the problem in your code is your using "cout" and "endl" w/o the "std::" prefix.
One way around having to write that a lot is to put this in your code:
*** Source Snippet Removed ***
Note, however, that this method is only recommended for larger apps, because it takes up a few to many resources for something as simple as "Hello, world".
Quote:Original post by EasilyConfusedQuote:Original post by RavynousHunter
I think the problem in your code is your using "cout" and "endl" w/o the "std::" prefix.
One way around having to write that a lot is to put this in your code:
*** Source Snippet Removed ***
Note, however, that this method is only recommended for larger apps, because it takes up a few to many resources for something as simple as "Hello, world".
Say what?
If anything, a using declaration like that is ONLY recommended for very small projects. A using declaration doesn't use any resources of any kind whatsoever. It is a compile-time only thing.
The larger the project, the greater the chance of a name-clash, so the less you should be using global using declarations like that.
Also, while ommitting the std:: from cout etc may have prevented the OP's application from compiling, it is not very likely to have been the cause of a run-time crash.
Quote:Original post by pissoffboi
Okay it doesn't show that specific error anymore but now anytime i click anything (like exit compile, debug, new _____ etc.) it says Out of Memory....
More help please :)