// C RunTime Header Files #include /* printf, NULL */ #include /* srand, rand */ #include /* time */ #include // header #include #include #include #include using namespace std; ///////////// user geetings............................ void main() { //wchar_t wAd[] = L"Nazlıcan Öz"; //char ad[] = "nazlican"; // ANSI character type char cName[40]; // " \0" C tipi char array..... cout << "Enter String your name" << endl; // endl : satır sonu cin >> cName; // C++ tipi string onject std::string strname = cName; // class yardimci metodları var..... if( strname.compare("Einstein") == 0 ) { cout << "I know you!"; } else { cout << "Greetings " << strname.c_str() << endl; } //////////////////////////////////////////////////////////////// //// burda console kapanmasin diye... user caharacter prompt aliyoruz. char c = 'a'; while( c != 'q') { cin.get(c); } //////////////////////////////////////////////////////////////// }