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

please help in removing erroes in this c++ code

P: 5
#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 assignmentsolutionfile
{
Public:
Void assignmentsolutionfile();
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
Share this Question
Share on Google+
3 Replies


Expert 10K+
P: 11,448
Spaces are not allowed in identifiers/names.

kind regards,

Jos
Nov 10 '08 #2

100+
P: 424
  • <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

Expert 100+
P: 2,415
Also, it would be easier if you told us what errors you were getting.
Nov 10 '08 #4

Post your reply

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