StudyLover
  • Home
  • Study Zone
  • Profiles
  • Contact us
  • Sign in
StudyLover 28. Program to illustrate the concepts of console I/O operations.
Download
  1. C++ Programs list
27. Program to use pointers for both base and derived classes and call the member functions using the `virtual` keyword. : 29. Program to implement multiple inheritance.
C++ Programs list

1.      Program to illustrate the concepts of console I/O operations.

  1. #include <iostream.h>

  2. #include<conio.h>

  3. int main() {

  4.     int num;

  5.     char name[50];

  6.  

  7.     // Input operations

  8.     cout << "Enter an integer: ";

  9.     cin >> num;

  10.  

  11.     cout << "Enter your name: ";

  12.     cin <<name;

  13.  

  14.     // Output operations

  15.     cout << "You entered: " << num << endl;

  16.     cout << "Your name is: " << name << endl;

  17.     getch();

  18.     return 0;

  19. }

27. Program to use pointers for both base and derived classes and call the member functions using the `virtual` keyword. 29. Program to implement multiple inheritance.
Our Products & Services
  • Home
Connect with us
  • Contact us
  • +91 82955 87844
  • Rk6yadav@gmail.com

StudyLover - About us

The Best knowledge for Best people.

Copyright © StudyLover
Powered by Odoo - Create a free website