Guest User

Untitled

a guest
May 13th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.15 KB | None | 0 0
  1. int oct2dec(string liczba)
  2. {
  3.     string osemkowa;
  4.     int dziesietna = strtol(liczba.c_str(), NULL, 8);
  5.     osemkowa = to_string(dziesietna);
  6.     return osemkowa;
  7. }
Add Comment
Please, Sign In to add comment