Access Violation

This code gets an access violation when i compile it.
When i debug it i get 0 errors but two warnings
1- 's' is assigned a value that is never used.
2- actualsize is assigned a value that is never used.

Last edited on
What does the input file contain?
the input file contains the
id firstname lastname gpa of the user
You really need to supply the input, your description won't suffice.
what exactly do you need ??
The code inputs the text file and afterwards helps the user locate the gpa of an specific person trough the use of their id or name.
Can you at least tell us where the error is occurring? There's no way anyone's going to go bug hunting through all that.
Although helios is right I just know that the issue is with your "void swap(char[], char[])" function defined on Line 145 is anyone else is wondering. Most people on this site won't compile the code that you post, some will but those are a minority.

EDIT: If you want to work with strings then use a string array.
Last edited on
i wish i knew where the error comes from, the compiler only gives me warnings but 0 errors :| I posted the warnings but i don't think they help at all. I tried looking into those warning and they dont make sense at all
Of course the compiler won't tell you about an error that happens at run time. You have to run the program through a debugger to find out where the problem is.
well i tried debugging it trough borland and visual, but I get the same results warnings and 0 errors
That sounds like compiling, not debugging, to me.
Topic archived. No new replies allowed.