1 tolower and toupper ကိုအသံုးျပဳျခင္း 6th November 2009, 5:32 pm
C0D3R
MITR Master
ေအာက္ကေနရာမွာ/* tolower example */
#include
#include
#include
int main ()
{
char c;
int i=0;
char str[]="Test [You must be registered and logged in to see this link.] String.\n"; //စာလံုးအၾကီးရိုက္ထားပါတယ္
while (str[i])
{
c=str[i];
putchar (tolower(c)); // tolower လို႔သံုးထားတဲ႔အတြက္စာလံုးအေသးေပၚမွာပါ
i++;
}
system("PAUSE");
return 0;
}
putchar (toupperr(c));
ကိုသံုးမယ္ဆိုရင္ စာလံုးအၾကီးေတြခ်ည္းျဖစ္သြားပါလိမ္႔မည္
/* toupper example */
#include
#include
#include
int main ()
{
int i=0;
char str[]="Test [You must be registered and logged in to see this link.] String.\n";
char c;
while (str[i])
{
c=str[i];
putchar (toupper(c)); //ဒီေနရာမွာ toupper လို႔သံုးထားတဲ႔အတြက္စာလံုးအၾကီးေပၚမွာပါ
i++;
}
system("PAUSE");
return 0;
}