Char array

Hey all!

I need some help with array of characters (no, i do not need STRINGS)
If user types 5, i want an array like this: *****.

i tried like strings:

cout<<"Enter a number: ";
cin>>chars;
char obj[] = {chars ,'*'};

Doesnt work, just prints some garbled text.

Sorry for my bad english.
You need a dynamic char array if you don't want to use strings.
I already told you this: http://www.cplusplus.com/forum/beginner/16587/
Topic archived. No new replies allowed.