Search:

Type: Posts; User: Salem

Page 1 of 20 1 2 3 4

Search: Search took 0.19 seconds.

  1. Replies
    1
    Views
    62

    Well for small one-off functions, the simplest is...

    Well for small one-off functions, the simplest is to just copy the code - providing the licence terms are something you can agree to.

    If you only have /sbin/rarp, then you're stuck with just...
  2. Replies
    3
    Views
    130

    > I suck at programming and i rlly need help as...

    > I suck at programming and i rlly need help as it's due in a week's time
    You have plenty of time then to practice a few things, do some reading, post code attempts, get feedback etc etc.

    A...
  3. bank management system.c ...

    bank management system.c
    Get your money back, and stop trying to copy/paste your way to knowledge.
  4. Replies
    5
    Views
    177

    while ( 1 ) { if (kbhit) { what =...

    while ( 1 ) {
    if (kbhit) {
    what = getche();
    }
    switch(what)
    {
    case '1': writeBill(); break;
    case '2': retrieve(); break;
    // . . . .
    ...
  5. Replies
    1
    Views
    140

    Accessing command line parameters/arguments...

    Accessing command line parameters/arguments
    So for example, you could type
    myprog ./input/images/*.bmp ./output

    Or you could just specify the names of your input and output directories, and use...
  6. Replies
    15
    Views
    358

    Well since you have things like "Money...

    Well since you have things like "Money Heist,8,4,Y" in the 2nd file, you can't decide what to write until you have read both files into memory.

    Some ideas for you to think about.


    typedef...
  7. Replies
    1
    Views
    128

    Well there is enough info in your previous thread...

    Well there is enough info in your previous thread to at least have a go at some code.
    Problems with Reading and copying string from txt to console
  8. Replies
    15
    Views
    358

    Tell us more about the format of your two input...

    Tell us more about the format of your two input files.
  9. Replies
    72
    Views
    827

    > Just occurred to me a brilliant way to grab...

    > Just occurred to me a brilliant way to grab random values,
    You sound like a noob who just "discovered" bubble sorting and thinks it's the most awesome thing they've ever seen.

    > I've tested a...
  10. Replies
    15
    Views
    358

    Are your two input files line for line identical...

    Are your two input files line for line identical as far as the names go?
    Eg.


    Big Little Lies,355,7,Y
    Riverdale,401,1,N
    The X-Files,402,3,Y
    Dark,444,2,Y

    Big Little Lies,55,7,N
  11. Replies
    1
    Views
    143

    First, you should print your requirements out (on...

    First, you should print your requirements out (on paper), with decent paragraph and sentence breaks (not a wall of text like you posted).

    Give yourself room to add information on the page, like...
  12. Replies
    8
    Views
    229

    > int i; > for (int i = N-1; i >= 0;...

    > int i;
    > for (int i = N-1; i >= 0; i--)
    There's no point having the first declaration of i.

    > printf("\n read address %p \n ", (p + N-1));
    Try
    printf("\n read address %p \n ", (p...
  13. Replies
    8
    Views
    229

    Looks better. Now just complete the code for...

    Looks better.

    Now just complete the code for the comments.
  14. > if (array_to_be_sorted[i] >...

    > if (array_to_be_sorted[i] > array_to_be_sorted[i + 1])
    Well it seems like this would be an out of bound access once you hit the end of the vector.

    Also, pass the vector as a reference rather...
  15. Replies
    8
    Views
    229

    Well you should change your data type from 'int'...

    Well you should change your data type from 'int' to 'unsigned char' to begin with.
  16. Replies
    2
    Views
    143

    > I am trying to know like , when will x be...

    > I am trying to know like , when will x be incremented and y will be incremented and on what basis.
    That code is undefined.
    There is nothing to know, except to know that is not how you use those...
  17. Replies
    5
    Views
    171

    Please pay attention to posting code. Don't...

    Please pay attention to posting code.
    Don't include all the HTML nonsense from your IDE.
    Use copy-as-text and/or paste-as-text.
  18. Replies
    5
    Views
    171

    You didn't post image2matrix. >...

    You didn't post image2matrix.

    > printf("Height: %d ; Width: %d ; Channels: %d\n", width, height, channels);
    What do you get printed for channels?

    3 maybe, one for each of R,G,B

    > unsigned...
  19. Did you follow this?

    Did you follow this?
  20. Replies
    2
    Views
    168

    Something like for ( i = 0 ; i < 8 ; i++ ) {...

    Something like


    for ( i = 0 ; i < 8 ; i++ ) {
    send(buffer[i] & 0xF); // lower 4 bits
    send((buffer[i]>>4) & 0xF); // upper 4 bits
    }
  21. What about this? GSL - GNU Scientific Library -...

    What about this?
    GSL - GNU Scientific Library - GNU Project - Free Software Foundation
  22. Thread: empty queue

    by Salem
    Replies
    5
    Views
    201

    Well it might be an idea to implement say ...

    Well it might be an idea to implement say


    void print_queue(struct Queue *q) {
    }


    Then in your main, say
  23. Thread: empty queue

    by Salem
    Replies
    5
    Views
    201

    Did you bother to test it? What tests have you...

    Did you bother to test it?

    What tests have you done?
  24. Thread: empty queue

    by Salem
    Replies
    5
    Views
    201

    Looks good.

    Looks good.
  25. Replies
    3
    Views
    172

    A better compiler would point you in the right...

    A better compiler would point you in the right direction.


    $ gcc -Wall foo.c
    foo.c: In function ‘main’:
    foo.c:13:22: warning: missing braces around initializer [-Wmissing-braces]
    struct s...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4