By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,745 Members | 1,957 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,745 IT Pros & Developers. It's quick & easy.

HOW TO FIX illegal use of pointer error

P: 1
void main()
double emp_sal[50];
int cout=0,no_of_employees;
cout<<"enter the no.of employees";
cout<<"enter the monthly salaries of employees";
for(int i=0;i<20;i++)
if (emp_sal[i]*12>100000)
cout<<"no.of employees earning morethan 1 lakh per annum ="<<cout;
Nov 23 '17 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 9,197
You can't use cout as a variable because cout is part of the C++ Standard Library.
Nov 23 '17 #2

Post your reply

Sign in to post your reply or Sign up for a free account.