I'm writing a program about words game.
The program is working fine but i'm having trouble in reduce the array to size 5.that mean the user only can input 5 times then the program shut down
Anyone have any ideas?
shinnie 0 Newbie Poster
Recommended Answers
Jump to Post— NormR1 580the user only can input 5 times
There are many ways to count what happens.
The most common one is to use a loop.
Jump to Post— jon.kiparsky 326Not sure I understand the problem. Your user is entering input, and it's getting stored in an array - that much I've got. You're running out of space in the array, I think, and the program crashes with an ArrayIndexOutOfBounds - I'm guessing on that part. Why is the array …
All 8 Replies
NormR1 580 Posting Sage Team Colleague
jon.kiparsky 326 Posting Virtuoso
Xufyan -4 Posting Whiz
shinnie 0 Newbie Poster
NormR1 580 Posting Sage Team Colleague
shinnie 0 Newbie Poster
NormR1 580 Posting Sage Team Colleague
jon.kiparsky 326 Posting Virtuoso
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.