Похожие чаты

Why this happening ?

22 ответов

34 просмотра
Msd-Sadeeshkumar Автор вопроса

Anyone please say

Msd-Sadeeshkumar Автор вопроса
Msd Sadeeshkumar
Anyone please say

#include <iostream> #include <string> using namespace std; class student{ protected: string name, gender, grade; int age; public: void get() { cout << "Enter the name of The student : "; getline (cin, name); cout << "Enter the age of the student : "; cin >> age; cout <<"Enter the gender of The student : "; cin >> gender; cout << "Enter the grade of the student : "; cin >> grade; } }; class general public student{ protected: string stream; int mark; public: void get1() { cout << "Enter the stream of the student : "; getline (cin, stream); cout<<"Enter the mark of the student : "; cin >> mark; } void print (){ cout << endl; cout << "Name" << name <<endl; cout << "age: << age <<endl; cout << "gender: " << gender << endl; cout << "stream: " << stream << endl; cout << "mark: " <<mark << endl; cout << "grade: " << grade << endl; }; int main() general obj; obj.get(); obj.get1(); obj.print(); return 0; }

Do you not have a proper editor and compiler configured? That looks like an online editor, by default it'll pass nothing as input

Msd Sadeeshkumar
#include <iostream> #include <string> using name...

Delete this non sense I've found out what's with that

Msd-Sadeeshkumar Автор вопроса

Oh is this affect any issues in my office ? They monitor everything

Msd-Sadeeshkumar Автор вопроса
Nader Jafari
Delete this non sense I've found out what's with t...

Bro if you know means say Don't criticise please i will try to improve

Msd-Sadeeshkumar Автор вопроса
Nader Jafari
It's not a crit just delete this text wall

Ok I can't copy paste so used Google lens

Msd Sadeeshkumar
Oh is this affect any issues in my office ? They m...

I don't know, pasting service is a way to share code online, you could be under radar as you're sharing stuff online. Also should you be using your workplace for this?

Forgotten \n

Use this when input a string: getline(cin >> ws, str);

Msd-Sadeeshkumar Автор вопроса
Code Commander
Forgotten \n

No bro I am found the mistake and changes Ws is missing

Msd-Sadeeshkumar Автор вопроса

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта