Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Class Stu-Object Oriented Programming-C Language Codes, Exercises of Object Oriented Programming

Objective of this cours is to develop effective computer programming skills in solving complex problems and to learn adequate and operational software organization in developing real life engineering solutions using powerful object oriented paradigm of the language. It includes: Switch, Public, Class, Break, Case, Return, Integer, While, Continue

Typology: Exercises

2011/2012

Uploaded on 07/31/2012

netu
netu 🇮🇳

4.5

(4)

55 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
class stu
{
char nam[5][100];
public:
char* get_comp(int a)
{
switch(a)
{
case 1:
return nam[0];break;
case 2:
return nam[1];break;
case 3:
return nam[2];break;
case 4:
return nam[3];break;
case 5:
return nam[4];break;
}
}
};
docsity.com

Partial preview of the text

Download Class Stu-Object Oriented Programming-C Language Codes and more Exercises Object Oriented Programming in PDF only on Docsity!

class stu { char nam[5][100]; public: char* get_comp(int a) { switch(a) { case 1: return nam[0];break; case 2: return nam[1];break; case 3: return nam[2];break; case 4: return nam[3];break; case 5: return nam[4];break; } } };

docsity.com