STRLWR dan STRUPR pada C++
#include<iostream.h>
#include<conio.h>
#include<string.h>
void main()
{
char string1[30] = "aBcDefgHIJKLmno";
char string2[30] = "aBcDefgHIJKLmno";
strlwr(string2);
strupr(string1); //nilai string1 menjadi “ABCDEFGHIJKLMNO”
cout << "Testing: " << string1 << endl;
cout << "Testing: " << string2 << endl;
}
#include<conio.h>
#include<string.h>
void main()
{
char string1[30] = "aBcDefgHIJKLmno";
char string2[30] = "aBcDefgHIJKLmno";
strlwr(string2);
strupr(string1); //nilai string1 menjadi “ABCDEFGHIJKLMNO”
cout << "Testing: " << string1 << endl;
cout << "Testing: " << string2 << endl;
}
Comments
Post a Comment
Terimakasih telah berkunjung dan berkomentar disini...