exception handling

I will be very grateful for any help.

Write a program to enter your first name using an array of size 10. If the name entered is more than 10 characters, then display the message :”out of array size declared” using the exception handling. Write a exception class for exception handling.

Write a program to calculate the average mark of n students using an array. Prompt the user for the marks. If the mark is invalid, display the error message using exception handling and prompt the user to enter again. Write a exception class for exception handling.
Jesuss? nice name.. hahahah

#include<iostream>
using namespace std;

class NameSize
{
};

huhuhu, i dont know how to continue
please, don't insult me just because, i asked question. I asked for help, if you can't help is okey but n't insulting people
hello Jesuss

you should not ask people to write code for you, you try it first & if you face any

error/problem ask help on that. please see the language guide on this site.

http://www.cplusplus.com/doc/tutorial/exceptions/

hope this will help you.
Topic archived. No new replies allowed.