Search:

Type: Posts; User: quzah

Search: Search took 0.15 seconds.

  1. It's pretty obvious it's not the only thing you...

    It's pretty obvious it's not the only thing you have wrong, when your output is "1 is the square root of...".


    Quzah.
  2. So now you are back to:It's not a race. Take your...

    So now you are back to:It's not a race. Take your time and read what people are telling you.


    Quzah.
  3. To illustrate one step further: for (i = 0; i...

    To illustrate one step further:

    for (i = 0; i < 10; i++) ; {
    /* not the loop body */
    }That ; makes all the difference.


    Quzah.
  4. A semicolon terminates a statement. Loops need a...

    A semicolon terminates a statement. Loops need a statement attached, typically, to actually do something:
    #include<stdio.h>
    int main( void )
    {
    int x = 0;
    for( x = 0; x < 10; x++ )
    ...
  5. That's true. I was only solving the immediate...

    That's true. I was only solving the immediate problem at hand. Your in-printf solution is more elegant.


    Quazh.
  6. You need to assign the value with =, which you...

    You need to assign the value with =, which you aren't doing, and you don't even have it compilable at the moment:
    //cube number
    number = number * number * number;


    Quzah.
  7. I did this exact thing when I wrote that...

    I did this exact thing when I wrote that calculator earlier. ;)

    I know where a bunch of functions are from, but I don't have them all memorized. What's the point, when I can make a new tab, go up...
  8. :eyebrow: No wonder your post count is so high! ...

    :eyebrow: No wonder your post count is so high!


    Quzah.
  9. Because you aren't paying attention to what you...

    Because you aren't paying attention to what you are doing, and are really just throwing random bits of code in trying to get lucky:
    #include <stdio.h>
    #include <math.h>

    int main()
    {
    ...
  10. You need to adopt a good indentation style....

    You need to adopt a good indentation style. Watch:
    #include <iostream> // this is C++
    using namespace std; // so is this
    int main() // this should really be (void) instead of just ()
    {
    int...
Results 1 to 10 of 10