Search:

Type: Posts; User: boblettoj99

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,780

    Aha, CommonTater! Though revealed in a rather...

    Aha, CommonTater!
    Though revealed in a rather condescending manner that is the keyword I needed! Thanks!

    Seems I can do this in Java, saves me messing around with windowing toolkits :D
  2. Replies
    4
    Views
    1,780

    Hmm

    If I understand you correctly, you mean I should make some full screen application and just duplicate the monitor to the projector?
    I'd rather it not print to monitor as well as I'd like to push...
  3. Replies
    4
    Views
    1,780

    Programming and projectors...

    Hi, I recently bought a pico projector and would like to use C to display images (perhaps a slideshow) with it.

    What is the best way to go about this? I'm using ubuntu 11.04 and the projector...
  4. Replies
    8
    Views
    13,422

    Aha, that made a big difference, it seems to...

    Aha, that made a big difference, it seems to actually be sending cos i'm getting a reply!
    Hoorayyyyy...now to sort out the segfault in the receive function...fun times :D
  5. Replies
    8
    Views
    13,422

    It gives me the size of the string length held in...

    It gives me the size of the string length held in pkt->data, should it be something different?

    EDIT: I've modified the print out so it gives all the header values, here is some output (ping is the...
  6. Replies
    8
    Views
    13,422

    typedef struct { HEADER header; // the...

    typedef struct
    {
    HEADER header; // the packet header (described above)
    char data[MAX_DATA]; // the contents of the packet
    } PACKET;

    The code is prewritten, my job is merely to fill...
  7. Replies
    8
    Views
    13,422

    Sending/Receiving packets over socket

    Hi, I have an assignment to do (groan) which requires me to write the client side of a network, in the first part I have to write 3 functions, one which sets up a socket and connects to the server,...
  8. Replies
    7
    Views
    2,283

    Hmm, is there a way to print to a string? like...

    Hmm, is there a way to print to a string? like this?:

    fprintf(myChar, "%.8lX", myLong);

    that would make the conversion process a lot easier..

    OH WAIT SPRINTF :D:D:D
  9. Replies
    7
    Views
    2,283

    Its meant to be an array of strings, so a...

    Its meant to be an array of strings, so a char[][] right?
    Also i have another problem, under gcc in windows this compiles fine but under gcc in linux i get an error: undefined reference to 'ltoa'
    ...
  10. Replies
    7
    Views
    2,283

    Hmm, i've tried char s[10] instead but that gives...

    Hmm, i've tried char s[10] instead but that gives me an incompatible types error at compile. Should i be doing calloc or malloc or something?

    Ah, getting rid of the "s = " part at the beginning of...
  11. Replies
    7
    Views
    2,283

    ltoa causing seg fault!

    Hi, i am trying to convert a long integer to a string in hex format, here is what i have at the moment:


    Parameters *executeInstruction(Parameters *params, char memory[8192][9], long opr, long...
  12. Replies
    8
    Views
    3,529

    Alright, well then how do i get a function to...

    Alright, well then how do i get a function to work with 24bits instead of 32?
  13. Replies
    8
    Views
    3,529

    Convert string to signed hex

    Hi, as part of my program i have to read in 6 digit (24bit) hex values as strings and then convert them. This works fine with the strtol function until i hit values where the most significant digit...
  14. Replies
    11
    Views
    2,884

    So then how do i get the pointer in the main...

    So then how do i get the pointer in the main function to keep what is assigned in the other one? Perhaps what i wrote there was a bad example, what i do in my program is loop through the array,...
  15. Replies
    11
    Views
    2,884

    Returning char arrays...ugh

    Ok, whenever i do any C i always seem to get stuck at this point:
    I want to return a char array from a function to be used in main, like so:


    char *editString(char *someString, char...
  16. Replies
    5
    Views
    1,087

    Hahahaha massive fail, good spot though! thats...

    Hahahaha massive fail, good spot though!
    thats got everything working great!

    thankyouuuu
  17. Replies
    5
    Views
    1,087

    I declared denominator at the top but there was...

    I declared denominator at the top but there was no change, when compiled with warnings i get one saying:
    27 : warning: int format, double arg (arg 5)
    27 : warning: too few arguments for format...
  18. Replies
    5
    Views
    1,087

    Strange function problem!

    Hi, whilst trying to pass 2 floats into a function outside of main the values printed are different from what they are in main. Integers also passed into the function remain fine....




    int...
  19. Replies
    2
    Views
    903

    Ha magical! ta very much

    Ha magical!
    ta very much
  20. Replies
    2
    Views
    903

    Trouble dividing!

    I am trying to divide 1 by an integer n (which in this case is 12), and then store it in a double. When i print it out it always comes out as 0!

    Here is the code:



    double a = 1/n ;...
  21. Replies
    3
    Views
    4,924

    Thank you, calloc made it all better! Now i have...

    Thank you, calloc made it all better! Now i have a slightly more annoying problem:
    I have started making a real hash function now, instead of just returning 0 it now adds up each character in the...
  22. Replies
    3
    Views
    4,924

    Help understanding Hash Table

    Hi, i am having trouble understanding the implementation of a hash table. I've been on quite a few links off google and still can't get my head round it!
    My project needs to store all the words from...
  23. Replies
    7
    Views
    2,564

    Ah, turns out the capitalising of the letters has...

    Ah, turns out the capitalising of the letters has worked but not the elimination of special characters, great!
    Just a problem with that function then, thanks for the help guys!
  24. Replies
    7
    Views
    2,564

    This is what i tried at first, having the...

    This is what i tried at first, having the function return nothing and just calling format(word), but it doesn't have any effect for some reason, the next line of the program inserts 'word' into a...
  25. Replies
    7
    Views
    2,564

    The error falls on the next line, (word =...

    The error falls on the next line, (word = format(word))
    The fscanf(f, "%s", &word) has been working fine the whole time!

    thanks for the reply!
Results 1 to 25 of 30
Page 1 of 2 1 2