Search:

Type: Posts; User: trucutu

Search: Search took 0.00 seconds.

  1. Thread: ASCII to float

    by trucutu
    Replies
    5
    Views
    26,476

    Eureka

    Cheers! Worked beautifuly.
  2. Thread: ASCII to float

    by trucutu
    Replies
    5
    Views
    26,476

    Eureka

    Cheers! Worked beautifuly.
  3. Thread: ASCII to float

    by trucutu
    Replies
    5
    Views
    26,476

    Eureka

    Cheers! I'm coding as we speak see if it works better.
  4. Thread: ASCII to float

    by trucutu
    Replies
    5
    Views
    26,476

    ASCII to float

    Hello again allmighty internet community: I'm a little bit stuck; I'm writting a program that will convert a number entered as a string into its correpsonding floating point representation. To do...
  5. Replies
    4
    Views
    1,116

    One half there.

    Ok, so if I type 12.34abc var1 gets the value 12.34. Check. Now, if I type in abc12.34 how does var1 come to get the value 1443268871235100000.0000 whatever....?
  6. Replies
    13
    Views
    1,347

    If I have learned one thing it's that users will...

    If I have learned one thing it's that users will always find marvellous ways to mess up any program... So, don't think you're safe with a 100 char array...
  7. Replies
    4
    Views
    1,116

    Data validation

    I'm writting a progrm in which I want to verify the user doesn't input incoherent data. When I code this:



    #include<stdio.h>;
    #include<conio.h>;
    main(){
    float var1;
    clrscr();...
  8. Thread: do while loop

    by trucutu
    Replies
    3
    Views
    925

    to improve it a little you can use the toupper...

    to improve it a little you can use the toupper function so you won't have to check for caps, i.e.



    while (condition!='N'){
    /*Whatever process*/
    printf("Do you wan to continue?...
  9. I think I like the if option better. Thank you!

    I think I like the if option better. Thank you!
  10. using ranged values with the switch flow control statement

    I have a doubt, is there any way to use ranges instead of specific values in a switch statemnt? i.e. how can i do something like:



    switch(var){
    case 0 to 100:
    /*Some action*/
    ...
Results 1 to 10 of 10