Search:

Type: Posts; User: ofthedove

Search: Search took 0.02 seconds.

  1. yup that did it, thanks! im new to making my own...

    yup that did it, thanks!
    im new to making my own functions, we havent learned it in my intro. to programming class yet and i was just fooling around with it.
    Thanks again
  2. i removed it and got 2 compile errors. ...

    i removed it and got 2 compile errors.

    factl.h:28: assignment of function `nCr(int, int)'
    factl.h:28: assignment to `int ()(int, int)' from `int'

    line 28 is the line that i removed int from.
  3. combination(math) function and if statement help

    Basically i wrote a factorial function that works like a charm and planned on using it in this combination function that I wrote. But some of the combinations (nCr) that I need to use have a 0 value...
  4. Replies
    2
    Views
    1,083

    Im not sure if that is how you have to write your...

    Im not sure if that is how you have to write your program for a class or whatever but I wrote this factorial function along with a combination function and permutation but the combination one is...
  5. Replies
    8
    Views
    1,329

    HAHA VICTORY! I had to switch around where the...

    HAHA VICTORY!
    I had to switch around where the prog.length was and subtract insteda of add it. Its not centered but it looks fine to me. Here is the final code:



    void printHeader(string prog,...
  6. Replies
    8
    Views
    1,329

    still no dice :( I copied and pasted your exact...

    still no dice :( I copied and pasted your exact code. No errors this time everything compiled fine but here is my output:



    +-------------------------------------------------------------------+...
  7. Replies
    8
    Views
    1,329

    no luck :( i tried both things but it just gave...

    no luck :( i tried both things but it just gave me a whole lot of errors, to many to post. Any other suggestions? I put everything back the way it was so I am still just getting the same error as...
  8. Replies
    8
    Views
    1,329

    okay I got as far as this: #include...

    okay I got as far as this:



    #include <string>
    #include <iomanip>
    using namespace std;

    void printHeader(string prog, string date){
  9. Replies
    8
    Views
    1,329

    making header function

    I am trying to create a simple function that I can use for the header of my programs which will have my name, the date, and the program name. My name will always be the same and the date will always...
  10. Replies
    2
    Views
    2,095

    Help with headers (conio.h etc)

    Hi, I was looking at some sample source codes and I wanted to run them but they use some headers I dont have, like conio.h, armory.h, and rw/random.h. I tried to compile the program and it gave me...
Results 1 to 10 of 10