well wrong is just the word I use but the code in the loop checks if answer is in the word, and then makes wrong = true if it is
so if(wrong!=true) should work but it doesnt, if there is another way...
Type: Posts; User: venomgts550
well wrong is just the word I use but the code in the loop checks if answer is in the word, and then makes wrong = true if it is
so if(wrong!=true) should work but it doesnt, if there is another way...
Well the problem i was running into was that where i placed the count++; code it would not work out and add too many letters or just not add at all, so if I put it out of the for loop it will count...
I made this hangman program and everything works except I have been trying to put a variable named count which adds one everytime an incorrect letter is guessed and after six incorrect guesses the...
I have to create a program that asks the user for a word clears the screen then lets the user guess the letters or the whole word so far i have it so that is clears the screen after the word is...
What code would i use to put a struct into an array
i changed the program to this but it still wont work
#include <iostream.h>
struct BaseballType *baseball
{
string name;
string name2;
int year;
i made this program to have the user choose from a menu what they want to do then enter information about a baseball card and view the data if they want but it doesnt work right and I cant figure out...
wut docs are u referring to
try some of the tutorials on this site
How could I change a lower case letter in a string to an upper case letter
the getchar() at the bottom is causing the double enter
What does isdigit do
i tried to get the output to work
bump
Can someone please help me I cant seem to get this input right
this is what i have so far
#include
#include
#include
#include
#include
#include
int main()
ok thanx for all your help
good night
ok i got it to work
Its a little confusing to me but it looks like it open betazip.txt then copies it to venomgts550.txt
ok this outputs about 100 numbers with the spaces
#include <iostream.h>
#include <fstream.h>
#include <iomanip.h>
#include <stdlib.h>
#include <time.h>
#include <stdio.h>
#include <string.h>
ok, thanx for all of your help so far
sry im willing to think its just i get so frustrated sometimes
didnt know i could open it in notepad, i thought it deleted what I wrote to it when I closed the file.
yea I see some numbers in the...
I made this new code and tried to incorporate what you said but when I use instream.eof() i get no output at all.
#include <iostream.h>
#include <fstream.h>
#include <iomanip.h>
#include...
Hey thanx for the help
It makes more sense now
only thing is when I use instream.put(' ')
my complier says it that .put is not a memeber of the ifstream
so wut should I include to make it...
the last space is exit condition
I dont know what markers are and when I put cout<<x in the part where its supposed to write to the file it makes all 100 number but i dont think it writes any to the file.
If I make x into a...