'C++ program in vscode not printing to terminal/console
#include <iostream>
using namespace std;
int main() {
std::cout << "hello"<<endl;
return 0;
}
I am having trouble getting VScode configured. The above program runs but does not print to the console. It's something with the debugger but I cannot figure out what. I got it to print, but when i restarted VSCode, it stopped working. Please help. Ive tried std::flush(). Wow so helpful everyone!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
