Hi,
I am taking a C++ course at my university. A lot of assignments require me to make a single .cpp file with a given name. I haven't been able to get them to run unless part of a project in XCode, with the name main.cpp.
How can I run / compile single .cpp files using XCode Tools, or is there a better compiler to use? The school recommends Bloodshed Dev C++, but that is not available for OS X.
Also, I have to print out screenshots of what would normally be seen in the Command Prompt window on Windows. The only thing I've seen so far for showing I/O is the debugging console; however there is also a lot of useless information on there, such as the toolbar at the top, and information displayed while the program is running. Could it run in Terminal without all of that?
Thanks in advance for the help,
David
I am taking a C++ course at my university. A lot of assignments require me to make a single .cpp file with a given name. I haven't been able to get them to run unless part of a project in XCode, with the name main.cpp.
How can I run / compile single .cpp files using XCode Tools, or is there a better compiler to use? The school recommends Bloodshed Dev C++, but that is not available for OS X.
Also, I have to print out screenshots of what would normally be seen in the Command Prompt window on Windows. The only thing I've seen so far for showing I/O is the debugging console; however there is also a lot of useless information on there, such as the toolbar at the top, and information displayed while the program is running. Could it run in Terminal without all of that?
Thanks in advance for the help,
David