For example:
#include <iostream>
#include <iomanip>
using std::cout;
using std::endl;
using std::setw;
int main()
{
int num1 = 1234, num2 = 5678;
cout << endl;
cout << setw(6) << num1 << setw(6) << num2;
cout << endl;
return 0;
}
This would just open and close the console app immediately. I have some experience in a different language, so this hasn't been a problem really because I know what it's supposed to show, but now that I'm getting into a little more complex things I would like to actually look at the results of my code.

New Topic/Question
Reply




MultiQuote





|