Search:

Type: Posts; User: Salem

Page 1 of 20 1 2 3 4

Search: Search took 0.33 seconds.

  1. Replies
    8
    Views
    132

    Seems familiar.... Please help me with...

    Seems familiar....
    Please help me with understanding this program i had on a quiz today!! : C_Programming
  2. Also here -> Multithreading Programming Problem -...

    Also here -> Multithreading Programming Problem - C++ Forum
  3. Replies
    13
    Views
    313

    Read it again. multi-argument function pointer...

    Read it again.
    multi-argument function pointer and enum

    The function pointer has to have ZERO parameters, no parameters, not void - just empty.
  4. Thread: Data to location

    by Salem
    Replies
    19
    Views
    409

    Sure, go and read the tutorial again (several...

    Sure, go and read the tutorial again (several times).

    This isn't some cake walk.
    Everything is hard work in C.

    Expect to spend a few days getting to grips with this, not a few hours.

    If you...
  5. Thread: Data to location

    by Salem
    Replies
    19
    Views
    409

    Read this -> Beej's Guide to Network Programming...

    Read this -> Beej's Guide to Network Programming
  6. Thread: assign bits

    by Salem
    Replies
    10
    Views
    204

    You asked? You have a compiler sitting in...

    You asked?

    You have a compiler sitting in front of you, and it was a 1 character change to change 0 to 1 and find out.
  7. Thread: assign bits

    by Salem
    Replies
    10
    Views
    204

    So what do you see when you do ...

    So what do you see when you do

    status.widthValidated = 0;
  8. > sizeof(s)/sizeof(s[0]) This only works with...

    > sizeof(s)/sizeof(s[0])
    This only works with real arrays.



    char a[100];
    // sizeof(s)/sizeof(s[0]) will give you 100


    Neither of these will tell you how much memory you have to play with.
  9. Replies
    2
    Views
    124

    Why don't you just do struct tm...

    Why don't you just do


    struct tm file_timestamp = { 0 };


    But normally, I would expect the thing that writes to file_timestamp to return a success/fail status of some sort (which you should...
  10. Replies
    13
    Views
    313

    > 1. How to design a function pointer that can...

    > 1. How to design a function pointer that can deal with various types of functions ?
    In C, the empty parameter list means any parameters, which is the closest you're going to get.

    ...
  11. Your compare function would start something like...

    Your compare function would start something like this.


    int compare(const void * a, const void * b) {
    const struct parabola *pa = a;
    const struct parabola *pb = b;
    double ha, hb; //...
  12. Thread: memcmp ?

    by Salem
    Replies
    6
    Views
    219

    Why don't you start with for ( i = 0 ; i

    Why don't you start with


    for ( i = 0 ; i < HOW_MANY_SENSORS ; i++ ) {
    if ( temp[i] == 0xff ) {
    // something
    }
    }
  13. Short answer - no. Long answer - if you can...

    Short answer - no.

    Long answer - if you can make your OS swallow a blue pill, and somehow intercept the communication between the file system driver and the physical disk, then you can change...
  14. Replies
    1
    Views
    146

    You need to print it to a buffer using sprintf. ...

    You need to print it to a buffer using sprintf.



    char buff[1000];
    sprintf(buff,"curl -k -X PUT https://%s/ProductActions/PowerCycle -O '/tmp/pwrc' 2>&1", naslov);
    system(buff);
  15. If you want to numerically deal with the large...

    If you want to numerically deal with the large numbers, then perhaps The GNU MP Bignum Library
  16. Replies
    2
    Views
    170

    > So basicly my whole program works, if this one...

    > So basicly my whole program works, if this one condition is valid (and i don't understand why)
    Surely not.....



    foo.c:18:9: error: assignment to expression with array type
    new =...
  17. Replies
    1
    Views
    172

    > (I'm not sure the code is correct but there are...

    > (I'm not sure the code is correct but there are no compile time errors)
    Well that would be the first step.

    If the code is actually wrong (but you don't know it yet), then even if you're...
  18. Replies
    4
    Views
    228

    Assemblers are hard wired to their target...

    Assemblers are hard wired to their target processors.

    Sure, there may be a bunch of options for processor variants (-386, -486, -pentium etc).
    But if you're on an ARM machine, then you need an...
  19. Replies
    4
    Views
    228

    The compiler + assembler + linker are usually...

    The compiler + assembler + linker are usually bundled together as a complete toolchain.

    Compiler does foo.c -> foo.s
    Assembler does foo.s -> foo.o
    Linker does foo.o (and all other .o and .lib/.a...
  20. Replies
    6
    Views
    209

    We're not here to just do all of your work on...

    We're not here to just do all of your work on demand.

    You need to study your course notes / books / whatever and try and make a start.
    Sure you'll mess up - that's why it's called learning.

    To...
  21. Replies
    6
    Views
    209

    OK, so what are you stuck on? Do you know what...

    OK, so what are you stuck on?

    Do you know what this means?


    scanf("%d",&choice);
    if ( choice == 1 ) {
    printf("Solver for v=u+at\n");
    }
  22. Replies
    2
    Views
    246

    I guess we all know who you are and what you are...

    I guess we all know who you are and what you are now 'RyanC'
    challenged problem C++ implementation - homework help (preparing for an interview).
  23. Replies
    2
    Views
    246

    So are you here to get help with your programming...

    So are you here to get help with your programming assignment, or to spam 30 minute trash youtube videos?

    > I don't have much experience in C
    Compared to your other recent assignments, this seems...
  24. Where in your original description was there...

    Where in your original description was there mention of the name of the gas?

    > printf("quantity of %lf(moles): ");
    > scanf(" %lf", &Gname);
    A name would be a string, say
    char...
  25. Replies
    1
    Views
    187

    OK, you need - fopen - fgets - strstr Over...

    OK, you need
    - fopen
    - fgets
    - strstr

    Over to you.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4