how would i convert a small chr at the start of a string into a capital with out converting the rest of the letters after the first into capitals as well ?
thanks newbie
This is a discussion on FAQ chr convert from small to captial (C++) within the FAQ Board forums, part of the General Programming Boards category; how would i convert a small chr at the start of a string into a capital with out converting the ...
how would i convert a small chr at the start of a string into a capital with out converting the rest of the letters after the first into capitals as well ?
thanks newbie
Last edited by hlens; 11-08-2001 at 04:01 PM.
Use toupper() - include cctype and csdtlib -
char a[]="zen";
a[0]=toupper(a[0]);
zen