Search:

Type: Posts; User: ki113r

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,428

    fscanf() not asking for input ?

    Instead of asking me for the aperture value , the fprintf gets seemingly skipped , and the next thing that prints is that parture = 0.0f , when it hasnt even prompted me for an input :


    #include...
  2. Replies
    103
    Views
    9,696

    The size of this thread is mostly due the fact...

    The size of this thread is mostly due the fact that some of the comments don't really help me much , very much like your post . If you actually read through you would see that the f in front stands...
  3. Replies
    103
    Views
    9,696

    /Edit That aperture==f4.0 is in fact in line with...

    /Edit That aperture==f4.0 is in fact in line with the rest of the values in my code .

    I changed some thins now .However I get quite a few errors .


    {
    ^
    test5(27) : Error: '(' expected...
  4. Replies
    103
    Views
    9,696

    Finally finished everything

    Ok before I hand this in , can someone just please go over my indenting , because I haven't done it before . I assume there isno strict rules , just making the code easier to read. Did I indent the...
  5. Replies
    103
    Views
    9,696

    oh how embarrassing .... / goes to hide under a...

    oh how embarrassing .... / goes to hide under a rock
  6. Replies
    103
    Views
    9,696

    Does that book say something like this :...

    Does that book say something like this :
    printf("The aperture value entered is : %.1ff");
    But I get :
    The aperture value entered is : 0.0f .
    Any idea on what I'm doing wrong ?
  7. Replies
    103
    Views
    9,696

    Heh , a bit too late for that now , the...

    Heh , a bit too late for that now , the assignement is due tomorrow :o
  8. Replies
    103
    Views
    9,696

    How would I limit the printf ouput to only 1...

    How would I limit the printf ouput to only 1 decimal when it prints out the float? I tried searching the FAQ to no avail
  9. Replies
    103
    Views
    9,696

    Simple and effective I like it :) I am pretty...

    Simple and effective I like it :) I am pretty sure there won't be more questions, the rest seems quite starightforward :)
  10. Replies
    103
    Views
    9,696

    If I can store it as a float it's even better ....

    If I can store it as a float it's even better . How would I do that ?
  11. Replies
    103
    Views
    9,696

    Maybe there's a way to simply ignore the input of...

    Maybe there's a way to simply ignore the input of the first character , and store the rest in a string ?
  12. Replies
    103
    Views
    9,696

    Turns out the user must enter the f value , and...

    Turns out the user must enter the f value , and the program must process the whole thing . I think the way I will handle this is to use string compare. I think my tutor would prefer that to fgets....
  13. Replies
    103
    Views
    9,696

    Ok , well ill get some sleep now, and ask my...

    Ok , well ill get some sleep now, and ask my tutor about using fgets , thanks a lot for your help :)
  14. Replies
    103
    Views
    9,696

    ...................

    ...................
  15. Replies
    103
    Views
    9,696

    I was just trying it with gotos , in case its the...

    I was just trying it with gotos , in case its the while loop thats causing the problem . :) , but it seems to be fine
  16. Replies
    103
    Views
    9,696

    Wohoo , it sort of worked ...

    Wohoo , it sort of worked


    C:\Users\Ben\dm\bin>test3

    Enter Exposure Time: 12
    The selected Exposure time is 12
    Please enter the aperture size 1.4
    Invalid aperture=1610612736
    Please Try...
  17. Replies
    103
    Views
    9,696

    I have to use scanf , its one of the requirements...

    I have to use scanf , its one of the requirements from my lecturer
  18. Replies
    103
    Views
    9,696

    Unfortunately it still does the infinite loop Btw...

    Unfortunately it still does the infinite loop Btw this is how it looks when I run it :
    http://img119.imageshack.us/img119/3227/coders4.jpg
  19. Replies
    103
    Views
    9,696

    Yeh no problem Pete . Thats what it gave me ,...

    Yeh no problem Pete . Thats what it gave me , lemme try it again ...
    wow it worked now . This is crazy :-|
  20. Replies
    28
    Views
    3,019

    If you want you are more than free to write my...

    If you want you are more than free to write my assignement lol
  21. Replies
    103
    Views
    9,696

    Lexican Error

    Lexican Error
  22. Replies
    103
    Views
    9,696

    ..................

    ..................
  23. Replies
    103
    Views
    9,696

    It won't compile for me , it gives me an error.

    It won't compile for me , it gives me an error.
  24. Replies
    103
    Views
    9,696

    But if ((aperture==1.2f. . . ) doesn't work

    But if ((aperture==1.2f. . . ) doesn't work
  25. Replies
    103
    Views
    9,696

    #include int main(void) { int...

    #include <stdio.h>
    int main(void)
    {
    int exposure=0;
    float aperture=0;
    int choice = 0;

    printf("\nEnter Exposure Time: ");
    scanf("&#37;d",&exposure);
Results 1 to 25 of 59
Page 1 of 3 1 2 3