I'm learning C++ online and working with Visual Studio Community 2019 (version 16.7.2). Sometimes it displays errors or weird results despite using the exact same code as the one the tutor used. Take the code below for instance. It should print out to the console but it doesn't. Instead, it shows an empty console when I run it on my end. What could be the problem? The teacher is also using Visual Studio on a Windows machine.
#include <iostream>
using namespace std;
void printSomething();
int main()
{
printSomething;
return 0;
}
void printSomething()
{
cout << "Hey! Over here." << endl;
}