Search:

Type: Posts; User: Salem

Page 1 of 20 1 2 3 4

Search: Search took 0.21 seconds.

  1. Replies
    1
    Views
    50

    You can replace the inner while loop with...

    You can replace the inner while loop with suitable application of / and %
  2. > Space is important? In printf and scanf format...

    > Space is important?
    In printf and scanf format strings it is.
  3. Well it seems to me that your attempt to read the...

    Well it seems to me that your attempt to read the "last name initial" failed, because you used "%c" as the format.

    Try instead a leading space in the format.


    char initial;
    printf("Enter...
  4. No it doesn't. Different how? Different...

    No it doesn't.

    Different how?
    Different position on screen - well, that's windows for you.
    Different contents - well, that's your program.
    Different termination message - maybe your program, if...
  5. Replies
    1
    Views
    79

    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...
  6. Replies
    3
    Views
    149

    > 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...
  7. bank management system.c ...

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

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

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

    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...
  10. Replies
    15
    Views
    367

    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...
  11. Replies
    1
    Views
    131

    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
  12. Replies
    15
    Views
    367

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

    Tell us more about the format of your two input files.
  13. Replies
    72
    Views
    843

    > 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...
  14. Replies
    15
    Views
    367

    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
  15. Replies
    1
    Views
    146

    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...
  16. Replies
    8
    Views
    230

    > 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...
  17. Replies
    8
    Views
    230

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

    Looks better.

    Now just complete the code for the comments.
  18. > 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...
  19. Replies
    8
    Views
    230

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

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

    > 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...
  21. Replies
    5
    Views
    172

    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.
  22. Replies
    5
    Views
    172

    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...
  23. Did you follow this?

    Did you follow this?
  24. Replies
    2
    Views
    169

    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
    }
  25. What about this? GSL - GNU Scientific Library -...

    What about this?
    GSL - GNU Scientific Library - GNU Project - Free Software Foundation
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4