After thinking about it at work I reliezed a problem. The clients can't recieve unless they send..so it looks like i am going to need to find a threading tutorial so i can create a recieving thread.
Type: Posts; User: mill1k
After thinking about it at work I reliezed a problem. The clients can't recieve unless they send..so it looks like i am going to need to find a threading tutorial so i can create a recieving thread.
I turns out that it does use a array to store the clients, so I tried a snippet of code that ran through the entire array looking for clients to send to.
for (unsigned int i = 0; i <...
numbytes = recv(clientsocket, (char*)&messagesize, sizeof(messagesize), 0);
that snippet of code is used becasue the client and server can send messages of variable size. And i dont think that the...
Yeah...I know this has been talked about before, but the examples I saw used a diffrent method of storing connected clients, so I failed trying to convert their examples. But basicly I need to find a...
Thank you
Yeah, Hello. I know there alot of getline() post but tehy didnt help me in my problem.
int Save()
{
ifstream fins1("Saves/save1.fss");
ifstream fins2("Saves/save2.fss");
ifstream...
Hey guy, I'm having trouble and i cant explain the error, i can complie fine but if you try feeding your fish or applying for a new job or study/workingout, it wont allow you to quit at the main...
more like this:
case 2:
ofstream fouts2("Saves/save2.txt");
cout<<"\nEnter save name(Less then 10 charcters):";
cin>>save2;
fouts2<<save2<<"\n";
...
Well i keep geting this error:
Jump to case labels
and
crosses initialization of `std::ofstream fouts1'
I have a new problem is it possible to put
ofstream fouts2("Saves/save2.txt"); in a Switch statement
Yeah worked fine for me
That complied fine...whats with the std::cout instead of just cout
The complie seem to be looking in the right directories.
But when i try adding #include <iostream> i get this error: 'cout'...
I jsut got Dev-Cpp 4.9.8.0 and i cant figure out what includes to put in the ones i were using in 4.9.4.1 dont work... I need teh include for cout and cin for ifstream and ofstream and any other...
Ahhh I was using the older version
Im using Dev-C++ and when ever i open a file to write into or read from it creates it the Dev-C++ folder, I want the file to alwasy be in the folder of teh program even if i move it.
I have a simple Simulation program that you can save your status but if a user moves the folder from its origanal location the saves wont follow. Is there a way to set it so the saves always save...