Search:

Type: Posts; User: anaer0bic

Search: Search took 0.01 seconds.

  1. Replies
    14
    Views
    15,561

    So this works with the while statement commented...

    So this works with the while statement commented out. Whats wrong with the while?

    #include <stdio.h>
    int main()
    {
    int input_v,hour,min,sec;

    printf("input total seconds\n");
    scanf("%d",...
  2. Replies
    14
    Views
    15,561

    cheers tabstop

    cheers tabstop
  3. Replies
    14
    Views
    15,561

    Yes.true & it was working for me when I was just...

    Yes.true & it was working for me when I was just doing minutes & seconds, but when I included hours it didn't.like so

    #include <stdio.h>

    int main()
    {
    int input_v,hour,min,sec;
    ...
  4. Replies
    14
    Views
    15,561

    explain please? I thought 3600/60= 60.

    explain please? I thought 3600/60= 60.
  5. Replies
    14
    Views
    15,561

    hour,minutes & seconds

    Hi. Whats wrong here?

    hour = total_sec /3600;
    min = total_sec % 60;
    sec = min % 60;
  6. Replies
    4
    Views
    3,008

    check this library FMOD - Debian Wiki...

    check this library FMOD - Debian Wiki
  7. Replies
    25
    Views
    3,562

    priceless

    priceless
  8. Replies
    5
    Views
    6,633

    thanks. got that now

    thanks. got that now
  9. Replies
    5
    Views
    6,633

    so i tried Still incorrect answer..Is it...

    so i tried


    Still incorrect answer..Is it something to do with reading a string and omitting end of line character?
  10. Replies
    5
    Views
    6,633

    convert alphabet to integers

    hi I'm wanting to convert alphabet to numbers as in a == 1, b == 2. Instead I get asci, so i want to subtract 96. like so:

    #include<stdio.h>
    #include<ctype.h>

    #define MAXSTRING 100

    int...
  11. Replies
    4
    Views
    1,210

    Changed to check correct date is entered. The...

    Changed to check correct date is entered. The maths is ok I've checked that , as it's for the size growth of an apple. The issue is with date, reference to it in different types line 18 & 48.
    ...
  12. Replies
    4
    Views
    1,210

    Hi. harvestsize = (int) days * 0.72 + size;...

    Hi.

    harvestsize = (int) days * 0.72 + size;
    yes I'm actually multiplying day by 0.72 then adding the current size as that is daily growth rate of a 'Royal Gala' apple.
    Anyway the fault is in...
  13. Replies
    160
    Views
    276,965

    Sticky: plus C By Dissection:The Essentials of C...

    plus
    C By Dissection:The Essentials of C Programming
    Ira Pohl & Al Kelley

    C:The Complete Reference
    Herbert Schildt & Rex Jaeschke
  14. Replies
    4
    Views
    1,210

    time comparison

    i want to determine space between two dates. i'm getting wrong answer.

    #include <stdio.h>
    #include <time.h>
    int main(void)
    {
    int size, harvestsize;
    char date[11] = {0};
    printf("Input...
  15. Replies
    3
    Views
    2,339

    just did some gymnastics. thanks laserlight. ...

    just did some gymnastics. thanks laserlight.

    #include <stdio.h>
    #include <stdlib.h>
    #include <time.h>

    int main()
    {
    int a, n;
    char m[6];
  16. Replies
    3
    Views
    2,339

    output rand() in array

    Hi everyone, this my first post. I'm wanting to output six unique integers, but the output is one integer. Any help please.

    #include <stdio.h>
    #include <time.h>

    int main()
    {
    int a, n;
    ...
Results 1 to 16 of 16