OOPS Cs Lab Manual
46
OOPs with C++ Programming Lab 2012-2013 OOPS WITH C++ PROGRAMMING LABORATORY MANUAL FOR 3 TH SEM CS (2012-2013) BY Sanja M!!na LECTURER COMPUTER SCIENCE "EPARTMENT RITM #AIPUR Page 1
-
Upload
sanjay-meena -
Category
Documents
-
view
40 -
download
1
description
3 rd sem CSE
Transcript of OOPS Cs Lab Manual
OOPs with C++ Programming Lab2012-2013
OOPS WITH C++ PROGRAMMINGLABORATORY MANUALFOR 3TH SEM CS(2012-2013)BY Sanjay MeenaLECTURER COMPUTER SCIENCE DEPARTMENT RITMJAIPUR
Page 1
OOPs with C++ Programming Lab2012-2013
1. Write a C++ program to find the largest of three numbers using inline function.#include#includeinline int largest(int &a,int &b,int &c){int big=0; if(a>b)big=a;elsebig=b;if(c>big)big=c; return big;}int main(){int a,b,c; clrscr();cout