Thanks anyway. It was a problem with cout.flush(), once I used it the problem went away. Anyway please let me know how I can improve upon the way I ask for help so that next time I don't have to...
Type: Posts; User: jalnewbie
Thanks anyway. It was a problem with cout.flush(), once I used it the problem went away. Anyway please let me know how I can improve upon the way I ask for help so that next time I don't have to...
#include <iostream>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <unistd.h>
#define PUERTO 25500
I have a simple server programm with a while loop like this one
while(recv(sock, &i, sizeof(int), 0) > 0)
{
cnt++;
It's kind of interesting that I've had a hard time testing my classes to make sure its mutator and accesor methods work, quite simply because testing one requires the other and viceversa. I know...
The other part is a good puzzle. I think only an expert could answer for sure, why the computer says 0.7 is greater than the value of a variable initialized by
float a = 0.7;
Could it...
Perhaps the compiler doesn't allow the increment operator to be applied more than once on the same sentence that uses && and ||. Switching x and y results in y having a value of 2 and x of 1 (as...
I will try to passively get involved in a proyect just as you have suggested, before taking the initiative to become actively involved. I need to start getting in touch with advanced programmers...
The thing is, I actually fear getting burned (or plain ignored) by more advanced programmers if I inadvertedly join before time. As I've previously stated, I am no advanced programmer, but at least...
I was about to inquire into how to join an Open Source Proyect that required C++ Developers. I am a newbie and barely beginning to programm in C++, yet I have already read that joining such a...
A pseudorandom number is indeed sufficient for most applications. Nevertheless it is interesting to play with the idea of using a source of enthropy to generate truly random numbers (I read about...
You can change the ISR for the keyboard and know at all times which keys have been altered, there. You can find a tutorial to do that at www.inversereality.org, after doing everything correctly...
I hadn't thought about it like that. I guess you don't have to go as complicated as chaotic signals to produce a random number.
Will it ever be posible to generate truly random numbers? I know that just about every language I've been in contact with (by no means does that mean I am skilled with every one of them) has a...
I'm not sure but I think all variable declarations must come first in the body of the function, hence abc has to be declared before you invoke clrscr()
Whatever you do with strings, the nice thing is they are still just arrays terminated with a null character, strlen allows you to know the size of the string and position of the null character, so...
I used to get really frustrated with scanf because the formatting it provides is nice, but when used with getch (posibly for some flow control), it is hectic, and as a beginner I am still slow to...
I guess your program will be largely affected by how advanced the mathematics that you use are. Using derivatives you can find out wether a function's value is increasing or decreasing (any...
Thanks a lot for the information. From now on I'll be a lot more careful with details that are never apparent in the code itself. There's obviously still loads I have to learn about how to work...
I have run a 16 bit program using the Borland C++ 3.1 compiler. The program is supposed to replace the ISR for the system timer, without changing its frequency, the function I replaced it with is...