Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
MY FIRST OBJECT ORIENTED PROGRAM
//clang 3.8.0 #include <iostream> using namespace std; class stud { public: char name[30],clas[10]; int rol,age; void enter() { cout<<"Enter Student Name: "; cin>>name; cout<<"Enter Student Age: "; cin>>age; cout<<"Enter Student Roll number: "; cin>>rol; cout<<"Enter Student Class: "; cin>>clas; } void display() { cout<<"\n Age\tName\tR.No.\tClass"; cout<<"\n"<<age<<"\t"<<name<<"\t"<<rol<<"\t"<<clas; } }; int main() { class stud s; s.enter(); s.display(); cin.get();//use this to wait for a keypress }
run
|
edit
|
history
|
help
0
Te
ljblblljkl
HTML Timetable generator.cpp
Делим на Ноль
STL Stack, C ++
pack expansion
Throttle Example using a circular queue (Push all but 2 less than maxSize; then pop all but 2 of current size)
New wall
6 7
std::set custom ordering with composition