I am trying to make a program, and have simplified the code down to the following, to show the part in which the bug lies:
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
cout << "huh.\n";
return 0;
}
For some reason, it builds like a charm, with no warnings or errors, but fails to run. After navigating to the exe's directory on command prompt, I run the program and it never prints out huh.
, and never quits. I have a feeling it is a problem with stdio.h
, but I am not sure. Any help would be appreciated!
Note: Compiled with Microsoft Visual Studio 2015 for Windows Desktop.