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

What does this function have to do with linked lists? It looks to me like that simply inputs a string, followed by an int, followed by a char, followed by a double and then displays them. What is it supposed to do?