Hi guys. Im kinda new in programming. I want to create a word game using c. My question is it possible to set questions and the system will randomly display each? If yes, what's the right code? Thanks in advance.
Printable View
Hi guys. Im kinda new in programming. I want to create a word game using c. My question is it possible to set questions and the system will randomly display each? If yes, what's the right code? Thanks in advance.
Yes. As for the right code: start with a simpler program. For example, write a program that will shuffle the integers from 0 to 10 and print them.
What's the right syntax for that sir? im a real newbie so im kinda unfamiliar with the syntax and its functions
The thing is, it isn't just about syntax. It is a matter of problem solving. You need to think of the logic to come up with an algorithm.
Are you able to write a "hello world" program with referring to your textbook/notes/tutorials? Do you know how to define an array and access it?
Im just about to begin to study about arrays. Can you give the right code to randomly select a question and then display it?
Yes, but it is better for you to make an attempt first.
Try making a program that can first output a random number. The question selection can come later.
I have a little problem sir. Everytime i compile, a small window will display "g++.exe has stopped working"..
problem with the environment - searching google led me to this link for example.
Just google the error and see what matches your setup if that link is not right for you.
Is C language v4.9.9.2 compatible with windows 8? My notebook ran out of battery. We dont have supply of electricity sice the last typhoon because it has destroyed the main lines. I have to wait for tomorrow to fix this.
I am very big fan of TCC. Highly recommended!
I advise you to take a notebook (paper thing, not a computer) and try to think about the algorithm. Translation into the programming language is not difficult. It is difficult to write a program without clear algorithm.