ok i have had a look and attempted to impliment it, but no joy so far i'm not sure if its the maths that isn't working or not
void checkPlayerCollision()
{
int playerradius;
int puckradius;...
Type: Posts; User: chris285
ok i have had a look and attempted to impliment it, but no joy so far i'm not sure if its the maths that isn't working or not
void checkPlayerCollision()
{
int playerradius;
int puckradius;...
can anyone help with an air hockey game i am creating in c++, i need to figure out what do do after the code has detected a collision
but i can't seem to find any good sources on it at all
...
i am using the sdl libary to create an air hockey game, and i wish to check when the paddle is out of bounds. the paddle is its own class, when the code is tested so when it goes it goes out of...
ok header file for the function class
// Cfunctions.h: interface for the functions class.
//
//////////////////////////////////////////////////////////////////////
#if...
ok i think i have a problem with my loop in a function. i am reading a file to it and i need it to check to see if the buffer is equal to the user input, and if not go to the next line and do the...
its the only way i know how to use strings
problem i have is it dosen't move forward and therfore seek properly, and outputting what it should
ok i have tried to get the following piece of code to go from 1 line of char's in a buffer to the next, check to see if the first 6 lines match and if so print out the line
however i am don't know...
ok the buffer now works, but i need it to read 1 line of characters into the buffer at a time
i need to search for a flight number, and output only the line that it appears on
if i change the buffer its just staggers the output, and still displays the entire file
how can i get it to stop at a '#' symbol which is my end of line?
how can i get it to only read in 45 characters at a time, or 1 line of the file anyway
and it should search through the file until it finds the right line, and then print the line out
any ideas?
ok i want to read a file into a buffer a line at a time, but atm the moment it reads the whole file and i am not sure how to sort this out
// Cfunctions.cpp: implementation of the functions...
ok this is the flights header file
// flights.h: interface for the Cflights class.
//
//////////////////////////////////////////////////////////////////////
#if...
ok i have a program which has a set of array's for flights, and a function that runs at the start of the problem to fill the array
anyway i want a print all flights option, and i have tried...
having a problem with reading the file into the buffer and it displaying it, this is what i have so far
int Cfunctions::Flightdetails()
{
cout << "Please enter flight number" << endl;
cin...
anyone know a good tutorial for searching a file, its a text fle and i need to search for aspects of the file. its a flight database and i need to search for flight numbers, routes and flight times...
cheers mate, problem sorted :D
well i have a text file which contains flight details, as follows
SQ0327~10:02 ~06:29 ~Manchester ~Singapore#
SQ0198~18:55 ~19:55 ~Singapore ~Penang#
SQ0191~10:35 ~11:42 ~Penang ...
i have a file i am reading from, however it only prints part of the code and it appears to be a buffer problem. can anyone help?
#include <iostream>
#include <windows.h>
#include <fstream.h>...
dosen't matter, problem sorted now :D
ok doing a chat client, and i am having a problem with the receive part of my client. what i receive from the server won't display on the screen, and i can't work out why
for (;;)
{
cin...
can u reccomend any good places to go for for articles or tutorials on it at all?
edit - just found out my receive function dosen't work until i send either, so looks like i gotta re-write em :(
i have figured the problem is that i don't get the full message printed out from the buffer, not sure if its reading too fast or what
any ideas at all?
ok got it to kinda work now, but i can't get the buffer to empty after it prints out the message so i end up with a load of crap printed out
for (;;)
{
gets(sendBuffer); //takes...
i am coding a network chat client, an di am having trouble with the receive part.
i'm not sure how to get whats received and print it out onto the screen, i think i have to get whats received and...
i have included all the header files i need in the main, and the .lib files i need
i can't see any i have missed