physics chemistry maths science forums
become expert I help I sign up I login
refer a friend - earn nickels!!   
 advanced
 
Home
Ask & Discuss Questions
Study Material
Experts Zone
Hang Out!

Ask & Discuss Questions with Community & Experts

Moderation Team
 90 chars left    advanced
Ask iit jee aieee pet cbse icse state board community Community Discussion Question: Complete the function definition
Forum Index -> Computer Science like the article? email it to a friend.  
Author Message
chase (52)

Hot goIITian

Olaaa!! Perrrfect answer. 8  [14 rates]

chase's Avatar

total posts: 127    
offline Offline
Given the following code, write statements to complete the function definition of function 1 and function 2.
 
class CD
{       public:
        CD ( )                              // function 1
               {
                    ..........
               }
        CD (int no, char n[ ] )       // function 2
              {
                   ...........
              }
        private:
              int cdno;
              char Title[20];
}; 
 
 

One Ring to rule them all...


    
nadeemoidu (1184)

Blazing goIITian

Olaaa!! Perrrfect answer. 200  [292 rates]

nadeemoidu's Avatar

total posts: 487    
offline Offline
CD()
{
    cdno=0;
    strcpy(Title,"");
}
CD( int no , char n[])
{
    cdno=no;
    strcpy(Title , n);
}
 this reply: 2 points  (with Olaaa!! Perrrfect answer.   in 1 votes )   [?]
 
You have to be logged on to rate
  
chase (52)

Hot goIITian

Olaaa!! Perrrfect answer. 8  [14 rates]

chase's Avatar

total posts: 127    
offline Offline
Thanx dude!! Didn't know it was that simple.....

One Ring to rule them all...


 this reply: 0 points  (with Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
 
Forum Index -> Computer Science
Go to:   

Top Offers for goIITians
Correspondence Courses
Brilliant Tutorials
Narayana Institute
Aakash Institute
Classroom/Crash Courses
Narayana - Kota , Delhi , Others
Brilliant Tutorials - Class , Crash
Aakash Institute - Medical , Engg
Online Test Series
Brilliant Tutorials
Narayana Institute
Aakash Institute
Mahesh Tutorials
AMITY      Sri Chaitanya