Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write the code in C++ Question 2: Create a structure Student with member variables roll number of type Int, ago of typo Int and marks

Write the code in C++ image text in transcribed
Question 2: Create a structure Student with member variables roll number of type Int, ago of typo Int and marks of type int.Write a function inside named as information that takes three Input parameters roll number, age and marks and assign these parameters to the first student at Index 0 and then increment each parameter by 1 and assign to the next student at Index 1. The function must return the array of two students in which the first is aysigned the same Input parameters and the second is assigned the parameters with increment of 1. You have to create a member function named print that prints the Information of the students. struct student introll_no; intage: int marks struct student information(int rollint age int marks_of_student)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DNA Databases

Authors: Stefan Kiesbye

1st Edition

0737758910, 978-0737758917

More Books

Students also viewed these Databases questions

Question

4. Explain the strengths and weaknesses of each approach.

Answered: 1 week ago