Answers

2015-11-08T22:34:24+05:30
#include #include using namespace std; int main() { int age[10]; string age[10]; float salary[10]; cout<<"enter the name, age and salaries of employees "; for(int i=0;i<=10;i++) { cin>>name; cin>>age; cin>>salary; } // display the values namewise for(int i=0;i<=10;i++) { cout<
1 3 1
Comment has been deleted
Comment has been deleted
2015-11-11T13:19:34+05:30

This Is a Certified Answer

×
Certified answers contain reliable, trustworthy information vouched for by a hand-picked team of experts. Brainly has millions of high quality answers, all of them carefully moderated by our most trusted community members, but certified answers are the finest of the finest.
# include <string>
#define N   10

Using namespace std;        // using the standard input and standard output


Class   employee : public
 
{
        String   name[N];  
        int   age [N], salary [N];

        employee() {
              for (i=0;i< N; i++) {
                   name [i] = “ default  “;  age[i] = 100 ;  salary [i]= 1000000 ;
              }
 
       }

        public void main ()
        {
  
          int  i;
             for ( i = 0; i < 10 ; i++) {
           
       cout << “Enter name   age   salary:  “   << flush ;
                  cin >> name [i];                 cin >> age [i];                 cin >> salary[i];

                   if (name == “”)
                         cout << “enter correct name” ;
                   else
  
                      cout <<  “Details :  “ + name + age + salary ;
              }  // for
        } // main

} // class


1 5 1
click on thanks button above;;; select best answer