I just want to send an integer to the printout() function to print it but it just seems to get the variable and then exit. What is it I'm doing wrong? Thanks
Code:#include <iostream> using namespace std; //prototypes void printout(int ); //main int main() { int x; cout << "Please enter an interger to print: "; cin >> x; void printout(int x); } //definitions void printout(int x) { cout << "The value for our output is: " << x << endl; }