Search:

Type: Posts; User: sulfur93

Search: Search took 0.00 seconds.

  1. Firstly, I want to say that bool...

    Firstly, I want to say that

    bool SetOutput(unsigned inta, unsigned intb, unsigned intc){
    bool result;

    if(b < a) // If Temp < Setpoint
    {
    result =...
  2. Thread: pointers.

    by sulfur93
    Replies
    3
    Views
    1,357

    Actually you'r doing it right but there is one...

    Actually you'r doing it right but there is one simple thing


    printf("%c", (str+3)*);

    need to be


    printf("%c", *(str+3));
  3. Thread: Structs help

    by sulfur93
    Replies
    6
    Views
    4,796

    by the way I forgot that struct enemy{ ...

    by the way I forgot that


    struct enemy{
    int health;
    int damage;}enemy;
  4. Thread: Structs help

    by sulfur93
    Replies
    6
    Views
    4,796

    It can be like that struct enemy { int...

    It can be like that


    struct enemy { int health;
    int damage;

    }

    and then
  5. Replies
    18
    Views
    1,361

    I have a question about the code. Can any int...

    I have a question about the code. Can any int function return two values like

    else if(trvl_method)
    {
    speed=100;
    }
    return trvl_method;
    return...
  6. Replies
    7
    Views
    2,338

    It looks like it's correct I think but maybe you...

    It looks like it's correct I think but maybe you need to change

    pi [i] = &item[i]; to
    pi [i] = item[i]; to don't get warning. It will be work fine but it can give you a warning message.
  7. There are 1 main mistake in this code that I...

    There are 1 main mistake in this code that I found.

    This code looks like stucks in the infinite loop, because program is always running. Then when I search the loops that you create then I found...
  8. Replies
    4
    Views
    655

    This code line looks wrong you may need to change...

    This code line looks wrong you may need to change it.


    scanf("%s",&*in);

    in is already your pointer it points an address so you do not need to put adress operator(&) before in.

    ...
  9. Replies
    8
    Views
    639

    I think it would be like that int i=0;...

    I think it would be like that



    int i=0;
    scanf("%d",&n);
    while(i != 2){
    foo(n);
    printf("n=%d\n",n);
    scanf("%d",&n);
  10. Replies
    1
    Views
    809

    You can use flag algorithms instead of wait.With...

    You can use flag algorithms instead of wait.With these type algorithms program need to wait result until the flag is 1 and flag will be 1 after the process done. I hope it helps to you.


    For...
Results 1 to 10 of 10