P
pauldepstein
On Bloodshed Dev using Windows XP, I'm trying to run the program:
#include <iostream>
#include <stdlib.h>
using namespace std;
int main()
{
system("PAUSE");
cout << "this";
return 0;
}
I know that I shouldn't use "PAUSE" and maybe I shouldn't use standard
namespaces etc.
However, I have a more basic issue. I don't get any visible output on
my screen. Why do I not see the word "this" on my screen?
Probably the word "this" just flashes for a millisecond or less.
Anyway, I want to get the word "this" on my screen.
A more complex question: What are some techniques for the following
type of problem: Someone presents some source code and the question is
asked: "How much memory does this program take?" How does one
calculate memory allocation? What is a good website for this type of
problem?
Paul Epstein
#include <iostream>
#include <stdlib.h>
using namespace std;
int main()
{
system("PAUSE");
cout << "this";
return 0;
}
I know that I shouldn't use "PAUSE" and maybe I shouldn't use standard
namespaces etc.
However, I have a more basic issue. I don't get any visible output on
my screen. Why do I not see the word "this" on my screen?
Probably the word "this" just flashes for a millisecond or less.
Anyway, I want to get the word "this" on my screen.
A more complex question: What are some techniques for the following
type of problem: Someone presents some source code and the question is
asked: "How much memory does this program take?" How does one
calculate memory allocation? What is a good website for this type of
problem?
Paul Epstein