C++ question

<p>MercurySquad: What you said applies only to C, not C++ programming. Considering that he is using STL and iostreams, he has to be doing C++.</p>

<p><a href="http://homepages.tesco.net/%7EJ.deBoynePollard/FGA/legality-of-void-main.html%5B/url%5D"&gt;http://homepages.tesco.net/~J.deBoynePollard/FGA/legality-of-void-main.html&lt;/a&gt;&lt;/p>

<p>"The ISO C++ Standard (ISO/IEC 14882:1998) specifically requires main to return int. But the ISO C Standard (ISO/IEC 9899:1999) actually does not. This comes as a surprise to many people. But despite what many documents say, including the Usenet comp.lang.c FAQ document (at great length), the actual text of the C Standard allows for main returning other types."</p>

<p>Edit: Oh, and I get browny points for referencing the ISO C++ Standard <insert big="" number="" here=""> :p</insert></p>

<p>Although not returning a value in main () is illegal in C++, most compilers just give you a warning which most people, including me choose to ignore :D</p>

<p>Borland 5.0 or higher dont even give a warning</p>

<p>well every compiler is difffernet!
What compilers do you guys use?</p>

<p>Microsoft Visual C++ 2005 Optimizing Compiler. Its nice.</p>

<p>sagar: I think Ive asked this question before... does it come with an IDE? (Integrated Developer Environment)</p>

<p>I've answered before: Yes and no. The Visual Studio 2005 beta 2 comes with an IDE, but expires in a few months, after which it will be $300+ for the pro, and $50 for the express.</p>

<p>Visual C++ 2003 Toolkit Optimizing compiler doesn't come with the IDE.</p>

<p>Just buy the 2002 or 2003 Visual C++, and slap on the new compilers.</p>

<p>thanks. I havent read your other reply :)
I have VisualC++ 6 which my dad gave me. I guess Ill use this while i wait for the new .NETs</p>

<p>Havaldaar and Merc,
you really replied to this.</p>

<p>whats an ide?</p>

<p>Integrated Development Environment</p>

<p>lol whats that</p>

<p>// program that converts F to C</p>

<h1>include <iostream></iostream></h1>

<h1>include <string></string></h1>

<p>float degreesF;
float degreesC;
int main() //Function has to have a type
{
cout << "Enter degrees in Farenheit: ";
cin >> degreesF;
degreesC = degreesF * (5.0 / 9.0) - 32.0; //Don't redeclare degreesC
cout << "the degrees in Celsius is: " << degreesC;
return 0;
} //Try to compile this</p>

<p>en.wikipedia.org/wiki/Integrated<em>development</em>environment</p>

<p>first hit on google</p>

<p>"C++ has an IDE" this means that C++ gives you the facility to type,modify, compile and run your program in an integrated environment.</p>

<p>You don't a seperate text editor to write the programs (like you do for HTML).</p>

<p>"'C++ has an IDE' this means that C++ gives you the facility to type,modify, compile and run your program in an integrated environment.</p>

<p>You don't a seperate text editor to write the programs (like you do for HTML)."</p>

<p>Nothing could be further from the truth.</p>

<p>C++ is a programming language defined by the ISO C++ Standard, originally created by Bjarne Stroustrup. It is an abstract concept for transforming human readable code into machine language. There are many implementations of this abstract concept.</p>

<p>You have compilers, which compile source code into object code.</p>

<p>You have linkers, which link object code, and make executables, etc.</p>

<p>The compiler reads in source files. How you create the source files, the compiler could care less.</p>

<p>And IDE is a tool, in which you generally have an enhanced text editor(with syntax highlighting, possibly code completion, etc). Then you have nice looking buttons, which simply automate the task of executing the compiler and linker. Rather than makefiles, you have project files, which the IDE takes care of for instructing the compiler and linker exactly what to do.</p>

<p>Any language can be put together with an IDE. If you go to professional sites, you'll see that nobody uses notepad for HTML editing. They have tools, such as Visual Studio, Eclipse, Frontpage, that make it easier.</p>

<p>that's what I am telling him. That he does not need a seperate text editor with borland or Turbo C++. But I put it in a crude manner so that everyone understands.
I used the HTML thing just to mark a difference between IDE and regular text editors.(Though you are right about the availability of IDE for HTML)</p>