thanks alot
Type: Posts; User: heredia21
thanks alot
#include <iostream>
using namespace std;
int num, factorial;
num = 6;
factorial = Fact(num);
cout << num << "! = "
<< factorial;
int main()
{
recurse(5,3);
return 0;
} // end main
void recurse(int x, int y)
{ if (y > 0)
{ ++x;
--y;
cout << x << " " << y << endl;
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 <<...
int main()
{ int num, factorial;
num = 6;
factorial = Fact(num);
cout << num << "! = "
<< factorial;
return 0;
} // end main
int Fact (int num)
{ if (num == 0)
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...
//#ifndef EMPLOYEE_TYPE_FLAG
//#define EMPLOYEE_TYPE_FLAG
#include <iostream>
using namespace std;
struct employee_type
{
What should or could I put in the main function
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...
insert
#ifndef EMPLOYEE_TYPE_FLAG
#define EMPLOYEE_TYPE_FLAG
#include <iostream>
using namespace std;