| | |
arrays
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Feb 2007
Posts: 35
Reputation:
Solved Threads: 0
Hi,
I am writing a program about getting the nth fibonacci number using a class that i have created. I am having problems with it.
Any help is greatly appreciated.
p.s eArray is the name of the class
I am writing a program about getting the nth fibonacci number using a class that i have created. I am having problems with it.
Any help is greatly appreciated.
C++ Syntax (Toggle Plain Text)
*void lfib(int a){ int i; eArray x(500), y(500), ans(500); x=y=1; for(i = 1; i<=a; i++){ ans = x + y; x = y; y = ans; }
Not knowing anything about your eArray class, it's hard to give you any help. More info would improve the chances of your getting some advice.
Everyone's gotta believe in something. I believe I'll have another drink.
~~~~~~~~~~~~~~~~~~
Looking for an exciting graduate degree? Robotics and Intelligent Autonomous Systems (RIAS) at SDSM&T See the program brochure here.
~~~~~~~~~~~~~~~~~~
Looking for an exciting graduate degree? Robotics and Intelligent Autonomous Systems (RIAS) at SDSM&T See the program brochure here.
![]() |
Similar Threads
- (reformatted) How to return Multi-Dimensional Arrays (C++)
- What relation does **indirection operator have with Multidimensional Arrays (C++)
- Arrays (C++)
- How to Return Multidimensional Arrays (C++)
- C file input/output 2D arrays. (C)
- passing arrays in visual basic (Visual Basic 4 / 5 / 6)
Other Threads in the C++ Forum
- Previous Thread: Class dictionary (2,4) tree
- Next Thread: kind of aggravating
| Thread Tools | Search this Thread |
api array arrays based beginner binary c++ c/c++ calculator char char* class classes code compile console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






