[Dev-C++] code with cout statement (no display)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Mic <mi...@ex...> - 2003-10-24 07:32:16
|
Hello all
And thanks for your mails. I'm including the code I'm trying to run on Dev-cpp (which by the way works fine on unix).
The statements do not display on my DOS terminal.
======================================================================
#include <iostream>
//using the & and * operators
using namespace std;
int main(){
int a;
int *aPtr;
a=7;
aPtr= &a;
system ("pause");
std::cout << "Hello World! \n";
std::cout << "The address of a is" << &a
<< "\n The value of aPtr is" << aPtr;
system ("pause"); // execute M$-DOS' pause command
return 0;
}
=====================================================================
_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
|