RE: [Dev-C++] C and C++ sintax restrictions in Dev-C++
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <iv...@at...> - 2003-04-27 00:21:27
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Andrι Macαrio Barros > Sent: Saturday, April 26, 2003 8:54 PM > To: Dev-Cpp-Users > Subject: [Dev-C++] C and C++ sintax restrictions in Dev-C++ > > > Dear Users, > > ---> Some students are using a mix of commands and features like: > /* and // > getchar() and cin.get() > <stdio.h> and <iostream> > <stdlib.h> and <cstdlib> > printf and cout > scanf and cin > .c and .cpp > > "A"---> I´ve tried some enable/disabe options inside > "Options->Compiler Options->C/C++ Compiler", > but couldn´t > inhibt the students to write codes mixing the commands. Of course you couldn't since they belong to the C subset of C++ (that is they are valid C++). > The corrections are still by hand. Sometimes is > difficult > to explain for some guys that come with vicious > what a C or > a C++ program is. > > ---> My Questions: > 1) Is my attempt to convince them correct? If you say to them that printf() is not C++ then you are wrong. What you must say is that C++ provides newer facilities which are superior alternatives. > 2) If it is, is there any set of options that allows me to > inhibt to mix > C and C++ features? No because it is C++. You haven't any mixture of the 2 languages. Personally I wouldn't mark it as wrong since it is not. Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net Anti-racism movement: http://www.positive-youthfoundation.org Iraq Peace Pledge: http://www.peacepledge.org |