Alongside the missing braces mentioned by Nichito there are a few other problems in your existing code:
Your one dimensional char array 'name' will only hold a single name up to 19 characters long (the final place in the array should be reserved for a null!). 'name' will not hold multiple names. So you have a problem right there. Your code to get the users names will not work in the way that you think it does.
As this is C++, either use an array or a std::vector of std::strings to store all of the students names. Otherwise, if you haven't covered using std::library containers and/or you are only allowed to char arrays, you'll need to use a 2 dimensional char array to store all of the student names.
Then there is your array called num (which is where you're hoping to store students scores) which is a one dimensional array and has a hard-coded size of 5. The reason you are only seeing one set of scores is because your array of scores (num) is completely over-written each time through the nested for loop inside the first for loop in your code. So at the end of the program you will only see the last students results. You need to use a two dimensional array in order to store all of the students scores.
An additional problem with your existing code for getting the students scores is that it is possible that a user could enter a number greater than 5 when prompted for the number of 'quizzes'. So if the user enters a number greater than 5, you will end up overstepping the bounds of the array (which has been hardcoded to a size of 5). Which is also rather bad!
So in order to store all of the students names and scores, if you aren't going to use std::library components, then name and num both need to be two dimensional arrays.
And then there is your average calculation, which only calculates the average for a single user (the last one entered).
So there are a number of problems with your code that you will need to fix!
@jasonhippy, can you help me fix my program please? for i was just a beginner for this c++ and haven't yet expanded my peice of mind to cover with this program.our instructor just lend us use a personal comuters then havent even giving some clues for that problem. can you make the program for me? if its just okay with you?,, i would really appreciate if you will help?.thank you.
PLEASE DO NOT ASK US TO SOLVE YOUR HOMEWORK PROBLEMS! This is cheating, pure and simple! The other posters have given you great hints about what may be your problem(s), yet you want them to finish the work... If I could, I'd give you a great big dope slap upside your head!
**how to solve invalid keystore error in android studio here is error report----------------------->
here is error report--------> error:Error:java.lang.RuntimeException: com.android.ide.common.signing.KeytoolException: Failed to read key palash from store "D:\MyApplication3.idea\workspace.xml": Invalid keystore format ...