Jump to content

help with C++

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
shadowhound

shadowhound

    Learning Programmer

  • Members
  • PipPipPip
  • 30 posts
im using Dev C++ to compile and exacute script but the most annoying thing is. Is that im probs the only person to fail an hello world console script

ive tryed diffrent tuts from diffrent websites and each time i compile them i get errors and i don't wana copy and past them i wana write them out and learn from typeing insted of copy and pasting

#2
mgmr

mgmr

    Newbie

  • Members
  • Pip
  • 7 posts
#include<iostream>
using namespace std;

int main()
{
cout<<"Hello World\n";
cin.get();
}

??

#3
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Depending on the errors, it could be an issue with configuring Dev-C++, or an issue with the code. It's hard to help without both the code and the error messages.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#4
MeTh0Dz

MeTh0Dz

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,119 posts

mgmr said:

#include<iostream>
using namespace std;

int main()
{
cout<<"Hello World\n";
cin.get();
}

??

Way to post bad code to a noob...

#include <iostream>

using namespace std;


int main() {

    cout << "Hello World!\n";

    cin.get();

    //Main exited cleanly

    return 0;

}


#5
shadowhound

shadowhound

    Learning Programmer

  • Members
  • PipPipPip
  • 30 posts
both of these worked :) thank you very much you have both been help full now i can continue learning VB and C++ :)

i love this forum :D you peeps are amazing for helping :)

thank you sooo much