Search:

Type: Posts; User: heredia21

Search: Search took 0.00 seconds.

  1. Thread: C++ help

    by heredia21
    Replies
    5
    Views
    1,211

    thanks alot

    thanks alot
  2. Thread: C++ help

    by heredia21
    Replies
    5
    Views
    1,211

    #include using namespace std; ...

    #include <iostream>
    using namespace std;



    int num, factorial;
    num = 6;
    factorial = Fact(num);
    cout << num << "! = "
    << factorial;
  3. Thread: Recursive

    by heredia21
    Replies
    6
    Views
    1,359

    Recursive

    int main()
    {
    recurse(5,3);
    return 0;
    } // end main
    void recurse(int x, int y)
    { if (y > 0)
    { ++x;
    --y;
    cout << x << " " << y << endl;
  4. Replies
    2
    Views
    1,336

    String output

    int main()
    { string s = "12a34b56c78d";
    int size = 12;
    writeStuff(s,size);
    return 0;
    } // end main
    void writeStuff(string s, int size)
    { if (size > 0)
    { cout <<...
  5. Thread: C++ help

    by heredia21
    Replies
    5
    Views
    1,211

    C++ help

    int main()
    { int num, factorial;
    num = 6;
    factorial = Fact(num);
    cout << num << "! = "
    << factorial;
    return 0;
    } // end main
    int Fact (int num)
    { if (num == 0)
  6. Now it compiled. Thanks alot. I am now asked to...

    Now it compiled. Thanks alot. I am now asked to write a drivers program for it. I have never written one before but this is what I have. I do not believe I am doing it right. Can anyone verify or...
  7. //#ifndef EMPLOYEE_TYPE_FLAG //#define...

    //#ifndef EMPLOYEE_TYPE_FLAG
    //#define EMPLOYEE_TYPE_FLAG

    #include <iostream>
    using namespace std;



    struct employee_type
    {
  8. What should or could I put in the main function

    What should or could I put in the main function
  9. Thanks. But im still getting the same error. I...

    Thanks. But im still getting the same error. I commented out the other headers. This is what I have:


    //#ifndef EMPLOYEE_TYPE_FLAG
    //#define EMPLOYEE_TYPE_FLAG

    #include <iostream>
    #include...
  10. I am having problems compiling and running this program

    insert


    #ifndef EMPLOYEE_TYPE_FLAG
    #define EMPLOYEE_TYPE_FLAG

    #include <iostream>
    using namespace std;
Results 1 to 10 of 10