User Profile

Collapse

Profile Sidebar

Collapse
student
student
Last Activity: Oct 7 '06, 11:56 PM
Joined: Sep 20 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • student
    replied to fibonacci series
    in C
    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...
    See more | Go to post

    Leave a comment:


  • student
    replied to the class constructor
    in C
    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 explicitly
    See more | Go to post

    Leave a comment:


  • student
    started a topic fibonacci series
    in C

    fibonacci series

    Hi guys,
    please tell me how to write the iterative version of fibonacci series using a stack.
    Thanks
    See more | Go to post
No activity results to display
Show More
Working...