Quote Originally Posted by thunderxlight View Post
ohh sorry brother
first i realy have exam tomorrow about this homework so if i dont find answer i will lose 30 marks ( i swear)
10 marks for the homework and 20 for the exam which talk about these thing and i just know this homework today
All of that is your problem, not ours. Your post is no more important than any other post on CodeGuru. Just because you say it's "urgent" doesn't make your post a higher priority.

Second, even the first lines are wrong:
Code:
#include <iostream.h>
#include<stdlib.h>
using string stdlib;
The correct header is <iostream>, not <iostream.h>. Second, where is the #include <string> for the string class? And what is this supposed to do?
Code:
using string stdlib;
and you know f you take close look at this program it doesn,t its job because i want program do these things
It can't do its job because the code is not valid, as pointed out above:
Code:
#include <iostream>
#include <string>
//...
using namespace std;
Even if you made those changes, your program is still faulty:
Code:
void addnewcourse()//idont want to put anything here in parameters {
     coursesdetails add[100];
     const studentnum =100;
     int ex;
     for(int i=0; i<=studentnum; i++) { 
          cin>>add.coursename[i];
So when i is 100, you are now accessing an invalid item in the array. An array is indexed starting from 0. Therefore the highest element is 99, not 100. So right there, your program may crash due to an illegal access.

Regards,

Paul McKenzie