#include<iostream>
using namespace std;
void number(){
int m,p,r;
bool bArray[7][3]={};
bArray[0][0] = true; // new feature of c++ session
bArray[0][1] = false;//session on functional programming in c/c++
bArray[0][2] = true; //session on 'lambda functions
bArray[1][0] = false;// new feature of c++ session
bArray[1][1] = false;//session on functional programming in c/c++
bArray[1][2] = true; //session on 'lambda functions
bArray[2][0] = false;// new feature of c++ session
bArray[2][1] = true;//session on functional programming in c/c++
bArray[2][2] = true; //session on 'lambda functions
bArray[3][0] = true;// new feature of c++ session
bArray[3][1] = true;//session on functional programming in c/c++
bArray[3][2] = false; //session on 'lambda functions
bArray[4][0] = true;// new feature of c++ session
bArray[4][1] = true;//session on functional programming in c/c++
bArray[4][2] = true; //session on 'lambda functions
bArray[5][0] = true;// new feature of c++ session
bArray[5][1] = false;//session on functional programming in c/c++
bArray[5][2] = false; //session on 'lambda functions
bArray[6][0] = true;// new feature of c++ session
bArray[6][1] = true;//session on functional programming in c/c++
bArray[6][2] = true; //session on 'lambda functions
m=5;
p=4;
r=5;
cout<<"The number of people in the 'new feature of c++ session' are: "<<m<<endl;
cout<<"The number of people attending 'session on functional programming in c/c++' are: "<<p<<endl;
cout<<"The number of people who attended session on 'lambda functions' are: "<<r<<endl;
}
void getAll()
{int q;
q=2;
cout<<"The number of people who subscribed all sessions are: "<<q;
}
int main()
{
const int LENGTH=20;
char Name[LENGTH];
cout<<"Enter the names of the seven students: "<<endl;
for(int j=0; j<7;j++){
cin.getline(Name, LENGTH, '\n');
}
number();
getAll();
}
Comments
Leave a comment