Search:

Type: Posts; User: chris285

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,768

    ok i have had a look and attempted to impliment...

    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;...
  2. Replies
    3
    Views
    1,768

    collision dectection in 2d

    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

    ...
  3. Replies
    1
    Views
    1,486

    out of bounds problem

    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...
  4. Replies
    4
    Views
    1,564

    ok header file for the function class //...

    ok header file for the function class


    // Cfunctions.h: interface for the functions class.
    //
    //////////////////////////////////////////////////////////////////////

    #if...
  5. Replies
    4
    Views
    1,564

    looping problem

    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...
  6. Replies
    2
    Views
    866

    its the only way i know how to use strings ...

    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
  7. Replies
    2
    Views
    866

    buffer searching problem

    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...
  8. Replies
    7
    Views
    950

    ok the buffer now works, but i need it to read 1...

    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
  9. Replies
    7
    Views
    950

    if i change the buffer its just staggers the...

    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?
  10. Replies
    7
    Views
    950

    how can i get it to only read in 45 characters at...

    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?
  11. Replies
    7
    Views
    950

    searching problem

    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...
  12. Replies
    7
    Views
    1,154

    ok this is the flights header file //...

    ok this is the flights header file


    // flights.h: interface for the Cflights class.
    //
    //////////////////////////////////////////////////////////////////////

    #if...
  13. Replies
    7
    Views
    1,154

    declaration problem

    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...
  14. Replies
    6
    Views
    1,066

    having a problem with reading the file into the...

    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...
  15. Replies
    6
    Views
    1,066

    file searching tutorial

    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...
  16. Replies
    5
    Views
    1,211

    cheers mate, problem sorted :D

    cheers mate, problem sorted :D
  17. Replies
    5
    Views
    1,211

    well i have a text file which contains flight...

    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 ...
  18. Replies
    5
    Views
    1,211

    file reading problem

    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>...
  19. dosen't matter, problem sorted now :D

    dosen't matter, problem sorted now :D
  20. weird problem with code, not displaying what it should

    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...
  21. Replies
    5
    Views
    1,858

    can u reccomend any good places to go for for...

    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 :(
  22. Replies
    5
    Views
    1,858

    i have figured the problem is that i don't get...

    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?
  23. Replies
    5
    Views
    1,858

    ok got it to kinda work now, but i can't get the...

    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...
  24. Replies
    5
    Views
    1,858

    receiving problems in network chat client

    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...
  25. Replies
    6
    Views
    1,508

    i have included all the header files i need in...

    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
Results 1 to 25 of 84
Page 1 of 4 1 2 3 4