ANSI C++ Manual

Write here if you have problems with your C++ source code

Moderator: Board moderators

Post Reply
Navid
New poster
Posts: 4
Joined: Sun Nov 03, 2002 9:19 pm
Location: University of Tehran-Tehran-Iran
Contact:

ANSI C++ Manual

Post by Navid »

I Generally write my codes in Visual C;
but at the end ,some problems Occurs when Visual C isn't Ansi

1)I want an Ansi Compiler under Windows 2000(Certainly with a good IDE like VC)that when I write my code,I Be sure from runnig my program on Valladolid Machines

2)And So with a Good user reference for ANSI C++

3)Does Anyone know what is the Valladolid C++ Compiler?

Thanks
Juergen Werner
New poster
Posts: 27
Joined: Wed Apr 17, 2002 7:54 pm

Post by Juergen Werner »

1) As far as I remember, there is an ANSI checkbutton hidden somewhere in a dialog tab for compile options, but it's long time ago that I used VC the last time. I also think that in the online help it is listed to which standard the functions conform to.

If that doesn't help, you could use the DJGPP compiler ( http://www.delorie.com/djgpp/ ), which is more or less a port of GCC to Windows. As for an IDE, at least for the usually short programs for the Online Judge, I'd recommend just a good text editor that also supports programming like Emacs for Windows ( http://www.gnu.org/software/emacs/windows/ntemacs.html ) or GVim ( http://www.vim.org/download.php ).

2) I Don't know any good online reference for C++ in general (prefering books), but a STL documentation can be found at: http://www.sgi.com/tech/stl/

3) Since the Judge System is running under Linux, they are using the GNU C Compiler GCC. I guess some 2.9x version since there was the discussion about an upgrade to 3.x on this board.
zorbathut
New poster
Posts: 16
Joined: Tue Nov 05, 2002 6:31 am

Post by zorbathut »

MSVC++6 isn't terribly good, but MSVC.NET has an option for basically full ANSI compatibility - look through the project settings for "Disable Microsoft Extensions", as I remember, and that'll do it. MSVC.NET is what I use for competitions if I can. :)
53460MF
New poster
Posts: 5
Joined: Wed Jun 29, 2005 7:29 am

Post by 53460MF »

I have changed my programming environment to Linux. when I use emacs or vi I miss the good old C IDE's. Because I have to type commands when i debug. and it is so time consuming. what is easy way to debug when you use emacs or vi.
Krzysztof Duleba
Guru
Posts: 584
Joined: Thu Jun 19, 2003 3:48 am
Location: Sanok, Poland
Contact:

Post by Krzysztof Duleba »

I usually just print out a lot of debbuging info or use gdb as the last resort (or to find quickly the reason of a segfault). If you don't like this style, try insight or ddd, they might suit you better.
For millions of years, mankind lived just like the animals. Then something happened which unleashed the power of our imagination. We learned to talk and we learned to listen...
ImLazy
Experienced poster
Posts: 215
Joined: Sat Jul 10, 2004 4:31 pm
Location: Shanghai, China

Post by ImLazy »

In Windows, I use MinGW as command line compiler. which is almost identical as gcc in Linux (It has a little bug on printf("%lld")).
Dev C++ is a good IDE in Windows, which is free and small in size. And it is also based on MinGW.
I stay home. Don't call me out.
Post Reply

Return to “C++”