say I have:
Code:void funcLookup(char * ){ }
is this okay in C++?
the parameter is without a name
say I have:
Code:void funcLookup(char * ){ }
is this okay in C++?
the parameter is without a name
Yes, but why would you want to? What's the point of having a parameter if you don't plan on using it?
"I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008
"the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010
Placeholder, if you later plan to start using it (e.g for a dummy function that is not implemented yet)?
I might be wrong.
Quoted more than 1000 times (I hope).Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
That or you need to implement some sort of callback function yet have no reason to use the parameter function and hate those stupid warnings about unused parameter arguments.
Or you override a virtual function that has parameters you don't need.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law