So you are storing the data in a vector? Which I can then take the data from?
Type: Posts; User: Mech0z
So you are storing the data in a vector? Which I can then take the data from?
I wanna make a program that can easily read data from my document!
If I have a .txt with these values
ABC 1 2 3
DEF 4 5 6
GHI 7 8 9
anyway I think my code works now :D
uhh thx stupid syntax error :p
Found one error! now it aint increasing but still bugged...
if (bricksnumber[player] < 3)
{//checks that the player has less than 3 bricks
bricks[x1-1] = briktype;
...
Ehh I dont understand what you mean :confused:
Anyway to make it short
As you can see the only way bricksnumber can increase is in the "less than 3" check I have, so in my head it should not...
All files here! But they are danish..
http://cpp.sourceforge.net/?show=13809 main.cpp
http://cpp.sourceforge.net/?show=13810 game.cpp
http://cpp.sourceforge.net/?show=13811 game.h (here is the...
I have a problem here! I have this function: LINK But my function aint working! but first of I have in the construcktor to the class that the function is part of I have done this LINK so I get to...
Well if you can find a way to turn off and on a USB stick you can use one of those electric socktes which require the usb to have power inorder for the socket to get power if you know such one!
http://extraball.sunsite.dk/notepad.php?ID=13542 Main.cpp
http://extraball.sunsite.dk/notepad.php?ID=13543 Game.h
http://extraball.sunsite.dk/notepad.php?ID=13544 Game.cpp
relevant code...
Got a new problem in my little tictactoe game
relevant code: LINK
Problem: I have made a function that is used when a player has 3 bricks so he can change where the bricks are so there is...
I found my error today :D Yipiii so end of problem :)
http://pastebin.com/535090
only thing i did was deleting main.h and putting the important info into the tictactoe.cpp nothing else.. but I dont know much about global variables.. so if anyone can...
ok I merged the tictactoe.cpp and the main.h file into just the tictactoe.cpp only so that main.h have been deleted!
yes but I want to seperate it so that it easier to view! But I know its not very structured atm but please try to do so! else my code wont work.. I think at lesat
So I ask you to look my lille newbie code through to find my scope bugs or whatever is the problem! because Iam having a hard time to find it myself with the little knowlegde og scopes and local and...