Search:

Type: Posts; User: hawaiian robots

Search: Search took 0.00 seconds.

  1. Replies
    9
    Views
    11,001

    Sorry, I'm not aware of any asynchronous method...

    Sorry, I'm not aware of any asynchronous method to get the current key state on QT.
  2. Replies
    9
    Views
    2,247

    Your not explaining the pattern... all your doing...

    Your not explaining the pattern... all your doing is showing us a bunch of numbers...

    Explain, using words, what the pattern is, then perhaps we can help.
  3. Replies
    9
    Views
    11,001

    I assume you are talking about GUI programming? ...

    I assume you are talking about GUI programming?

    This really depends on the platform you are running on. If you are programming a win32 application, inside the windowproc function you will provide...
  4. Replies
    3
    Views
    2,366

    You have the right idea. The only problem here is...

    You have the right idea. The only problem here is a small logic error. Should you be using "g" as the subscript? Perhaps "f" would be the more logical choice.
  5. Replies
    6
    Views
    850

    A simple ascii table look up will suffice. The...

    A simple ascii table look up will suffice. The character 'a' starts at 97 on the table. Just add that number to each of the element indexes and voila. Also a typecast will be in order to display it...
  6. Replies
    5
    Views
    1,557

    A simple example: Here we have a function that...

    A simple example:

    Here we have a function that allocates memory to an integer pointer and assigns a value to it. However we aren't returning the pointer or doing anything else with it. A memory...
  7. Replies
    4
    Views
    3,236

    That error means the file doesn't exist. Check...

    That error means the file doesn't exist. Check that the file is in the same directory and actually named "MST.h". Also remember that it is case sensitive.
  8. Or perhaps something like this? FILE*...

    Or perhaps something like this?



    FILE* debug;

    if (DEBUG)
    debug = fopen("/dev/null", "w");
    else
    debug = stderr; /* or stdout */
  9. Replies
    128
    Views
    19,402

    Troll. Troll. Troll. Troll. Troll. Troll. Troll....

    Troll. Troll. Troll. Troll. Troll. Troll. Troll. Troll. Troll. Troll. Troll. Troll. Troll. Troll. Troll. Troll. Troll. Troll. Troll. Troll. Troll. Troll. Troll. Troll. Troll. Troll. Troll. Troll....
  10. Replies
    128
    Views
    19,402

    Funny how he simply overlooked that post...

    Funny how he simply overlooked that post...
  11. Replies
    128
    Views
    19,402

    I'm quite curious to see the ANSI C compliant...

    I'm quite curious to see the ANSI C compliant code that is able to produce a factorial solution to n=100 (or higher) in a 32bit system.
  12. Replies
    5
    Views
    1,511

    Thanks. This was the first time using bsearch, I...

    Thanks. This was the first time using bsearch, I should of done more research.

    I was under the assumption that the data passed in the second argument was the data that was being passed as both...
  13. Replies
    5
    Views
    1,511

    No. sid is an unsigned int that i'm searching for...

    No. sid is an unsigned int that i'm searching for in the dest character array (which is 50 * pageSize long where pageSize is one of 100, 1000, or 10000). I didn't use qsort as we were not permitted...
  14. Replies
    5
    Views
    1,511

    Disregard this. I was tired of trying to debug it...

    Disregard this. I was tired of trying to debug it so I just whipped up my own binary search.
  15. Replies
    5
    Views
    1,511

    bsearch problem

    Here's what I'm trying to do. I have a char pointer that contains a pagefile size of records in it that I've read from disk. This file is a binary file. From this I am trying to bsearch the pointer....
  16. Replies
    7
    Views
    2,504

    Yeah I figured as much while researching it....

    Yeah I figured as much while researching it. Anyway, thanks for your help.
  17. Replies
    7
    Views
    2,504

    So you know using fseek I verified that the file...

    So you know using fseek I verified that the file size is indeed a lot larger then the amount of data read in.



    fseek(myFile, 0, SEEK_END);
    printf("File Size: %d\n", ftell(myFile));


    This...
  18. Replies
    7
    Views
    2,504

    Its indeed reaching an EOF character, however...

    Its indeed reaching an EOF character, however that is not the actual end of the file. Its only about 1/2 through the file. It doesn't print out the value in the loop, so I printed it out after the...
  19. Replies
    7
    Views
    2,504

    I'm using stdin because its a requirement of the...

    I'm using stdin because its a requirement of the assignment. I started using the return value from fgets itself but it always stops at the same spot.

    Can you recommend an alternative to fgets? I...
  20. Replies
    7
    Views
    2,504

    Reading issue, mixed text file

    I am reading in a 2mb mixed file (i.e. contains CFLF and LF) and non-standard characters. Now, at the start of the program the file is redirected into stdin from the command prompt. The problem is...
  21. Replies
    7
    Views
    19,435

    Haha I know what you mean. TBH I don't like the...

    Haha I know what you mean. TBH I don't like the fact that we are asked to redirect a file through stdin at the start of the program. The question I'm really asking is how to check to see if the user...
  22. Replies
    7
    Views
    19,435

    Checking stdin for input

    I have an assignment where I have to redirect input from a file through stdin when the program starts.

    its executed like this:

    ./program < textfile

    The question is, I want to be able see if...
  23. Replies
    4
    Views
    1,784

    void process() { int i; for (i = 0;...

    void process()
    {
    int i;
    for (i = 0; i<10; i++)
    printf("Your name is %s\n",name);
    }


    Okay, so what did I do here? First of all you shouldn't be checking the name variable...
Results 1 to 23 of 23