#include #define _USE_MATH_DEFINES #include #include #include using namespace std; class Kure { public: double yaricap; char renk[20]; friend void kureGoster(Kure k); friend void ayarla(Kure, double y, const char a[]); }k; void KureGoster(Kure k) { cout << "Yaricap : " << k.yaricap << endl; cout << "Renk : " << k.renk << endl; double hacim; hacim = 4 / 3 * M_PI * pow(k.yaricap, 3); } void ayarla(Kure k, double yy, const char a[]) { k.yaricap = yy; strcpy_s(k.renk, a); } int main() { ayarla(k, 5, "Kirmizi"); KureGoster(k); }