Rabu, 22 Desember 2010

array

#include
#include
#include

using namespace std;

int main(int argc, char *argv[])
{
char kata[10]="saya ";
char *kata1="suka ";
string kata2="dasar-dasar pemrograman";


cout<
char s[100]= "saya cinta";
char s1[100]= " universitas ahmad dahlan " ;

cout << " sebelum strcat (s, s1)" << endl;
cout << "\t s : " << s << endl;
cout << "\t s1 : " << s1 << endl;

strcat(s, s1);

cout << " sebelum strcat (s, s1)" << endl;
cout << "\t s : " << s << endl;
cout << "\t s1 : " << s1 << endl;
cout << s << endl;







system("PAUSE");
return EXIT_SUCCESS;
}
array

0 comments:

Posting Komentar

ALL INFORMATION Copyright © 2011 | Template created by O Pregador | Powered by Blogger