Eclipse Setting

Jun 9, 2013 at 4:55pm
Hi Guys,

How do I change eclipse to use ISO C++ instead of ANSI?.

This is a clean install of eclipse. Currently when I create a new project eclipse defaults to ANSI.

Below is the eclipse generated remarks and code. Note that it uses Ansi.

####################################################
//============================================================================
// Name : basic.cpp
// Author : Danny
// Version :
// Copyright : For Free
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
using namespace std;

int main() {
cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
return 0;
}
##########################################################################

Thank You

Danny
Jun 9, 2013 at 5:01pm
What do you expect the ISO version to look like? The code you have posted is valid C++ to anyone.
Last edited on Jun 9, 2013 at 5:02pm
Jun 9, 2013 at 5:16pm
I don't expect the code to look any different, I want to be sure that eclipse defaults to ISO instead of ANSI ...

That's all ...
Jun 9, 2013 at 7:05pm
I don't even think there's an option for that, I think the "Ansi-style" thing is just a reference to the preferred indentation and alignment style of the person that wrote the template.
Jun 10, 2013 at 1:39pm
It makes sense ...

Thank you for your replies

Danny
Topic archived. No new replies allowed.