Solving CMD Issues - Hello World Not Showing Up

  • Thread starter Thread starter killa57
  • Start date Start date
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 2K views
killa57
Messages
3
Reaction score
0
Hi all this is my first post and my first program trying to run you guessed it Hello World! okay i compiled it and it was successful but when i run it. my cmd dosent open i used the ;system("PAUSE") the command pops open but it just says to press any key to continue? it doesn't even show the the words hello world? How can i get it to show what i put in the code in the cmd prompt?
 
Physics news on Phys.org
Im writing in C++ and this is the code

//my First Program//
#include <iostream>
using namespace std;
int main()
{
count <<"Hello World";
;return 0;
}
 
How are you trying to run it? This is a console application, so you will need to open a command prompt window for it to run in. Open a command prompt window, then navigate to the directory where the executable for your program is, then type the name of the executable. It should print Hello World.
 
Problem solved sorry guys i made the project as a windows application instead of making the project as a Console application from the start...
I did try the above methods but it just still just opened and closed fast...
But hey thanks guys yall were a quick respons ill have to post more problems as i come across them thanks guys :)