Channel PIN : C004874EF
"JOIN BBM Channel Official Anak Kos Entertainment"

Friday, December 16, 2011

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;
    }

0 comments:

Post a Comment

Terimakasih telah berkunjung dan berkomentar disini...