Quote:
I'll give you a hint.
char first_name[20];
Quote:
the directions was to:
1. enter name of student into array of string; size is
60
=====
Quote:
Any particular reason you're using char arrays (C-strings) instead of strings?
Quote:
the directions was to:
1. enter name of student into array of string; size is
60
Quote:
my proffesor told me:
i should be able to type the name, middle name, & surname into an array that has the size of 60
====
This was your instruction:
Quote:
1. enter name of student into array of string; size is
60
..and you did this:
Code:
struct names{
char name[20];
};
Are you supposed to use a struct? I don't think that makes sense given the instructions. It sounds like you are supposed to use a char array of size 60 to hold all three names, but then your instructions say the user is supposed to enter the size of the array? Which is it?
Quote:
i used cin, i should just use c++
cin is c++, do what does that mean?