wow... ok so i'm done writing stuff until i read more, cuz i understand alot of it, sorta, but i never woulda been able to use it, like the vector, or bool, or nething...
i agree i need some...
Type: Posts; User: thisisurlife08
wow... ok so i'm done writing stuff until i read more, cuz i understand alot of it, sorta, but i never woulda been able to use it, like the vector, or bool, or nething...
i agree i need some...
never really expected it too, that's what college is for...
but why does my program restart after inputing a value for guess... i don't see where it gets confused. and why it goes back to there......
see the only problem with what ur saying is that i understand goto's much more than functions, i do NOW understand functions, alot more than i did say 2 days ago... but... functions have cause my...
#include <iostream>
#include <cstring>
using namespace std;
int GameStart();
int PlayerInput();
int HelpAndGuide();
int PlayerNames();
int main()
it's not exactly that i'm a beginner, i'm fairly new to c++ programming. but i just kept getting responses on what to type just not the positioning of each.
yea i understand from the errors generated that the function can't be in another function... but i just don't understand go i'm suppose to do what i wanna do with functions... cuz at the top i call...
#include <iostream>
#include <cstring>
using namespace std;
int main()
{
int strikes=0; // to tell the plyers how many wrong guesses
int wordlength; //to tell plyers how long the word is...
ok so the prototype of the function needs to be made, and then it has to be called? is that it or are there 3 parts to the function.
cuz i thought i did it right once and it didn't work.
1. i rly don't understand why goto's are so difficult, or confusing. WHY?
2.I don't doubt ur not suppose to use goto's but i'm not able to do it any other way...
so if u wanna explain exactly how...
i'll attempt function AFTER my string/array problem is fixed...
i would experiment if i knew what exactly i was doing. i see you've defined me some function types, but when i went and put in GameStart() instead of GameStart:, my switch said that GameStart was not...
ok so for say, my code, int 'function name', then later just type 'function name()'?? and i understand the arguments, thank you for the reference tho.
my beginner brain was just blown...
so instead of having everything under 'main' just make a new block of code? and can u provide and example of a call? do u just use 'cout'?
ur response #4......
ok?
1. how exactly do i do that
2. how do i call them
3. how do i fix my string problem
ok so here's what i have(again)
#include <iostream>
#include <cstring>
using namespace std;
int main()
{
ummm unfortunately no...
the ContainsLetter(Word, Letter)... is that part of the code, or just a title of what is going to be going on.
i see that the the variable positions is going to be a...
well i can't guarantee that the game leader will always use words with completely unique letters.
i figure i might have to use the find function, but how do i implicate it into the code i have...
Ok so, i'm currently trying to make a application that performs similar to a game of hangman.
i currently have it set up to have the leader of the game choose a word, and when he/she types it in...