Tell me, please, what am I doing wrong?

I entered the programmer, trying to write the first C program. I downloaded the latest Visual Studio Express, activated it. Created a new project “Empty Project C ++”, in the source code folder created the file one.cpp . Added there a code that displays the line "Hello world". Then I press F7 - it compiles for about 5 seconds, although it happened instantaneously at a higher education institution on a kazenny machine. And then, when I press Ctrl + F5 , the window immediately closes, although at the university it was necessary to press ↵ Enter to close.

Can you tell me what can be done to make it like it is in high school?

  • Until the morning in any way - you need to go to your university. Wait a bit. - xEdelweiss pm
  • Download yourself better Linux in a virtual machine, put it and do everything with pens, and forget about "f7" and "control + f5", they will not teach you anything. what happens when compiling, linking, etc. you need to know and need to learn this, and you will have time to learn how to press buttons in ide. - Yura Ivanov
  • one
    can you better show your code? - DreamChild
  • ... на казёной машине это происходило мгновенно - maybe there is an SSD there? - ߊߚߤߘ

1 answer 1

 #include <ncurses.h> int main() { initscr(); printw("Press Any Key To Exit..."); getch(); endwin(); }