how to create a character array which will accept 8 characters from the user and than convert that array into string variable and if the user gives the more than 8 characters the program will throw an error. it's very difficult????
hcbckwidpeace93
0
Newbie Poster
vinnitro
commented:
you are right he should show something b4 asking here
+0
Recommended Answers
Jump to PostWhat have you done so far? We'll help with your homework, but not do it for you.
Jump to Poststring output=""; for (int j = 0; j<8; j++) { //how to convert array into string with help of loop. output += ar[j]; } Console.WriteLine(output);
you can convert the character array into string like that...
On a second note, why are u taking a character array?? …
All 5 Replies
Momerath
1,327
Nearly a Senior Poster
Featured Poster
vinnitro
commented:
you are right he should show something b4 asking here
+2
hcbckwidpeace93
0
Newbie Poster
ckchaudhary
5
Newbie Poster
andur92
0
Newbie Poster
vinnitro
12
Newbie Poster
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.