poison.summer@gmail.com writes:
Quote:
int type(int a)
{
return 0;
}
>
>
thanks a lot!
The subject header says "Any simple way to write this function".
Please include your question in the body of your article.
I'd use a text editor, probably nvi or vim, but any text editor will
do nicely. Apparently you've already figured out how to write the
function, so I don't know what you're asking.
If you meant to ask how to write a function that does something more
than the one you've posted, you'll have to be more specific. Your
choice of the name "type" is *almost* suggestive of what you're trying
to do, but I decline to guess. If you want a meaningful answer,
you'll need to ask a meaningful question.
--
Keith Thompson (The_Other_Keith)
kst-u@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"