I know the stack is entirely worthless but that's the assignment i have been given by my professor and I don't have a choice..
I wrote this program:
#include <cstdio>
#include<iostre am>
using namespace std;
int main(int nNumberofArgs, char*pszArgs[])
{
int n;
cout<<"n";
cin>>n;
int b=1, a=0, c=0;
if (n == 0) cout <<a;
else if...
User Profile
Collapse
-
a constructor for a class is nothing but another function and it never has a return type. That's why whenever you use a constructor, you don't mention the return type explicitlyLeave a comment:
-
fibonacci series
Hi guys,
please tell me how to write the iterative version of fibonacci series using a stack.
Thanks
No activity results to display
Show More
Leave a comment: