Search:

Type: Posts; User: (Slith++)

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thanks abachler, on reviewing the file handling...

    Thanks abachler, on reviewing the file handling code, there was a potential bug but that wasn't causing the issue in this case.

    The problem Salem said (which is obvious now). Assuming the buffer...
  2. File send app - md5 checksum different when load is put on server.

    I have written a application using Winsocks and TCP which sends a file across the network.

    After the transfer is complete I check the file integrity using a MD5 checksum. Here are the results.
    ...
  3. Replies
    4
    Views
    2,357

    2 Things. 1 - If its an action game you are...

    2 Things.

    1 - If its an action game you are going to want to use UDP rather than TCP (read the guide
    Salem suggested)

    2 - No, you shouldn’t use WinSock if you want your game to be 100%...
  4. Replies
    3
    Views
    1,031

    Netbeans has code folding for c++/c with the...

    Netbeans has code folding for c++/c with the c++/c plugin.

    As well as allot of other things dev++ is missing.
  5. Replies
    6
    Views
    1,622

    Excellent thanks! I was planning on resizing...

    Excellent thanks!

    I was planning on resizing the packet size dynamically depending on what type of through put the transfer is getting.

    Say the transfer is going at 52k/s pack size can be...
  6. Replies
    6
    Views
    1,622

    Yeap I was receiving multiple times. All is fine...

    Yeap I was receiving multiple times. All is fine now.

    So what you’re saying is try to receive as much data as the buffer allows and to make a big buffer?

    How much data should I be send()’ing ...
  7. Replies
    6
    Views
    1,622

    Actually... Reading it twice would explain...

    Actually... Reading it twice would explain allot....

    Ill check it out tommorow
  8. Replies
    6
    Views
    1,622

    Newbie sockets question/problem

    Im having trouble understanding what/why the following is happening

    The server sends the following 6 bytes data to the client.

    Send - Server

    //Send - Server

    int RetVal;
    char pd[6];...
  9. Replies
    4
    Views
    1,572

    Im pretty sure this is what is wrong also. What...

    Im pretty sure this is what is wrong also. What do I have to put in my Charactor constructor?
  10. Replies
    4
    Views
    1,572

    Segmentation fault

    I cant figure out why this seg faults's.

    Main.cpp


    Charactor *ch = new Charactor();


    int main(int argc, char** argv) {
    ch->addAnimation("WalkRight",sp);
  11. It does help, although in Java I have already...

    It does help, although in Java I have already written a algorithm to rotate a 2d array and would rather use that than pre-calculated rotations.

    I guess each class such as LShape could have its...
  12. Need to pass a pointer of a unknown sized 2d array

    Ok, so I've read allot about this problem but still cant figure it out.

    Basically Im making a Tetris game, I have a function 'getRandomPiece()' which I would like to return a random Tetris piece...
  13. Replies
    2
    Views
    1,019

    Stuck on 'undefined reference '

    This should be easy to fix but im in the dark.

    LineCounter.h


    #ifndef LINE_COUNTER_H
    #define LINE_COUNTER_H

    class LineCounter{
    private:
  14. Replies
    15
    Views
    2,130

    Course.h #ifndef COURSE_H #define COURSE_H...

    Course.h


    #ifndef COURSE_H
    #define COURSE_H

    #include <iostream>
    #include <string>
    #include <vector>
    using namespace std;
  15. Replies
    15
    Views
    2,130

    Sorry, typo. Yes I thought I needed the 'new'...

    Sorry, typo.

    Yes I thought I needed the 'new' keyword.
    I guess I dont understand pointers then... Or maybe Im mixed up in this whole 'new' keyword thing.

    If this is what you meant...
    ...
  16. Replies
    15
    Views
    2,130

    I needed if new. But if I dont need new...

    I needed if new. But if I dont need new...
  17. Replies
    15
    Views
    2,130

    Ahh never mind... I found it I think I had ...

    Ahh never mind... I found it I think

    I had



    #ifndef STUDENT_H
    #define STUDENT_H
  18. Replies
    15
    Views
    2,130

    Im not sure if it means anything but class's...

    Im not sure if it means anything but class's compile fine on their own.



    That actually works. But now when I do..


    #include <iostream>
    #include <string.h>
    #include "Student.h"
  19. Replies
    15
    Views
    2,130

    Cant understand weired problem...

    This compiles fine


    #include <iostream>
    #include <string.h>
    //#include "Course.h"
    #include "Student.h"
    using namespace std;

    Student *sa[3];
  20. Replies
    3
    Views
    858

    I swear I tryed that. Ohh well works now. ...

    I swear I tryed that. Ohh well works now.

    Thanks very much
  21. Replies
    3
    Views
    858

    Arrays of objects

    How can I do the following?



    Student *sa[3];

    *sa[0] = new Student("James");
    *sa[1] = new Student("Jason");
    *sa[2] = new Student("Frank");
  22. Replies
    24
    Views
    5,996

    I agree, we have all spent more time programming...

    I agree, we have all spent more time programming than reading about it.

    But how much programming would we have done with out reading?
  23. Replies
    24
    Views
    5,996

    Im using the C++ for dummies book now to learn...

    Im using the C++ for dummies book now to learn (first edition). Its seriously old but was the best choice at my uni library as they think they should only ever buy new books for new languages (JAVA...
  24. Replies
    13
    Views
    1,784

    Ahh right you are... My Java comming back...

    Ahh right you are...

    My Java comming back again

    *Edit*

    Thanks every one it compiles and runs. Although Im not to sure what the header files for yet. But ill read up.

    Thanks again
  25. Replies
    13
    Views
    1,784

    God this is so confusing why didnt my book cover...

    God this is so confusing why didnt my book cover this? Grrr

    Ok let me get this straight....

    A function prototype is this?

    void withdrawal(float amount);
    And how do I say its public?...
Results 1 to 25 of 40
Page 1 of 2 1 2