473,802 Members | 2,015 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

please help in removing erroes in this c++ code

5 New Member
#include <iostream.h>
#include <stdlib.h>
#include <stdio.h>
Class StudyProgram
{
Public:
StudyProgram ();
Void add StudyProgram ();
Void edit StudyProgram ();
Void delete StudyProgram ();
Private:
Char name[];
Char code[];
Char prerequisites[];
Int duration[];
Int total credit hours[];
};
Class course
{
Void corse();
Void StudyProgram ();
Void Add course();
Void delet course();
Void modify course();
Private:
Char name[];
Char code[];
Int total credit hours[];
Char Study Program[];
};
Class lesson
{
Public:
Void lesson();
Void course();
Void Add lesson();
Void delet lesson();
Void Modify lesson();
Private:
Int lesson no[];
Int duration[];
Char corse code[];
Char lesson title[];
};
Class lessoncontent
{
Public:
Void lessoncontent() ;
Void lesson();
Upload lesson content();
Private:
Char uploadedby[];
Char content type[];
Dubble size[];
Date uploaded date[];
};
Class assignment
{
Public:
Void assignment() ;
Void course();
Upload assignment();
Delete assignment();
Modify assignment();
Private:
Int assignment no[];
Int total marks[];
Int no.ofsolution recived[];
Char file type[];
Date duedate[];
};
Class assignmentsolut ionfile
{
Public:
Void assignmentsolut ionfile();
Void assiegnment();
Mark assignmet();
Private:
Char studentid[];
Char comments[];
Int marks[ ];
Duble size[];
Date Uploaded date[];
};
Class MDB
{
Public:
Void MDB();
Void Lesson();
Create MDB();
Delete MDB();
Modify MDB();
Private:
Int marks [];
Char description[];
Date start date[];
Date end date[];
};
Class MDB question
{
Public:
Void MDB question();
Void MDB();
Reply question();
Private:
Char studentid[];
Char question[];
Char answer[];
Date postdate[];
Date reply date[];
Int student marks[];
};
Nov 10 '08 #1
3 1556
JosAH
11,448 Recognized Expert MVP
Spaces are not allowed in identifiers/names.

kind regards,

Jos
Nov 10 '08 #2
arnaudk
424 Contributor
  • <iostream.h>, <stdlib.h>, <stdio.h> should be <iostream>, <cstdlib>, <cstdio> respectively
  • C++ is case-sensitive: public instead or Public, etc.
  • unless you're using your own header with typedefs for all built-in types, all your types should be lower case: char instead of Char, void instead of Void, etc.
  • And there are spelling mistakes: Dubble and Duble should be double...

Your code would be easier for us all to read if you had used the [code] ... [/code] tags around your code as suggested in the posting guidelines.
Nov 10 '08 #3
donbock
2,426 Recognized Expert Top Contributor
Also, it would be easier if you told us what errors you were getting.
Nov 10 '08 #4

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

Similar topics

12
1848
by: Hp | last post by:
Hi All, Thanks a lot for all your replies. My requirement is as follows: I need to read a text file, eliminate certain special characters(like ! , - = + ), and then convert it to lower case and then remove certain stopwords(like and, a, an, by, the etc) which is there in another txt file. Then, i need to run it thru a stemmer(a program which converts words like running to run, ie, converts them to roots words).
4
3523
by: pshindle | last post by:
DB2 Team - I just downloaded and unzipped the new Fixpack 9 for DB2 ESE V8 for Windows (FP9_WR21350_ESE.exe). I then burned the unzipped Fixpack files to a CD. I proceded to install this Fixpack on a test machine running ESE but encountered a serious error during the install. It started 'copying new files' but then stopped cold and displayed a dialog box asking me to "Please insert disk 1". (It all fit on one CD!) I clicked OK...
41
7534
by: Seth | last post by:
I am in need of source code for the Aho Corasick algorithm. I have tried searching the web but can't seem to find any code. Is there a good site for c code I can search? Thanks in advance.
0
2474
by: sameer mowade via .NET 247 | last post by:
Hello All, I have problem while dynamically removing row from the Datagrid which i have added dynamically as shown in the following code snippet. The problem is that while removing dynamically added row it also removes the row at the end along with the added row. Plz tell me if, I am missing any thing. Code </asp:datagrid>
2
1515
by: Neo Geshel | last post by:
I have the two subs: Sub UniqueHits() Dim StrSQLQuery As String Dim ObjAdapter as New OleDbDataAdapter() Dim ObjDataSet as DataSet StrSQLQuery = "SELECT * FROM Browser WHERE IsUnique = True" ObjAdapter.SelectCommand = new OleDbCommand(StrSQLQuery, ObjConnection) ObjDataSet = new DataSet()
0
1236
by: Alan Silver | last post by:
Hello, I am having a problem setting and resetting cookies. I'm sure I just doing something really stupid as this is such a basic issue, but I can find any answer. Please can someone help me? The following code is a complete page that demonstrates my problem. If you save this as an .aspx and load it in a browser, it tells you it is creating the cookie. If you reload the page, it tells you it is changing the value. If you reload it...
3
4739
by: kevin | last post by:
Is that even possible? I am creating a web service in .NET to expose some already created .NET programs to other groups. One group is writing the client in PERL, and thus wishes the wsdl schema to not be sequenced. (PERL hashes do not retain order information) First, the w3 specs don't mention the sequence in any detail - its just there in the examples, which makes me wonder if removing the sequence tag is even supportable. Second,...
6
6118
by: Niyazi | last post by:
Hi all, What is fastest way removing duplicated value from string array using vb.net? Here is what currently I am doing but the the array contains over 16000 items. And it just do it in 10 or more minutes. 'REMOVE DUBLICATED VALUE FROM ARRAY +++++++++++++++++ Dim col As New Scripting.Dictionary Dim ii As Integer = 0
18
1942
by: Blackspeech | last post by:
We have Siebel running in a test environment and experiencing problems as described below: We receive automated trouble ticket information from a Remedy based system that emails Siebel and expects to have a Service Request assigmnment returned after the email is received and duly processed. The issue is a little tricky in that if the Service Package Name in the pre-formatted email contains more than one word the service request (SR)...
0
9562
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10538
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10285
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7598
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6838
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4270
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3792
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2966
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.