Answers for "visual studio code terminal keeps closing c++"

C++
0

visual studio code terminal keeps closing c++

//add system("pause"); before return 0; in main()
#include <iostream>
int main()
{
  	std::cout << "Hello world!" << endl; //system("pause") dont make new line so you will need the endl
	system("pause");
  	return 0;
}
Posted by: Guest on August-28-2021

Code answers related to "visual studio code terminal keeps closing c++"

Browse Popular Code Answers by Language