take a look at this code:
---
void redundant_var()
{
char user_name[]="";
cout<<"insert name: "; cin>>user_name;
swap_name(user_name); //another function not seen
}
---
now, the following code works fine, but i am SURE there is a away to pass in user_name without the need of storing it in a temporary variable.
cannt you pass the CONSOLE_INPUT straight into the function?