473,394 Members | 1,709 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,394 software developers and data experts.

Hey all I am getting the compiler Identifier Expected on the following code.

#include<iosteram.h>
#include<conio.h>
class ex
{
int a,b,total;
public:
void gtdt();
void calc();
void disp();
};
ex::void gtdt()
{
cout<<"enter the value for a & b\n";
cin>>a>>b;
}
ex::void calc()
{
total=a+b;
}
ex::void disp()
{
cout<<total;
}
void main()
{
clrscr();
ex ob;
ob.gtdt();
ob.calc();
ob.disp();
getch();
}
Jun 9 '18 #1
1 1122
weaknessforcats
9,208 Expert Mod 8TB
Your member functions are void ex::gtdt() and not ex::void gtdt().
Jun 9 '18 #2

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

Similar topics

3
by: Materialised | last post by:
I am having some issues with the following code, basically what I am trying to do, is familierise myself with compiler warnings, when I try to access a private or protected class function. Here is...
4
by: Jack Wright | last post by:
Dear All, At some customers we are facing a problem when the user tries to launch any aspx page from IE. We are getting "Compiler failed with error code 2000". Is this bcos of some missing...
7
by: Tony Tone | last post by:
I am having trouble resolving this issue: Server Error in '/test' Application. -------------------------------------------------------------------------------- Compilation Error Description:...
9
by: Jack | last post by:
I get the following errors from the code ( CRM 3.0 ) below, whats wrong ? Any suggestions are welcome because i'm kinda stuck here. The first error is pointing on the last bracket ] <--- ...
1
by: bhanupoornakumar | last post by:
Hi .. when i am setting a website i am getting the following error.. The compiler failed with error code -1073741819. This is the full error .. u can see below. Compilation Error ...
2
by: jdziggy | last post by:
Hey all I am getting the compiler Identifier Expected on the following code. public partial class Form1 : Form { private const int MaxFiles = 10; private SourceFile...
1
by: sanctus | last post by:
I have a Matlab code which works fine in windows. Now I installed Xubuntu (because this way I have admin rights(=root) which I don't have on windows) and want to use the same code. To be able to...
1
by: zeena | last post by:
I am using a materialized view to get order details from a different schema. I expect my view to get refreshed every BOD. I created my Materialized view with the following code, CREATE MATERIALIZED...
2
by: roymunia200 | last post by:
i wrote this program.after compiling it gave this error.for more i'm writing the program..... #include<iostream.h> class student { private: char name; int marks; public: void setinfo(void);
0
by: JJE990 | last post by:
Hi there! I'm having a small problem with my coding. I am new to this level of VB coding, and coding in general really, the only coding I've ever done in VB is to make a simple login manager! ...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.