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
Type: Posts; User: ofthedove
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
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.
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...
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...
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,...
still no dice :( I copied and pasted your exact code. No errors this time everything compiled fine but here is my output:
+-------------------------------------------------------------------+...
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...
okay I got as far as this:
#include <string>
#include <iomanip>
using namespace std;
void printHeader(string prog, string date){
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...
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...