hello
i wanna enter a function that contains various data types to be displayed in a linked list , but the problem that the program can't convert from int to void , and of course i can't make an int function for a string or char
here is my function code
void myfunc()
{
string w;
int a;
char vv;
double p;
cin>>w;
cin>>a;
cin>>vv;
cin>>p;
cout<<w<<" "<<a<<" "<<vv<<" "<<p<<endl;
}
please help me