I'm still pretty new to C ++, and I have been successful in making my programs not look like cluster confusion.
I finally got rid of various error messages, but now the application crashes and I don’t know where to start. The debugger just throws a random hex location.
Thanks in advance.
#include <iostream>
using namespace std;
struct Value{
public:
int Val;
}*pc;
#include "header.h"
int main () {
cout << "Enter a value: ";
cin >> pc->Val;
cout << "\nYour value is " << pc->Val << ". ";
system ("pause");
return 0;
}
source
share