Answer:
#include<iostream>
#include<cstring>
#include <algorithm>
using namespace std;
class Student{
public:
string name;
int rollNo;
Student(){
}
Student(string n, int r){
name = n;
rollNo = r;
}
};
class ClassRoom{
public:
Student stud[10];
int count;
ClassRoom(){
count = 0;
}
void addStudent(string str,int roll){
Student s(str,roll);
stud[count++] = s;
}
Student * getAllStudents(){
return stud;
}
};
int main()
{
string name;
char temp[20];
int rollNo, N, i;
Student * students;
ClassRoom classRoom;
i=0;
while(getline(cin, name) && cin.getline(temp,20)&&i<10){
rollNo = atoi(temp);
classRoom.addStudent(name, rollNo);
i++;
}
N = i;
students = classRoom.getAllStudents();
for(int i=0 ; i < N; i++){
cout << (students+i)->rollNo << " - " << (students+i)->name;
if(i<N-1)
cout<<endl;
}
return 0;
}
Explanation:
- In the addStudent method, increment the counter and as the value of variable s to the the stud array.
- In the getAllStudents method, return all the students.
- Finally in the main method, display the name and roll no. of students.
Answer:
Change the theme colors in Word
1. Select Design > Colors.
2. Point to a color to preview how it will look in your document.
3. Select a color scheme.
Explanation:
to review the most important supporting points from the original information
Answer: marketing
Explanation:
An organization collects many data from internal and external sources to decide on its future course of actions in its business policy. So in this regard it uses its management information systems to gather the information and do reporting on it and analysis of the data.
A marketing MIS uses data gathered from both internal and external sources to provide reporting and aid decision making in areas of product development, distribution, pricing, and promotions.
Different organization uses different tools for its marketing MIS. The efficiency of the tools are known upon analyzing the final outcomes of its reports.