Please reccomend a good compiler?

I have been scowering the interwebs for awhile... searching for a good (free) compiler. I have tried MSVC, however they would find random and unexplainable errors with just about everything. I even tried codes posted in the teaching section of this website. So please direct me to a good compiler for windows.




Also on a sidenote....... Here is a code I am working on. ( Im a noob dont judge me) And I'm not completely sure what the problem with it is? I have tried a few online compilers and they would not build it.
#include <iostream>
 using namespace std;
 #define PI 3.14159
 #define TAB '/t'
 #define NEWLINE '/n'
 // Ok lets just test this out
 
 int main ()
 {
   Cout << "Hello. Please Enter your name Here.  :";
   string name;
   Cin >> name;
   Cout << NEWLINE <<"Thank you" name ". This program is used to find the circumference of a circle." << NEWLINE;
   Cout << "Enter circle's radius now";
   float r;
   Cin >> r >> NEWLINE;
   float circumference = 2 * r * PI
   Cout << NEWLINE << ; "Thank you very much! If the radius is" << r << ",then your circles circumference is " << circumference << "!" << NEWLINE;
   Cout << TAB << "Have a nice day, " << name;
   return 0;
   }
cout and cin aren't supposed to be captialized.
You need to include <string>.
You can't cin into anything other than a variable.
You forgot some << on your 4th line in main.

And btw, MSVC is a perfectly good compiler. If the errors you are getting are with the code you posted, then I don't see anything wrong with the compiler.

Finally, use [code][/code] tags, not output tags.
Last edited on
Topic archived. No new replies allowed.