Enviar pesquisa
Carregar
C++ program using class
•
Transferir como TXT, PDF
•
1 gostou
•
3,755 visualizações
Swarup Boro
Seguir
This is for the students of computer science for their projects
Leia menos
Leia mais
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 2
Baixar agora
Recomendados
Dfs implementation in c
Dfs implementation in c
HapPy SumOn
Test2
Test2
alish sha
Bcsl 033 data and file structures lab s2-1
Bcsl 033 data and file structures lab s2-1
Dr. Loganathan R
Dvst
Dvst
hahaa225
Pads lab manual final
Pads lab manual final
AhalyaR
Program persamaan kuadrat
Program persamaan kuadrat
linda_rosalina
Closures
Closures
alexisabril
New presentation oop
New presentation oop
Ch shampi Ch shampi
Recomendados
Dfs implementation in c
Dfs implementation in c
HapPy SumOn
Test2
Test2
alish sha
Bcsl 033 data and file structures lab s2-1
Bcsl 033 data and file structures lab s2-1
Dr. Loganathan R
Dvst
Dvst
hahaa225
Pads lab manual final
Pads lab manual final
AhalyaR
Program persamaan kuadrat
Program persamaan kuadrat
linda_rosalina
Closures
Closures
alexisabril
New presentation oop
New presentation oop
Ch shampi Ch shampi
Bcsl 033 data and file structures lab s3-2
Bcsl 033 data and file structures lab s3-2
Dr. Loganathan R
Palindrome number program c
Palindrome number program c
mohdshanu
Elf文件解析
Elf文件解析
Yongjiang Zhang
Bcsl 033 data and file structures lab s1-4
Bcsl 033 data and file structures lab s1-4
Dr. Loganathan R
Basic program in java
Basic program in java
Sudeep Singh
Program in ‘C’ language to implement linear search using pointers
Program in ‘C’ language to implement linear search using pointers
Dr. Loganathan R
C programming BY Mazedur
C programming BY Mazedur
Mazedurr rahman
Bcsl 033 data and file structures lab s3-1
Bcsl 033 data and file structures lab s3-1
Dr. Loganathan R
matlab code of shifting and folding of two sequences
matlab code of shifting and folding of two sequences
Rakesh kumar jha
MATLAB CODE OF Shifting sequence
MATLAB CODE OF Shifting sequence
Rakesh kumar jha
11103500 61599 sagar (1)
11103500 61599 sagar (1)
Rounit Roy
Bcsl 033 data and file structures lab s2-2
Bcsl 033 data and file structures lab s2-2
Dr. Loganathan R
Assignement of programming & problem solving u.s ass.(1)
Assignement of programming & problem solving u.s ass.(1)
Syed Umair
Bcsl 033 data and file structures lab s2-3
Bcsl 033 data and file structures lab s2-3
Dr. Loganathan R
MFC Polygon
MFC Polygon
Razvan Raducanu, PhD
Hybrid Inheritance in C++
Hybrid Inheritance in C++
Abhishek Pratap
Maple Code for Steepest Descent
Maple Code for Steepest Descent
Jeremy Lane
C program to add n numbers
C program to add n numbers
mohdshanu
Insertion sort
Insertion sort
Hitesh Kumar
Pointers
Pointers
Hitesh Wagle
P1
P1
Hitesh Wagle
Cs pritical file
Cs pritical file
Mitul Patel
Mais conteúdo relacionado
Mais procurados
Bcsl 033 data and file structures lab s3-2
Bcsl 033 data and file structures lab s3-2
Dr. Loganathan R
Palindrome number program c
Palindrome number program c
mohdshanu
Elf文件解析
Elf文件解析
Yongjiang Zhang
Bcsl 033 data and file structures lab s1-4
Bcsl 033 data and file structures lab s1-4
Dr. Loganathan R
Basic program in java
Basic program in java
Sudeep Singh
Program in ‘C’ language to implement linear search using pointers
Program in ‘C’ language to implement linear search using pointers
Dr. Loganathan R
C programming BY Mazedur
C programming BY Mazedur
Mazedurr rahman
Bcsl 033 data and file structures lab s3-1
Bcsl 033 data and file structures lab s3-1
Dr. Loganathan R
matlab code of shifting and folding of two sequences
matlab code of shifting and folding of two sequences
Rakesh kumar jha
MATLAB CODE OF Shifting sequence
MATLAB CODE OF Shifting sequence
Rakesh kumar jha
11103500 61599 sagar (1)
11103500 61599 sagar (1)
Rounit Roy
Bcsl 033 data and file structures lab s2-2
Bcsl 033 data and file structures lab s2-2
Dr. Loganathan R
Assignement of programming & problem solving u.s ass.(1)
Assignement of programming & problem solving u.s ass.(1)
Syed Umair
Bcsl 033 data and file structures lab s2-3
Bcsl 033 data and file structures lab s2-3
Dr. Loganathan R
MFC Polygon
MFC Polygon
Razvan Raducanu, PhD
Hybrid Inheritance in C++
Hybrid Inheritance in C++
Abhishek Pratap
Maple Code for Steepest Descent
Maple Code for Steepest Descent
Jeremy Lane
C program to add n numbers
C program to add n numbers
mohdshanu
Insertion sort
Insertion sort
Hitesh Kumar
Mais procurados
(19)
Bcsl 033 data and file structures lab s3-2
Bcsl 033 data and file structures lab s3-2
Palindrome number program c
Palindrome number program c
Elf文件解析
Elf文件解析
Bcsl 033 data and file structures lab s1-4
Bcsl 033 data and file structures lab s1-4
Basic program in java
Basic program in java
Program in ‘C’ language to implement linear search using pointers
Program in ‘C’ language to implement linear search using pointers
C programming BY Mazedur
C programming BY Mazedur
Bcsl 033 data and file structures lab s3-1
Bcsl 033 data and file structures lab s3-1
matlab code of shifting and folding of two sequences
matlab code of shifting and folding of two sequences
MATLAB CODE OF Shifting sequence
MATLAB CODE OF Shifting sequence
11103500 61599 sagar (1)
11103500 61599 sagar (1)
Bcsl 033 data and file structures lab s2-2
Bcsl 033 data and file structures lab s2-2
Assignement of programming & problem solving u.s ass.(1)
Assignement of programming & problem solving u.s ass.(1)
Bcsl 033 data and file structures lab s2-3
Bcsl 033 data and file structures lab s2-3
MFC Polygon
MFC Polygon
Hybrid Inheritance in C++
Hybrid Inheritance in C++
Maple Code for Steepest Descent
Maple Code for Steepest Descent
C program to add n numbers
C program to add n numbers
Insertion sort
Insertion sort
Semelhante a C++ program using class
Pointers
Pointers
Hitesh Wagle
P1
P1
Hitesh Wagle
Cs pritical file
Cs pritical file
Mitul Patel
Program: Inheritance in Class - to find topper out of 10 students
Program: Inheritance in Class - to find topper out of 10 students
Swarup Boro
include ltiostreamgt include ltstringgt include .pdf
include ltiostreamgt include ltstringgt include .pdf
contact32
Classes and objects
Classes and objects
Kamal Acharya
CCE management system
CCE management system
Trish004
C++ programming structure & union
C++ programming structure & union
argusacademy
Oop1
Oop1
Vaibhav Bajaj
Practical Class 12th (c++programs+sql queries and output)
Practical Class 12th (c++programs+sql queries and output)
Aman Deep
Practical Class 12th (c++programs+sql queries and output)
Practical Class 12th (c++programs+sql queries and output)
Aman Deep
bank management system
bank management system
Aisha Aisha
OOPS Basics With Example
OOPS Basics With Example
Thooyavan Venkatachalam
RAILWAY RESERWATION PROJECT PROGRAM
RAILWAY RESERWATION PROJECT PROGRAM
Krishna Raj
L10
L10
lksoo
C programming structure & pointer
C programming structure & pointer
argusacademy
3433 Ch09 Ppt
3433 Ch09 Ppt
martha leon
Csphtp1 09
Csphtp1 09
HUST
Write a class Runner that contains the following data members.docx
Write a class Runner that contains the following data members.docx
zahid javed
Railwaynew
Railwaynew
Arsh Vishwakarma
Semelhante a C++ program using class
(20)
Pointers
Pointers
P1
P1
Cs pritical file
Cs pritical file
Program: Inheritance in Class - to find topper out of 10 students
Program: Inheritance in Class - to find topper out of 10 students
include ltiostreamgt include ltstringgt include .pdf
include ltiostreamgt include ltstringgt include .pdf
Classes and objects
Classes and objects
CCE management system
CCE management system
C++ programming structure & union
C++ programming structure & union
Oop1
Oop1
Practical Class 12th (c++programs+sql queries and output)
Practical Class 12th (c++programs+sql queries and output)
Practical Class 12th (c++programs+sql queries and output)
Practical Class 12th (c++programs+sql queries and output)
bank management system
bank management system
OOPS Basics With Example
OOPS Basics With Example
RAILWAY RESERWATION PROJECT PROGRAM
RAILWAY RESERWATION PROJECT PROGRAM
L10
L10
C programming structure & pointer
C programming structure & pointer
3433 Ch09 Ppt
3433 Ch09 Ppt
Csphtp1 09
Csphtp1 09
Write a class Runner that contains the following data members.docx
Write a class Runner that contains the following data members.docx
Railwaynew
Railwaynew
Mais de Swarup Boro
Concatenation of two strings using class in c++
Concatenation of two strings using class in c++
Swarup Boro
Array using recursion
Array using recursion
Swarup Boro
Binary addition using class concept in c++
Binary addition using class concept in c++
Swarup Boro
Study of Diffusion of solids in Liquids
Study of Diffusion of solids in Liquids
Swarup Boro
Program using function overloading
Program using function overloading
Swarup Boro
Program to sort array using insertion sort
Program to sort array using insertion sort
Swarup Boro
Program to find the avg of two numbers
Program to find the avg of two numbers
Swarup Boro
Program to find factorial of a number
Program to find factorial of a number
Swarup Boro
Canteen management program
Canteen management program
Swarup Boro
Railway reservation
Railway reservation
Swarup Boro
Boolean
Boolean
Swarup Boro
Classes
Classes
Swarup Boro
Constructor & destructor
Constructor & destructor
Swarup Boro
Arrays and library functions
Arrays and library functions
Swarup Boro
Pointers
Pointers
Swarup Boro
Queue
Queue
Swarup Boro
Structures in c++
Structures in c++
Swarup Boro
Stack
Stack
Swarup Boro
Functions
Functions
Swarup Boro
Implementation of oop concept in c++
Implementation of oop concept in c++
Swarup Boro
Mais de Swarup Boro
(20)
Concatenation of two strings using class in c++
Concatenation of two strings using class in c++
Array using recursion
Array using recursion
Binary addition using class concept in c++
Binary addition using class concept in c++
Study of Diffusion of solids in Liquids
Study of Diffusion of solids in Liquids
Program using function overloading
Program using function overloading
Program to sort array using insertion sort
Program to sort array using insertion sort
Program to find the avg of two numbers
Program to find the avg of two numbers
Program to find factorial of a number
Program to find factorial of a number
Canteen management program
Canteen management program
Railway reservation
Railway reservation
Boolean
Boolean
Classes
Classes
Constructor & destructor
Constructor & destructor
Arrays and library functions
Arrays and library functions
Pointers
Pointers
Queue
Queue
Structures in c++
Structures in c++
Stack
Stack
Functions
Functions
Implementation of oop concept in c++
Implementation of oop concept in c++
C++ program using class
1.
//C++ program using
class #include<iostream.h> #include<stdio.h> #include<conio.h> class Student { private: int rollno; char name[25]; float marks; char grade; public: void readStudent() { cout<<"n Enter Roll no.:"; cin>> rollno; cout<<"n Enter name :"; gets(name); cout<<"n Enter marks :" ; cin>> marks; } void dispStudent() { calcGrade(); cout<<"n Roll no. : "<<rollno; cout<<"n Name :"<<name; cout<<"n Marks :"<<marks; cout<<"n Grade :"; } int getRollno() { return rollno; } float getMarks() { return marks; } void calcGrade() { if (marks>=75) grade='0'; else if (marks >=60) grade = 'A'; else if (marks >=50) grade='B'; else if (marks >=40) grade ='C'; else grade= 'F'; } }; void main() {Student XIIa[10]; for(int i=0; i<10; ++i) { cout<<"n Enter the details of student"<<i+1<<":"; XIIa[i].readStudent(); } int choice, rno, pos=-1, highmarks=0; do { clrscr(); cout<<"nnn Main menunn";
2.
cout<<"n 1. Specific
student"; cout<<"n 2. Topper"; cout<<"n 3. Exit "; cout<<"n Enter your choice"; cin>> choice; switch(choice) { case 1: cout<<"n Enter roll no. of student whose details you want to see:"; cin>>rno; for(i=0; i<10; ++i) { if (XIIa[i].getRollno()==rno) {XIIa[i].dispStudent(); break; } } if (i==10) cout<<"n INVALID ROLLNO.!!!!!!!!"; getch(); break; case 2: for( i=0; i<10; ++i) { if(XIIa[i].getMarks()>highmarks) { pos=i; highmarks=XIIa[i].getMarks(); } } XIIa[pos].dispStudent(); getch(); break; case 3: break; default: cout<<"n nnnnn WRONG CHOICE!!!!!!!!!!!!!nnnnnnn"; } } while(choice>=1&& choice <3); }
Baixar agora