Search:

Type: Posts; User: readytogo

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    55,968

    it gives me the warning sign "multi-character...

    it gives me the warning sign

    "multi-character character constant"
  2. Replies
    8
    Views
    55,968

    ...well....I don't know it still not working

    ...well....I don't know it still not working
  3. Replies
    8
    Views
    55,968

    I've tried....it doesnt work

    I've tried....it doesnt work
  4. Replies
    8
    Views
    55,968

    How to compare two characters???

    i have a question here...
    How do I compare two characters?

    i.e.



    char rep1, rep2;

    scanf("%c %c", &rep1, &rep2);
  5. Replies
    7
    Views
    1,258

    Sorry to say this guys, I haven't learned array...

    Sorry to say this guys, I haven't learned array yet, and we are not allow to use it now until later. My teacher said so =( So is there any other ways?
  6. Replies
    7
    Views
    1,258

    Here

    Here's my code:




    #include <stdio.h>


    int main(){
  7. Replies
    7
    Views
    1,258

    Yes, I know by checking the input...But how can I...

    Yes, I know by checking the input...But how can I do that?
    Do I need to check each number one by one like...

    21012 - > "2" "1" "0" "1" "2" ?

    If so...I have no idea how to do that.
  8. Replies
    7
    Views
    1,258

    Hey guys, I need a little help here~

    Hey guys,

    I'm doing a programing that will convert a number in one base to another base output.

    My program works fine now. It can convert any positive real number in one base to another base.
    ...
  9. Where's my program's problem? (Floating point exception?)

    Hey guys, I've got the program to compile correctly, but every time I execute, it gives me the line says "Floating point exception"? Maybe my logic isn't correct or I code somewhere wrong?

    ...
  10. Replies
    1
    Views
    1,011

    How to make this work =(

    The question is to input a non-negative real number:
    and approximate the closest fraction.

    so i.e.

    if

    Nonnegative real number: 0.751
    Closest approximation = 3/4
  11. Replies
    2
    Views
    828

    Closest approximation using looping?

    http://i52.tinypic.com/16c26vp.jpg


    #include <stdio.h>

    int main() {

    double p, pre, cur;
    int i, j, d;
Results 1 to 11 of 12