Coding challenge in Applications & Coding Posted March 16, 2008 randChar = rand()%4; Won't work unless the user somehow enters a control character. In order for this line to work, it would have to move the random character into the range of printable characters (eg: randChar += 'a'; ).
Coding challenge
in Applications & Coding
Posted
randChar = rand()%4;
Won't work unless the user somehow enters a control character. In order for this line to work, it would have to move the random character into the range of printable characters (eg: randChar += 'a'; ).