Using C++ programming. Define a class “Student” with the following public properties and a method “showInfo” to display each property in separate line in a header file “Student.h”
- student_id integer
- student_name string
- cgpa float
Create an array of 5 Students with student_id, student_name and cgpa of your choice. Write a program to search a StudentID in the array and call showInfo method if found, else display an error message.