>" matches these operands diy" />
>" matches these operands diy" />
Enum cin ile kullanımı?
Teknoloji Haberleri
DH
forum
mini
Uygulama ile
aç
Uygulama ile Aç
Giriş
Kayıt
DH Anasayfa
İndirim Kodu
Ara
Popüler
Foruma Git
Hakkımızda
Destek
Mobil Sürüm
Standart Site Görünümü
Bu Konuda
Tüm Forumlar
Web Tasarım - Programlama
Yazılım Geliştirme
Delphi / C++ /Vb
Bu Konuda
Bağlan:
Facebook
Google+
Twitter
Aşağı Git
Tüm Forumlar
Web Tasarım - Programlama
Yazılım Geliştirme
Delphi / C++ /Vb
Enum cin ile kullanımı?
Bu konudaki kullanıcılar: 1 misafir
2
Cevap
503
Tıklama
0
Öne Çıkarma
1. sayfa
Enum cin ile kullanımı?
Cevap Yaz
Konuya Özel
Linkli Mesajlar
Seçkin Yorumlar
B
BeMasterinCpp
Cevapla
Özel Mesaj
Şikayet
Mesaja Link
Takip Et
11 yıl
Teğmen
Konu Sahibi
arkadaşlar cin ile kullanamıyorum ;
person.gender daki cin kısmındaki >> in altı çizili ve no operator ">>" matches these operands diyor
struct Person
{
enum Gender
{
Male,Female
}gender;
int IDNUM;
string Name;
int Age;
int Height;
string Profession;
};
void PersonData (Person &person)
{
Person person;
cout << "Please Enter the following details of the Person: " << endl;
cout << "Name: ";
cin >> person.Name;
cout << "Age: ";
cin >> person.Age;
cout << "Height (in cm): ";
cin >> person.Height;
cout << "Gender: ";
cin >> person.gender; //The Error is on this line. It also persists if I use getline
cout << "Profession: ";
getline (cin,person.Profession);;
}
1. sayfa
Hizmet kalitesi için çerezleri kullanabiliriz. DH’ye girerek
kullanım izni vermiş
sayılırsınız. Fazlası için
veri politikamıza
göz atın.
person.gender daki cin kısmındaki >> in altı çizili ve no operator ">>" matches these operands diyor
struct Person
{
enum Gender
{
Male,Female
}gender;
int IDNUM;
string Name;
int Age;
int Height;
string Profession;
};
void PersonData (Person &person)
{
Person person;
cout << "Please Enter the following details of the Person: " << endl;
cout << "Name: ";
cin >> person.Name;
cout << "Age: ";
cin >> person.Age;
cout << "Height (in cm): ";
cin >> person.Height;
cout << "Gender: ";
cin >> person.gender; //The Error is on this line. It also persists if I use getline
cout << "Profession: ";
getline (cin,person.Profession);;
}