|
|
INTERVIEW QUESTIONS
LANGUAGES
C++ DETAILS
Question :
what are the differences between member function and constructor?
Posted by: satishanu on 1/4/2008
Contact satishanu
|
|
|
Related Questions |
View Answer |
 |
why c++ is called as object-oriented language? Here what does object mean? |
View Answer |
 |
what are the differences between c and c++.what are the advantages the are only in c++ but not in c |
View Answer |
 |
Write a C++ program that contains a structure named ?Student? having two data members
1) Name
2) CGPA Declare array of structure ?Student? of size 10 .Populate this array by taking data from file inputFile.txt.File inputFile.txt contains Name and CGPA of the students for current semester. There is a single space between the Name and CGPA.
Display the un-sorted list of students on screen. Compare the CGPAs of all the students and sort Student List with respect to CGPA in ascending or descending order.
Display the sorted list of students, highest CGPA and lowest CGPA on screen and also write the result in File outputFile.txt with tab characters between the Name and CGPA. Sample InputFile.txt Ahmer 4.0
Aasim 3.5 Usman 3.4 Maria 2.4 Anila 3.0 Humza 2.6 Junaid 3.0 Talaal 3.8 Haris 3.9 Saira 2.6 Sample OutputFile.txt
Sample outputFile.txt
Name CGPA
===============
Maria 2.4
Humza 2.6
Saira 2.6
Anila 3.0
Junaid 3.0
Usman 3.4
Aasim 3.5
Talaal 3.8
Haris 3.9
Ahmer 4.0
===============
Highest CGPA = 4.0
Lowest CGPA = 2.4
Sample output of screen:
Unsorted List of Students
Name CGPA
Ahmer 4.0
Aasim 3.5
Usman 3.4
Maria 2.4
Anila 3.0
Humza 2.6
Junaid 3.0
Talaal 3.8
Haris 3.9
Saira 2.6
Sorted List of Students
Name CGPA
===============
Maria 2.4
Humza 2.6
Saira 2.6
Anila 3.0
Junaid 3.0
Usman 3.4
Aasim 3.5
Talaal 3.8
Haris 3.9
Ahmer 4.0
===============
Highest CGPA = 4.0 Lowest CGPA = 2.4 |
View Answer |
 |
how can we made digital calendar by using c++ class |
View Answer |
 |
What is the difference between composition and inheritance? |
View Answer |
 |
What is void main mean? |
View Answer |
 |
create six large matrices in subprogram (100*100) two static and three stack dynamic ...fill two static,two stack matrices with random numbers 1 to 100 ..the code in subprogram must perform large matrix multiplication on static matrices and should repeat this with stack dynamic ...compare and explain result?
|
View Answer |
 |
create six large matrices in subprogram (100*100) two static and three stack dynamic ...fill two static,two stack matrices with random numbers 1 to 100 ..the code in subprogram must perform large matrix multiplication on static matrices and should repeat this with stack dynamic ...compare and explain result? |
View Answer |
 |
How can I set the background in flash like camera?( black color that some times for a specific time your background becomes white) |
View Answer |
 |
HI, THIS PROGRAM MUST BE SUBMMITED AS SOON AS POSSIBLE.MAY YOU PLEASE HELP ME TO TACKLE IT ? I?LL BE VERY PLEASE IF I CAN GET HELP.
MULTICHOICE VIDEO RENTAL SHOP needs an Object Oriented program that process the following information about ten (10) videos in their stock ? The title, the director, the year produced and a list of main actors for each video. (If there are more than five main actors, include only the five most famous actors) ? The function setVideo that input information into each video object ? The function getVideo that displays information of a particular video on the screen ? A customer (identified by ID) plus his full names and address can borrow at most 2 videos @ R12.50 per day. A penalty of 10% per day is charged if returned late. The borrow period is at most 7 days ? Video titles should not exceed 25 characters in length. If that happens, truncate the length to a most 25 characters ? A video should be checked if is not rented out before borrow transaction is processed. If borrowed out the customer should either be requested for the second choice or be advised when the video is expected back in the shop ? Failure for the shop to receive the video back within 7 days, is considered permanent loss and the customer is liable to a R400.00 compensation fee ? Information about the number of films in stock at any point in time should be readily available ? At the end of business, a report should be generated showing o Which films are rented out and when are they due o To which customers they are borrowed to o Which videos are left in stock o How much money was collected for the day Generate your own test data that will test all cases to illustrate the accuracy and consistency of your program
|
View Answer |
Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.
| Notify me when better answer is posted!
|
View ALL C++ Interview Questions
|
|
|