Well, I don't want to do lot of copy-paste in my code, so, I'm just wondering - is it possible to have two different names of one functions(I prefer that function name describe what is used for):
ex:
int do_my_client(int info)
{
blah blah blah;
....
....
return inf;
}
int main()
{
client = do_my_client(55); // a call to function do_my_client
server = do_my_server(66); // same call, but with different name to function do_my_client
return 0;
}
maybe is there a way like with cases:
Switch(a){
case 5 : case 6 : case 7 : cout << "the same text in 3 different switches";
}
so sth like that:????
int do_my_client=int do_my_server(int info) {
..........
}
or I should try sth like this:
typedef do_my_client do_my_server;