|
From: Ioannis V. <no...@ho...> - 2002-04-18 10:49:39
|
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of Anon
Sent: Thursday, April 18, 2002 9:20 AM
To: dev...@li...
Subject: [Dev-C++] Ansi compatible?
Hey!
Can anyone please tell me if the following code is ANSI compatible? It
compiles fine with DevC++ but throws up an error in Borland 5.0
#include <iostream.h>
#include <iostream>
#include <stdlib.h>
int main()
{
int i=10;
const int i=10;
int arr[i]; //can it do accept Integer variable
std::system("PAUSE");
return 0;
}
My classmates say that this is a violation of ANSI standard.
It is.
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.cjb.net
<http://www.noicys.cjb.net/>
* Alternative URL: http://run.to/noicys
|