STL (140)
OOPS (873)
C++ General (2409) How do you define/declare constants in c++?
What is oops and its features?
Why pointer is used in c++?
Can you overload the operator+ for short integers?
What is polymorphism oop?
What is the purpose of polymorphism?
What is the use of vtable?
If you want to share several functions or variables in several files maitaining the consistency how would you share it?
What is abstraction and encapsulation?
What will the line of code below print out and why?
What is an undefined reference/unresolved external symbol error and how do I fix it?
Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.
What is encapsulation in C++? Give an example.
What is the full form of india?
A prime number is a number which is divisible only by itself and 1. Examples of the first few primes are 2, 3, 5, 7, 11. Consider writing a program which can generate prime numbers for you. Your program should read in and set a maximum prime to generate and a minimum number to start with when looking for primes. This program should be able to perform the following tasks: 1. Read the maximum number from user (keyboard input) to look for primes. The program should not return any primes greater than this number. 2. Read the minimum number from user (keyboard input) to look for primes. The program should not return any primes less than this number. 3. Generate and print out every prime number between the maximum prime and minimum number specified by the user.