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

Pages: 1-

C++ Issue

Name: Anonymous 2012-09-01 21:04

I wanted to teach myself C++, and found myself a guide.

I have been using this one:
http://www.cplusplus.com/doc/tutorial/program_structure/

I'm on step one, took a full page of notes. I attempt compiling and running the initial given code with dev c++, but nothing. I have dissected it, and with the given info I can't figure out why it won't work. Any suggestions?

Name: Anonymous 2012-09-01 21:07

And yet you don't post anything like compiler error messages or what exactly "won't work". Syntax error? Linker error? Segfault at runtime?

Also, don't be using Dev-C++. That shit is a dead project as of like 7 years ago.

Name: >>2 2012-09-01 21:12

Oh god wait, don't tell me this is the "The console thing disappears right away - what's wrong?" problem.

Name: Anonymous 2012-09-01 21:17

http://en.wikipedia.org/wiki/Dev-C%2B%2B
>The IDE is written in Delphi.
IDE for C/C++ was written in Pascal? C/C++ must be really bad language...

Name: Anonymous 2012-09-01 21:20

>>3
It is. If this is a common problem, I suppose there's an easy fix?

>>2
Suggestions for a compiler?

Name: Anonymous 2012-09-01 21:21

>>4

Troll failed.

Name: Anonymous 2012-09-01 21:24

>>5
either open a cmd command prompt and cd to the place where the program is and run it from there, or put some wait call at the end of the main function that makes the program wait for a user key before exiting.

Name: Anonymous 2012-09-01 21:26

>>5
Run it from a normal cmd prompt / terminal like >>7 says.

system("pause"); // Awwww yea

Name: Anonymous 2012-09-01 21:34

>>4
C++ is a terrible! language for GUIs.

Name: Anonymous 2012-09-01 21:43


Why the fuck don't these idiots learn how to use the command prompt BEFORE they learn any programming AT ALL?

Name: Anonymous 2012-09-01 21:44

>>10
How about you help out with that. Teach an idiot how to use it.

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