Search:

Type: Posts; User: bennyho03

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    4,966

    If you are using MS Visual C++, it will be ...

    If you are using MS Visual C++, it will be

    First declare the header file #include<stdlib.h>
    and the clear console function is system("CLS")
  2. Replies
    4
    Views
    1,307

    It also seems you are missing a pair of {} here...

    It also seems you are missing a pair of {} here to run the 'for' loop.
  3. Replies
    4
    Views
    1,307

    you are missing a semicolon here and a } should...

    you are missing a semicolon here
    and a } should be added to the end of your above statements...

    Use code tags kind of hard to see your codes
  4. Replies
    6
    Views
    43,891

    maybe your reasoning is right since double is...

    maybe your reasoning is right since double is long float. Thanx anyway
  5. Replies
    6
    Views
    43,891

    thanx for the help but there is a another...

    thanx for the help but there is a another question though. Why is there a 'f' at the end of ? Thanx
  6. Replies
    6
    Views
    43,891

    My original code is this void function(void){...

    My original code is this

    void function(void){
    float calculate (float);

    float x,y;
    int i;
    glClearColor(1.0, 0.0, 1.0, 0.0);
    glClear(GL_COLOR_BUFFER_BIT);
  7. Replies
    6
    Views
    43,891

    Drawing a circle using glut...

    I can't seem to draw a circle using glut... anybody knows how to do it... thanx in advance. I think i know the logic and that is to split the circle into individual small lines and outputting them...
  8. Thread: Newbie

    by bennyho03
    Replies
    21
    Views
    2,979

    www.cprogramming.com is the best mate

    www.cprogramming.com is the best mate
  9. Thread: Glut.h

    by bennyho03
    Replies
    4
    Views
    1,455

    thanx but it didn't work...

    thanx but it didn't work...
  10. Thread: Glut.h

    by bennyho03
    Replies
    4
    Views
    1,455

    Glut.h

    Hi I am learning openGl and glut now and I place those necessary files like glut.h, glut32.dll and glut32.lib in the respective folders (I am using MSVC ++ 6.0). The problem is the program cannot...
  11. Thread: a simple qn

    by bennyho03
    Replies
    4
    Views
    1,064

    thanks

    thanks
  12. Thread: a simple qn

    by bennyho03
    Replies
    4
    Views
    1,064

    a simple qn

    An example of my program is

    average = sum/positive;

    where sum and positive are in int form while average is in double.

    the problem is i cannot get the answer in double form? how do i solve...
  13. Replies
    2
    Views
    977

    Enter a number

    I have got a question. When a user enters a number, it will automatically be prepared to get that amount of variables.

    Exp:

    Enter numbers to process:3

    Enter number:1.2
    Enter number:17...
  14. Thread: flip

    by bennyho03
    Replies
    18
    Views
    2,993

    Thanx for all the help.

    Thanx for all the help.
  15. Thread: flip

    by bennyho03
    Replies
    18
    Views
    2,993

    flip

    :confused: :confused:
    how do you flip an int where by you enter an int exp:12345 and it outputs 54321?

    Thanx for the help :)
  16. Thread: Re: Question

    by bennyho03
    Replies
    9
    Views
    1,224

    thanx i see the problem.

    thanx i see the problem.
  17. Thread: Re: Question

    by bennyho03
    Replies
    9
    Views
    1,224

    I check on that function and decided to change...

    I check on that function and decided to change strtol to strtod. The funny thing is that i try to run values in it and the program gives me wrong answers
    eg: 3.3 +6.6 and it gives me 6.6 instead of...
  18. Thread: Re: Question

    by bennyho03
    Replies
    9
    Views
    1,224

    thanx prelude and viaxd but here a question to...

    thanx prelude and viaxd but here a question to prelude, i tried your code above, it worked and when i switch the variables to double and %f respectively it fails. did i do something wrong?
  19. Thread: Re: Question

    by bennyho03
    Replies
    9
    Views
    1,224

    i believe a string is more preferable

    i believe a string is more preferable
  20. Thread: Re: Question

    by bennyho03
    Replies
    9
    Views
    1,224

    Re: Question

    The question that was given to me is to prompt the user to enter a number followed by an operator and lastly a number,

    eg:
    User Input: 5 + 5
    Program Output: 5 + 5 is 10

    I tried using the...
  21. Replies
    5
    Views
    7,602

    fflush(stdin) before the second scanf because the...

    fflush(stdin) before the second scanf because the scanf for the first one captures both the char and return key and treats them both as characters
Results 1 to 21 of 21