2Questions

I have two Questions

1. I read the topic "Console Closing Down"
and people are posting many different ways to end a program.

I use Dev-C++ and I am reading a C++ tutorial "Sams Teach Yourself C++ in 21 days" book and it is helping me alot but like the hello world example in the book, it dosent work on the Dev-C++ compiler. Once I compile, it shows the console window and then suddenly vanishes. Should I get another compiler or what? I am tired of always writing;

system("PAUSE")

2. I dont know why but I cant compile this simple hello world
Somebody copy this and try to compile this

#include <iostream>
int main()
{
std::cout << “Hello World!\n”;
return 0;
}

thank you for your time for reading mi questions
About "Console Closing Down": http://www.cplusplus.com/forum/articles/7312/
Yes, Dev-C++ is REALLY old, see http://www.cplusplus.com/forum/articles/7263/ for alternatives


That code doesn't use the standard quoting character: "
replace “Hello World!\n” with "Hello World!\n"

And please use [code][/code] tags when posting code
1. i suggest you switch to Visual C++ or Code::Blocks, it automatically pauses the console for you. and Dev-C++ is old and not being develop now.

2. delete the quotation around the Hello World and type it yourself, it should fix it.. (you probably copied and paste it from a PDF i think)

EDIT: awww.. too slow :[
Last edited on
what is tags ?
for some reason its not showing up??????
what is code / code thingy
Last edited on
They are BBcode tags used in this forum
http://www.cplusplus.com/articles/firedraco1/
Topic archived. No new replies allowed.