Declaring a variable with “class ” keyword vs Declaring one without “class” keyword in function signatures
问题 What is the difference between the two methods? Sometimes when I get compile-time errors complaining that the compiler does not recognize some class types in function signatures, then if I add the keyword "class" in front of the respective variables, it can always solve this kind of compile-time errors. For example, if the compiler does not recognize the type Client in void recv( Client * c ) then if I change it to void recv( class Client * c ) the problem is solved. I am sorry that I cannot