|
From: Napoleon A. <nah...@so...> - 2002-06-29 15:32:25
|
Hello,
I just tried to compile this program and I had an error saying cout not =
declared:
#include <iostream>
#include <stdlib.h>
using std::cout;
class World
{
public:
World (int i)
{
std::cout << "Hello from " << i << ".\n";
}
~World ()
{
std::cout << "Good bye.\n";
}
};
World TheWorld (1);
int main()
{
World myWorld (2);
std::cout << "Hello from main!\n";
}
I'll appreciate any help you can give me.
Napoleon.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 20/06/02
|