Kırmızı Şapka

RedHat, Uygulama Kurulumu, Ayarlar vs.

Cuma, Temmuz 03, 2009

Ornek Kod Dosyasi


#include <iostream>
#include "IntCell.h"


int main(){

IntCell a = IntCell(2);
IntCell b = a; //copy constructor
IntCell c; //copy assigment operator


c=b;

a.write(4);
std::cout << a.read() << std::endl << b.read() << std::endl <<c.read() << std::endl;
return 0;

}

Etiketler:

Toplam 0 Yorum:

Yorum Gönder

<< Ana Sayfa