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...
Type: Posts; User: (Slith++)
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...
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.
...
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%...
Netbeans has code folding for c++/c with the c++/c plugin.
As well as allot of other things dev++ is missing.
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...
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 ...
Actually... Reading it twice would explain allot....
Ill check it out tommorow
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];...
Im pretty sure this is what is wrong also. What do I have to put in my Charactor constructor?
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);
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...
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...
This should be easy to fix but im in the dark.
LineCounter.h
#ifndef LINE_COUNTER_H
#define LINE_COUNTER_H
class LineCounter{
private:
Course.h
#ifndef COURSE_H
#define COURSE_H
#include <iostream>
#include <string>
#include <vector>
using namespace std;
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...
...
I needed if new. But if I dont need new...
Ahh never mind... I found it I think
I had
#ifndef STUDENT_H
#define STUDENT_H
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"
This compiles fine
#include <iostream>
#include <string.h>
//#include "Course.h"
#include "Student.h"
using namespace std;
Student *sa[3];
I swear I tryed that. Ohh well works now.
Thanks very much
How can I do the following?
Student *sa[3];
*sa[0] = new Student("James");
*sa[1] = new Student("Jason");
*sa[2] = new Student("Frank");
I agree, we have all spent more time programming than reading about it.
But how much programming would we have done with out reading?
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...
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
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?...