473,387 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

HOW TO FIX illegal use of pointer error

#include<iostream.h>
#include<conio.h>
void main()
{
double emp_sal[50];
int cout=0,no_of_employees;
clrscr();
cout<<"enter the no.of employees";
cin>>no_of_employees;
cout<<"enter the monthly salaries of employees";
for(int i=0;i<20;i++)
{
if (emp_sal[i]*12>100000)
cout++;
}
cout<<"no.of employees earning morethan 1 lakh per annum ="<<cout;
getch();
}
Nov 23 '17 #1
1 2048
weaknessforcats
9,208 Expert Mod 8TB
You can't use cout as a variable because cout is part of the C++ Standard Library.
Nov 23 '17 #2

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

Similar topics

10
by: Chris Mantoulidis | last post by:
I see some really weird output from this program (compiled with GCC 3.3.2 under Linux). #include <iostream> using namespace std; int main() { char *s; s = "test1"; cout << "s = " << s << "...
5
by: a R T u n | last post by:
what do you think is wrong with this? #include <iostream> int foobar (int *pi1) { *pi1 = 1024; return *pi1; }
1
by: rkpatt | last post by:
I am having problem with Access 2k and w98se . I am tying to create new database using the wizards or templates . I get the error message below when trying to use them . I've reinstalled the...
2
by: bluebeta | last post by:
Hi, I am using embedde visual C++ and I have create a dialog box and a button call ID_BInsert. Below is the code for button ID_BInsert:...
3
by: horacius.rex | last post by:
Hi, trying to compile the following program I obtain the error. myran.c: In function 'main': myran.c:66: warning: passing argument 1 of 'ran0' makes pointer from integer without a cast Do...
0
by: aahsampath | last post by:
I have a main web page and when I click on a link on it, it will popup another modal screen to select some datas(data can select using check boxes and there is a select all function also) and it will...
3
by: Tarik Monem | last post by:
Hi Everyone, Still a newbie with FLEX, and I've passed arrays using AJAX to FLEX before, but I've never passed links to FLEX. Basically, this is the OUTPUT, which I wanted, but I'm given an...
15
by: Fuzz13 | last post by:
I'm writing a program that a user loads a file (txt or csv) in which it reads newlines and commas as new object delimiters. Each new object is put into an array creating a new array object each time....
2
by: noorhidayah | last post by:
Hi everyone. I'm stucked in the middle of my programming. I'm trying to read data form the file, and then create the classes as well as feature vector format for that data. E.g my data: 9.8776757 and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.