TheAlgorithms/C++ 1.0.0
All the algorithms implemented in C++
|
This Programme returns the Nth fibonacci as a string. More...
#include <cstdint>
#include <iostream>
#include <cstring>
Go to the source code of this file.
Functions | |
std::string | add (std::string a, std::string b) |
void | fib_Accurate (uint64_t n) |
int | main () |
This Programme returns the Nth fibonacci as a string.
The method used is manual addition with carry and placing it in a string which is called string addition This makes it have no bounds or limits
Definition in file string_fibonacci.cpp.
std::string add | ( | std::string | a, |
std::string | b ) |
function to add two string numbers
[in] | a | first number in string to add |
[in] | b | second number in string to add |
Definition at line 25 of file string_fibonacci.cpp.
void fib_Accurate | ( | uint64_t | n | ) |
Fibonacci iterator
[in] | n | n^th Fibonacci number |
Definition at line 69 of file string_fibonacci.cpp.
int main | ( | void | ) |
main function
Definition at line 82 of file string_fibonacci.cpp.