String

#include <iostream>
#include <string>
using namespace std;
int main () {
   string str1 = "ISTE";
   string str2 = "Universitesi";
   string str3;
   int  uzunluk ;
   // str1 i str3 e kopyala
   str3 = str1;
   cout << "str3 : " << str3 << endl;
   //  str1 ve str2 yi birleştir.
   str3 = str1 + str2;
   cout << "str1 + str2 : " << str3 << endl;
   //  str3 un toplam uzunlugu
   uzunluk = str3.size();
   cout << "str3.size() :  " << uzunluk << endl;
   return 0;
}

Yorumlar

Bu blogdaki popüler yayınlar

1.DERS NOTU (GİRİŞ) 2018-2019 İSTE

Gün Ay Yıl Hesaplama

İskenderun Teknik Üniversitesi 2016-2017 Programlama VİZE SINAVI