|
-
July 16th, 2005, 02:01 PM
#1
pointer access --0xC0000005: Access Violation
When I run this one, I get access 0xC0000005: Access Violation..Can anybody tell me whats wrong with this code..?
I am trying to get the students grade into a pointer array and storing them .
#include <iostream.h>
int main () {
int const MAX = 15;
char *ftr[MAX];
cout << "Enter the grades of the student one by one" << endl;
for (int i=1; i<=10; i++)
{
cout << "Enter the Student Number" << endl;
cin.get(*(ftr), MAX);
}
return 0;
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|