i'm writing a program to capture marks and names of 15 students and then i'll be using a function to display whether those students have failed,supplement or passed. but the problem is i'm using strings to capture those names and i'm using arrays to capture those names and the marks.i'm really confused right now. i've tried everything i can think of. this is what i did below and any suggestions are welcome
1) Welcome to DaniWeb! Please use code tags for future posts with code or indentation you wish to preserve.
2) Please describe what problem you are experiencing. Does the code you post not compile? Does it compile but not run? Does it run but give erroneous output? Do you get error messages or warnings (If so please copy and paste the first couple messages into the post.)? Do you not understand a concept involving C++ or the underlying algorithm?
Quickly scanning your posted code I don't see a glaring error, but I'm not sure what your problem is for sure. I suspect you may be suffering from the magic number blues, but I can't be sure.
3) A string is, at minimum, a null terminted char array. That means if you have a char array without a null char then you don't have a string. Some strings, like STL strings or APStrings or TStrings or CStrings have other very useful features besides just the null termination but they all have, or are, null terminated char arrays. The type of string you use in your post is the bare C style string, otherwise known as a simple null terminated char array.
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.