C++ array of characters in a class

So, i'm kinda new to programming, I study it at my University and we just started the objected oriented programming. I understand them quite well, but the problem is the array. I don't know how the hell to implement them into a class and how to read them in the main function. Can somebody make an example program for me with a SIMPLE (the most simple) class called Student or whatever which returns me an array of characters (name of the student entered from the keyboard). I work in iostream (so cin, cout). Thank you very much in advance. So basically a simple program which contains a class (Student), a constructor, and the main function which returns the name of the student entered from keyboard.

Posted Apr 13, 2013, 10:17 PM UTC

04
Loading comments…