[OT] Visual C++ question
Jerry Feldman
gaf at blu.org
Fri Feb 14 15:12:43 EST 2003
Unfortunately the Unix environment is going away. NEU has Visual C++ and
Borland C++ installed on the PCs. The Unix environment was Tru64 Unix
that has a fully ANSI compliant compiler that also allows non-ANSI
compliant K&R.
Anyhow, I got the answers I was looking for.
BTW: I have a list of free C compilers on my syllabus so the students
can download them to their home systems. I even had one student install
Red Hat on his laptop.
While I allow nearly any C program that compiles, the one construct that
will earn a student a ZERO is:
void main()
or
void main(int argc, char **argv)
That construct is illegal in both K&R, ANSI 89 and ANSI98(although I
don't have a copy of the official standard).
C++ comments are allowed in my course although they are specifically
illegal in ANSI 89. Most compilers allow them when not in strict ANSI
mode.
On Fri, 14 Feb 2003 14:37:58 -0500
"jerry" <junkforjerry at hotmail.com> wrote:
> I think what I had done is specify in the project wizard:
>
> - New Win32 Console Application
> - Empty project
>
> Then created new text files with .c extension, then added them into
> the new project. By doing it this way, I think the VC++ compiler will
> let some C++ syntax slip by.
>
> Wow, when I took C @ Northeastern, the only requirement was that the
> assignment compiles without errors or warnings on the school's Unix
> environment, what we use to write / debug / compile the assignment
> before we turn it in was our own responsibility.
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.blu.org/pipermail/discuss/attachments/20030214/90f6bf20/attachment.sig>
More information about the Discuss
mailing list