BZU PAGES: Find Presentations, Reports, Student's Assignments and Daily Discussion; Bahauddin Zakariya University Multan Right Header

HOME BZU Mail Box Online Games Radio and TV Cricket All Albums
Go Back   BZU PAGES: Find Presentations, Reports, Student's Assignments and Daily Discussion; Bahauddin Zakariya University Multan > Institute of Computing > Bachelor of Science in Information Technology > BsIT 3rd Semester > Object Oriented Programming

Object Oriented Programming By Mam Sidra Malik


Reply
 
Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
  #1  
Old 07-09-2008, 04:31 PM
shmsa's Avatar
Grown up punk

 
Join Date: Oct 2007
Location: Muslim Town Multan
Posts: 195
Contact Number: 0322-6196713
Program / Discipline: BSIT
Class Roll Number: 07-22
shmsa is a jewel in the roughshmsa is a jewel in the roughshmsa is a jewel in the roughshmsa is a jewel in the rough
Wink last time we done

It is that code which we have done last time in class


Code:
#include <iostream>
#include <stdio.h>
using namespace std;
inline void func1(int& var1)
{
 
 cout<<"you are inside the inline function"<<endl;
 var1=var1+2;

}
int var3;
int& func2(int& var1)
{
 var3=10;
 cout<<"you are inside the function 2 "<<endl;
 var1=var1+2;
 return var3;
}
int main()
{
 int var1=5;int var2;
 func1(var1);
 cout<<"the new value of var1 is = "<<var1<<endl;
 var2=func2(var1);
 cout<<"the value returned by function 3 is = "<<var2<<endl;
}

Reply With Quote
Reply

Tags
c++, lectures, time


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sharping out skills from time to time is the key to success .BZU. Stories,Novels & Kahaniyan 0 03-11-2011 10:48 PM
When bird is alive, it eats ... Time can turn at any time, Don't devalue anyone .BZU. Quotes 0 27-10-2011 05:42 AM
Time Raheel Stories,Novels & Kahaniyan 0 09-02-2011 10:52 AM
My Time's UP? .BZU. Stories,Novels & Kahaniyan 0 23-06-2010 06:16 PM
Time irfishahpk Quotes 0 21-06-2009 09:32 AM

Best view in Firefox
Almuslimeen.info | BZU Multan | Dedicated server hosting
Note: All trademarks and copyrights held by respective owners. We will take action against any copyright violation if it is proved to us.

All times are GMT +5. The time now is 03:22 PM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.