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.
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.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
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?
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
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.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Try making a program that can first output a random number. The question selection can come later.
Thought for the day:FLTK: "The most fun you can have with your clothes on.""Are you sure your sanity chip is fully screwed in sir?" (Kryten)
Stroustrup:
"If I had thought of it and had some marketing sense every computer and just about any gadget would have had a little 'C++ Inside' sticker on it'"
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.
Thought for the day:FLTK: "The most fun you can have with your clothes on.""Are you sure your sanity chip is fully screwed in sir?" (Kryten)
Stroustrup:
"If I had thought of it and had some marketing sense every computer and just about any gadget would have had a little 'C++ Inside' sticker on it'"
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.
Our goals are clear, tasks are defined! Let's work, comrades! -- Nikita Khrushchev