Re: [Dev-C++] code with cout statement (no display)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Eric <eri...@cl...> - 2003-10-24 11:09:50
|
I just tried that program and it works OK on Windows 98
----- Original Message -----
From: "Mic" <mi...@ex...>
To: <dev...@li...>
Sent: Friday, October 24, 2003 1:43 PM
Subject: [Dev-C++] code with cout statement (no display)
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!
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community? Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|