网址:

#include
#include
using namespace std;int main(){ int n; while(cin>>n) { int m; stack
s; while(n > 0) { m = n % 8; n = n / 8; s.push(m); } while(!s.empty()) { printf("%d",s.top()); s.pop(); } printf("\n"); } return 0;}