Похожие чаты

Why this happening ?

22 ответов

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

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

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

#include <stdio.h> #include <stdlib.h> #include <time.h> void mass_first_generate(int mass[5][7]) {     for (int N = 0; N < 5; N++) {         for (int A = 0; A < 7; A++) {   ...
Чувак
6
https://www.linkedin.com/posts/ugama-benedicta-kelechi-codergirl-103041300_mobiledevelopment-fluttertraining-handsonlearning-activity-7263445699227254784-IdHB?utm_source=share...
CoderGirl
16
Всем привет! Имеется функция: function IsValidChar(ch: UTF8Char): Boolean; var i: Integer; ValidChars: AnsiString; begin ValidChars := 'abcdefghijklmnopqrstuvwxyzABCDE...
Евгений
44
VIP-397 BNBx Oracle implementation upgrade Summary This proposal, if approved, will upgrade the implementation of the BNBx Oracle contract on Venus from version 1 (V1) to v...
Venus Announcements
2
Ну вот просто даже давайте вот как. Какой нибудь конкретный кейс, можете в пример привести, где бч работает и приносит прикладную пользу, а не просто что бы было? Не крипту.
Alexander Andreev
22
For all those that keep asking why no pump? why this ? and why that...? Please close ur ewt chart and open 2 others - TOTAL (total mc) and BTC.D (btc dominance). Maybe BTC a...
Inn3r_G
19
"Since pnut can flip FTM easily, I'm swapping my FTM to pnut and hoping for a easy x5-x10" Perfect recipe for disaster. NFA but chances are, you'll end up as exit liquidity ...
C. A.
7
объясните пожалуйста, почему функция не работает должным образом? вроде должно брать активное окно сравнивать его размер с размером экрана, и если есть совпадение = true прове...
JF
12
Ready for some fun AND a chance to win TKO Tokens? Join us for exciting minigames in our Telegram group! 🕒 Don’t miss out—games start on today 25 October 2024, at 8 PM! Ge...
Milkyway | Tokocrypto
255
AMD status update? No longer in the plan but something might be around the corner later on Chinese partner? No longer in the plan. This market does not seem to be the top ...
Ben
6
Карта сайта