Search:

Type: Posts; User: sean...

Search: Search took 0.00 seconds.

  1. Thread: recursion

    by sean...
    Replies
    2
    Views
    1,062

    recursion

    hello, this is on a practice test:



    void recur (int x) {
    if (x != 0)
    recur(x/2);

    printf("%d", x%2);
    }
  2. Thread: arrays

    by sean...
    Replies
    2
    Views
    918

    arrays

    ok thanks
  3. Thread: error

    by sean...
    Replies
    9
    Views
    1,551

    yea that was it! thanks

    yea that was it! thanks
  4. Thread: error

    by sean...
    Replies
    9
    Views
    1,551

    sorry, i meant findroot.c includes cubics.h and...

    sorry, i meant findroot.c includes cubics.h and cubics.c and cubics.c includes cubics.h
  5. Thread: error

    by sean...
    Replies
    9
    Views
    1,551

    findroot includes cubics.c and findroot.c,...

    findroot includes cubics.c and findroot.c, cubics.c inclues cubics.h but cubics.h has the #ifdef
  6. Thread: error

    by sean...
    Replies
    9
    Views
    1,551

    well our professor gave us the makefile but i...

    well our professor gave us the makefile but i think i have multiple definitions of cubics.c, ill check it out now
  7. Thread: error

    by sean...
    Replies
    9
    Views
    1,551

    error

    the instructions for this program is to use newton method to find zeros of a cubic function. cubics.h is given and it includes function prototypes and we have to write four functions on cubics.c....
  8. Thread: pointers

    by sean...
    Replies
    4
    Views
    1,219

    ok thanks

    ok thanks
  9. Thread: pointers

    by sean...
    Replies
    4
    Views
    1,219

    hmm ok, but does i point to x or does i point to...

    hmm ok, but does i point to x or does i point to what x points to?
  10. Thread: pointers

    by sean...
    Replies
    4
    Views
    1,219

    pointers

    Hello, this is a problem from a written homework assignment:
    i have to draw out a stack model for this




    void foo(int **i, int **j){
    int *temp;

    if (**i < **j) {
  11. Replies
    6
    Views
    1,421

    Thanks for the help guys but I have 1 more...

    Thanks for the help guys but I have 1 more question to clarify prelude's reponse. You said the source code isn't linear but it's compiled linearly. What exactly is compiled lineraly? As you can...
  12. Replies
    6
    Views
    1,421

    Q on sample program

    #include <iostream>

    // Prototypes
    int WidthInFeet();
    int WidthInInches(int feet);

    int main()
    {
    // Initialize variables by calling functions.
    int feet = WidthInFeet();
  13. Replies
    2
    Views
    929

    Semi-noob Q: calling functions

    What is the point of calling a function? I'm currently reading Sam's teach yourself C++ and its discussing functions. In a sample program, the function is first declared using prototypes. Then it...
Results 1 to 13 of 15