Похожие чаты

Why this happening ?

22 ответов

15 просмотров
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 Автор вопроса

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

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

Типа вызывать GetParent и проверять на соответствие GetModuleHandle?
The Bird of Hermes
67
Do any of you guys have interesting projects one could join? I'm a Middle Full-Stack developer (JS/TS, React & Node)
Lev Shapiro
40
$res = json_decode($наша строка из респонса); $res1 = array_map(fn($o) => $o->name, $res->breadcrumbs[0]->entities); Как такое будет на Хаскеле?.. В начале весь джейсон, в ко...
Хаскель Моисеевич Гопник
27
I read yesterday that in the near future most cryptos will be gone. It's like there is a lot of bullshit within the crypto sphere and this corruption some way is going to be c...
Kanah The Great
41
Hello, I have a question. Can anyone help me? I want to make my cryptocurrencies, like Tron, untraceable by anyone, even government organizations. I was told that to do this,...
 ➛ Eᒪᕼᗩᗰ
14
В чем сила брат, в NASM или FASM?
Isaac Kleiner
18
Вопрос по диагностике ошибок (я знаю в чем, в данном конкретном примере, я знаю, как исправить, пример модельный, понятно, что в реальности бывает намного запутаннее). module...
ⰄⰎⰋⰐⰐⰑⰛⰤⰧⰧⰩⰄ ⰊⰑⰁⰓⰡⰛⰦⰕⰫ
11
Хтось використовував Vapor на Windows?
Jaroshevskii
15
It's notoriously hard to unit test video games, because they rely on user input so much and their output is audiovisual content. Does that mean video game code is never mainta...
Thomas
10
Hi Everybody I bought BCH when it’s 600 and I’m new in crypto what should I do ?
Khush
12
Карта сайта