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

How to fix error "expected unqualified-id at end of input"?

1
Expand|Select|Wrap|Line Numbers
  1. #include<iostream.h>
  2. #include<stdio.h>
  3. #include<conio.h>
  4. using namespace std;
  5. class CV
  6. {
  7.     public:
  8.     char name; 
  9.     char qualfctn;
  10.     int idno;
  11.     int age;
  12.     char city;
  13.     char hobbies;
  14.     char skills;
  15.  
  16.  
  17.     void getdata()    
  18. {
  19.     cout<<"Enter name, qualfctn, id-no, age, city, hobbies & skills respectively :  ";
  20.     cin>>name, qualfctn, idno, age, city, hobbies, skills;    
  21. }
  22.  
  23.  
  24.     void showdata ()
  25.     {
  26.         cout<<"your name is :  "<<name<<endl;
  27.         cout<<"your qualfctn is :  "<<qualfctn<<endl;
  28.         cout<<"your idno is :  "<<idno<<endl;
  29.         cout<<"your age is :  "<<age<<endl;
  30.         cout<<"your city is :  "<<city<<endl;
  31.         cout<<"your hobbies is :  "<<hobbies<<endl;
  32.         cout<<"your skills is :  "<<skills<<endl;
  33.     };   
  34.  
  35.  
  36.      void main ()
  37.      {
  38.          CV name;
  39.  
  40.          name.getdata();
  41.          name.showdata();
  42.  
  43.          CV qualfctn;
  44.  
  45.          qualfctn.getdata();
  46.          qualfctn.showdata();
  47.  
  48.          CV idno;
  49.  
  50.          idno.getdata();
  51.          idno.showdata();
  52.  
  53.          CV age;
  54.  
  55.          age.getdata();
  56.          age.showdata();
  57.  
  58.          CV city;
  59.  
  60.          city.getdata();
  61.          city.showdata();
  62.  
  63.          CV hobbies;
  64.  
  65.          hobbies.getdata();
  66.          hobbies.showdata();
  67.  
  68.          CV skills;
  69.  
  70.          skills.getdata();
  71.          skills.showdata();
  72.          getch ();
  73. }
Apr 3 '14 #1
1 1717
weaknessforcats
9,208 Expert Mod 8TB
It looks like you are missing the closing brace on your class declaration. I see a semi-colon at the end of the showdata function but it is appearing after the closing brace of the function leading me to think this brace was mistaken to be the closing brace of the class.

My compiler is out of service for the moment due to a machine crash so I can't compile your code.
Apr 5 '14 #2

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

Similar topics

13
by: deko | last post by:
I use this convention frequently: Exit_Here: Exit Sub HandleErr: Select Case Err.Number Case 3163 Resume Next Case 3376 Resume Next
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
1
by: developer | last post by:
Hi All I have made a .NET project. the files included are borland c++ files that i am migrate to VC++ .NET I am using Microsoft Visual C++ .NET 2003. the compilation goes through properly,...
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
15
by: madhu.ab | last post by:
Hi All, I am getting the following errors when i am including header file winuser.h I dont know whats happening. How will an error occur in winuser.h?? Please help. \microsoft visual...
0
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
5
by: yashu0209 | last post by:
I have an error occurring when i try to compile the program and the error is: D:\Program Files\visual studio 6.0\MSDev98\MyProjects\GLEnabledView\GLNew.cpp(164) : error C2653: 'CGLEnabledView' :...
1
by: nuwan1988 | last post by:
in the printing of the access form using following cord.. get error........ Private Sub CommandBtn_Click() Dim MyForm As Form Set MyForm = Screen.ActiveForm DoCmd.SelectObject acForm,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.