|
From: Daniel G. <sp...@ho...> - 2002-04-18 09:59:14
|
Ummm not sure, I don't think you need iostream. But if so, try
#include <iostream>
then inside main()
using namespace std;
>From: "Anon" <an...@pu...>
>To: <dev...@li...>
>Subject: [Dev-C++] Ansi compatible?
>Date: Thu, 18 Apr 2002 11:50:11 +0530
>
>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 <stdlib.h>
>
>int main()
>{
> int i=10;
> int arr[i]; //can it do accept Integer variable
> system("PAUSE");
> return 0;
>}
>
>My classmates say that this is a violation of ANSI standard.
>
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.346 / Virus Database: 194 - Release Date: 4/10/2002
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
|