When I try to typecast a user-input value, I'm getting the address (I believe) instead of the actual value. Can someone help?
Code:#include <iostream> using namespace std; int main(int argc, char *argv[]) { if (argc < 1) { cout << "ERROR: You must supply a number." << endl; return 0; } int number = (int)argv[1]; //more code after this... }