Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

I'm learning c++

Name: Anonymous 2010-09-14 8:24

And my compiler is letting me do something weird.


If I do this:

int x; //matrix-size

cin >> x;

int array[x];

I can compile. I don't even get a warning. (I'm using the Codelite IDE for Linux, compiler is g++)

Does this work in c++ or is my compiler just fucking with me?

Name: Anonymous 2010-09-15 18:54

OP here

>>21
Didn't know about -std=c++98 -pedantic, thank you. I definitely prefer my compiler to read all code as strictly as possible.
RE conio.h not being standard, I thought that was the entire point of libraries, to import non-standard functionality. Have I completely misunderstood something important?

>>25
Are you fucking with me.

>>28
I'm still at the university level, dude. It's "do-as-teacher-says" or "fail-as-expected."

Besides that, I'm not exactly sure what's so bad about C++ - do you just not like OO languages, or is it specifically C++ you don't like?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List