Search:

Type: Posts; User: jalnewbie

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,903

    Thanks anyway. It was a problem with...

    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...
  2. Replies
    5
    Views
    1,903

    #include #include ...

    #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
  3. Replies
    5
    Views
    1,903

    problems with TCP/IP programming

    I have a simple server programm with a while loop like this one





    while(recv(sock, &i, sizeof(int), 0) > 0)
    {
    cnt++;
  4. Replies
    1
    Views
    3,636

    How to test accesors and mutators?

    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...
  5. as for the other part...

    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...
  6. I see no apparent mistake.

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

    Thanks a lot

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

    Thanks, but how do I know when to make the jump?

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

    How do I know if I should join a proyect?

    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...
  10. Replies
    7
    Views
    1,585

    I agree the scope of the app determines the randomness

    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...
  11. Replies
    4
    Views
    5,001

    You can change the ISR for the keyboard and know...

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

    excellent point

    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.
  13. Replies
    7
    Views
    1,585

    Will we ever have truly random numbers?

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

    I'm not sure but I think all variable...

    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()
  15. Whatever you do with strings, the nice thing is...

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

    I too had the same problem

    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...
  17. Replies
    29
    Views
    2,565

    keep in mind the underlying mathematics

    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...
  18. I ought to be more careful with interrupts

    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...
  19. Can't pin down bug related to timer interrupt handler.

    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...
Results 1 to 19 of 19