im writing a cd database program, i need to know how i can enter characters in a field which include numbers and letters.

neone know what the type is for this.

i've tried the following:

char album[50];

char s1[50];

none of these work they only allow me to write characters but with no space,, please neone can help i'd apreciate it.

thanks.

I suspect that's not your problem. If you are populating these with cin or gets, etc. then that's the like culprit. You should provide more code.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.