i really think that this is the most valuable site i have ever had. itx very easy to find the stuff of my interest. gota gona be the best progrmmer in the world. Inshallah.
hi im just a beginner and i tried the codes. the codes are working but i dont understand some part of it. can someone explain it to me i really need to understand the flow of this code. thank you very much
Which part are you not understanding? When you say flow are you talking about the flow of the program in general, or the loops. The general flow of the program is pretty self explanatory if you know the basics of programming. For loops, the statements within the loop are executed until the condition is met.
thank you for the reply sir. the one that i dont undertsand is the declaration of the variables (int score,loop,len,num,lup,om,luptimes,times,fitimes,ondtimes,antimes).
thanks for the reply sir. im just a 4th year HS so its hard for me to understand it. can you pls explain to me whats the meaning of the int score,loop,len,num,lup,om,luptimes,times,fitimes,ondtimes,antimes.
That line is defining several variables as integers. It's easier to declare variables like this when your going to have many variables with the same data type instead of having to do: Code: int score; int loop; int len; int num; int lup; int om; int luptimes; int times; int fitimes; int ondtimes; int antimes;
hello. this is my first post here. thank you for the code. now i understand how the game actually works. but i have a question. instead of typing the word to guess how can i use files r text files as source for the words to be guessed? im taking up programming as a minor subject in engineering and i really am finding it to be fun. i also have an assembly subject which is driving me nuts. so far i am finding C to be easier can anyone help me? thanks
Use Regex. Have all the words in a .txt file and fstream to read them and use regex to split it up into chars.