I don't usually ask for help on these but I missed a day of class and I'm a bit out of the loop. We're going over structures and for HW my instructer likes to do code fixes where theres code with errors that we need to correct. Anyways, I'm reading through my book and I'm not finding any examples that are similar to this problem so I'm not sure what exactly I need to do to correct it. Theres nothing so far that has a void function inside of a structure, with the main called the function.
#include <iostream>
using namespace std;
struct ThreeVals
{
int a, b, c;
void ThreeVals()
{a = 1; b = 2; c = 3;}
};
int main()
{
ThreeVals vals;
cout << vals << endl;
return 0;
}