hi!
iv'e got a question.
how would you make a program so that the user can edit variables, which are saved after you close the program so say it said enter A: and you entered a then closed the...
Type: Posts; User: gillypie
hi!
iv'e got a question.
how would you make a program so that the user can edit variables, which are saved after you close the program so say it said enter A: and you entered a then closed the...
k howz this?
#include <allegro.h>
#include <cstdlib>
int BallX = 300;
int BallY = 300;
int TempX = 300;
Hi
I've been learning some 'Allegro' (a game programming library) for c++. i decided to compile what i'd learned and to try and make a pong clone called 'bat and ball'. ive run into a problem...
Hi :)
I've been learning some 'Allegro' (a game programming library) for c++. i decided to compile what i'd learned and to try and make a pong clone called 'bat and ball'. ive run into a problem...
Horray it works.
Thanks for all your help guys !!!
#include <cstdlib>
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
k i fixed that but the problem remains
oh i see so i only need [19] because 0 counts
what are array overflows?
oh guys one more thing.
#include <cstdlib>
#include <iostream>
#include <windows.h>
horrah there was another bit to do as well and it works.
here u go.
#include <cstdlib>
#include <iostream>
#include <windows.h>
yeh i thought so but it didnt fix the problem
so when do i change the = to == ?
hi guys.
i've been making a simple (or so i thought) memory test game on c++ to help me learn. ive encountered a number of problems that were eventualy solvable and ive been at this one for hours:...
thnx but ive decided to use a do while loop for the purposes. youve helped me alot though i understand loops properly now. thnx!
:)
ok so whats the syntax for adding the colons to the for loop.
sorry to sound stupid.
Hi Guys!
Im new to c++ but have made a few programs. I am currently making a memory testing game. it was all working well untill i started using an array to generate random numbers. if the code is...
how do i switch wall.
also i changed to rand and am getting:
in function 'fight'
to many arguments to function rand.
yo!
things are looking up. all the errors are gone but two:
[linker error] undefined reference to 'randn' // i think this has something to do with the include statements at the begginging//
...
im sorry matsp i am really a noob i dont understand alot of c jargon yet. but thanks for your help and no-offence - its good advice.
the code you psted does not work on my machine 39ster does it...
sorry lol
#include <stdio.h>
#include <stdlib.h>
int fight ( int player_a_p , int enemy_h_p );// a_p means attack points and h_p means health
how do you "call" fight.
i know i sound stupid but im really new to this.
thanks for the help ive done a few tutorials and am writing a program where you attack and it makes a number from 20 to 30 to take health off (i wanted to put what ive learnt into something) not...
you does anyone know what is wrong ith this code
#include <stdio.h>
#include <stdlib.h>
i will probably try to make a text based fighty thing like i made with darkbasic where there are combat multiplyers and stuff as a first thing to work towards - any tips. i know your gonna say "start...