TheAlgorithms/C++ 1.0.0
All the algorithms implemented in C++
|
This Programme Converts a given decimal number in the range [0,4000) to both Lower case and Upper case Roman Numeral. More...
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
Go to the source code of this file.
Functions | |
std::string | fill (char c, int n) |
std::string | tolowerRoman (int n) |
std::string | toupperRoman (int n) |
int | main () |
This Programme Converts a given decimal number in the range [0,4000) to both Lower case and Upper case Roman Numeral.
Definition in file decimal_to_roman_numeral.cpp.
std::string fill | ( | char | c, |
int | n ) |
This functions fills a string with character c, n times and returns it
memcpy
function. Definition at line 15 of file decimal_to_roman_numeral.cpp.
int main | ( | void | ) |
main function
Definition at line 90 of file decimal_to_roman_numeral.cpp.
std::string tolowerRoman | ( | int | n | ) |
to convert to lowercase Roman Numeral the function works recursively
Definition at line 24 of file decimal_to_roman_numeral.cpp.
std::string toupperRoman | ( | int | n | ) |
to convert to uppercase Roman Numeral the function works recursively
Definition at line 58 of file decimal_to_roman_numeral.cpp.