// 1.cpp : 定义控制台应用程序的入口点。
//
#include \"stdafx.h\"
#include #include using namespace std; void main() { int m[100], n[100], i, j, x =0, y, a = 0, b, s = 0; m[0] = 1; cin >> y; b = y / 10; if (y > 11){ for (i = 0; i < b; i++) { if (y >0){ n[i] = y % 10; y = y / 10; cout << \"n\" << \"[\" << i << \"]=\" << n[i] << endl; cout << \"y=\" << y << endl; x = n[i]; for (j = 0; j < i; j++) { a = x * 2; x = a; } m[i] = x; s = s + m[i]; cout << \"m[\" << i << \"]=\" << m[i] << endl; cout << \"s[\" << i << \"]=\" << s << endl; } } } else { if(y == 1 || y == 0) cout << y; if (y == 10 ) cout << 2; if (y == 11) cout << 3; } } 因篇幅问题不能全部显示,请点此查看更多更全内容