Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VC++ vs. Turbo Compilers

Status
Not open for further replies.

iasonus

Programmer
Oct 16, 2000
9
SE
Hi

I'm learning C++ from this old book (1998), that was aimed at Turbo users, but it's just basic C++ functions and syntax based on the ANSII standard, working mostly with IOSTREAM.

I writing the exercises then compling them with VC++. It works fine, except, I can't initialise variables inside the int main() function, as is written in the book. I can only initialise them outside the main().

This is like a major significant difference between the two compilers. Does anyone know if I' likely to come accross any more such differences?

/J

 
I don't know what's going on, but you certainly should be able to initialize variables inside main() on any C++ compiler. Post your code and error messages so we can see what's really going on.
 
I think you have created a non Win32 Console Application. See if you checked using MFT, using ATL or something like that.

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top