Does the book lack proper indentation too?
Does the book lack proper indentation too?
"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
That was a first draft, the main purpose was to give the original poster an idea on how the qn could be solved. Also the OP didn't make much sence so I took it as count the number of times each letter occurs w/n the string. Also I could not be bothered counting the characters w/n the string, so just chose an arbitary number instead, still works.
In response to tolower: woops, that can be corrected, but one can still guess what I was trying to do. Still hope it helps w/ understanding.
long time no C; //seige
You miss 100% of the people you don't C;
Code:if (language != LANG_C && language != LANG_CPP) drown(language);