why wont it work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Geo Popos
    New Member
    • Oct 2011
    • 3

    why wont it work

    heres my code it works in dev c++ but not visual c++

    Code:
    #include <iostream>
    
    using namespace std;
    
    int main*()
    {
    	cout << "Hellow World" << endl;
    	system("PAUSE");
    	return(0);
    	}
  • johny10151981
    Top Contributor
    • Jan 2010
    • 1059

    #2
    if you are using visual c++ then run using ctrl+F5, no need to use system command

    Comment

    • Banfa
      Recognized Expert Expert
      • Feb 2006
      • 9067

      #3
      What is that * doing on line 5???

      And as johny says avoid using the system command.

      And you haven't actually said how it doesn't work, compiles and wont run or wont compile?

      Comment

      • Geo Popos
        New Member
        • Oct 2011
        • 3

        #4
        thank you banfa the * i di not notice that was why it wasnt compiling i copied that header for my text based game and it didnt work lol

        Comment

        Working...