Algorithms_in_C++ 1.0.0
Set of 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>
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.
std::string fill | ( | char | c, |
int | n ) |
This functions fills a string with character c, n times and returns it
memcpy
function. int main | ( | void | ) |
main function
std::string tolowerRoman | ( | int | n | ) |
to convert to lowercase Roman Numeral the function works recursively
std::string toupperRoman | ( | int | n | ) |
to convert to uppercase Roman Numeral the function works recursively