slow down, you're not there yet - I assume that the below is what
your code looks like now - read comments:
Code:
#include <iostream>
#include <stdio.h>
//<stdio.h> is a C header - the C++ version is <cstdio>, but you
//don't need it in the program so there's no point in that include
using namespace std;
char GetUserInput(void)
{
char Input;
cout << "Input Residue Sequence: "<< endl;
cin >> Input;
return Input; //Returns a copy of Input
}
char GetInputChange(char theInput)
{
cout << "WOOORK"<< endl;
cout << theInput << endl;
cin.get();
return (theInput); // why are you returning the parameter you passed?
}
//int main (void) would suffice - this version is to allow
//command line arguments - more complicated than your level
int main (int argc, char* argv[])
{
GetUserInput (); //unnecessary call here - you throw away the return value here
//and then calling it properly here
char Input = GetUserInput();
GetInputChange(Input);
{//unnecessay braces here
return Input; //Input is a char - main returns int
}//and here
cin.get();
}
@dpro - Chaos is correct - compiler will automatically put in return
0 if you leave it out.