文章
34
粉丝
316
获赞
10
访问
22.9k
#include<bits/stdc++.h>
using namespace std;
int limit[4] = { 1000,100,10,100 };
int ChangeStrToInt(string str)
{
int result = 0;
for (int i = 0; i < str.size(); i++)
{
if (str[i] >= '0' && str[i] <= '9') result = result + (str[i] - '0') * pow(10, str.size() - 1 - i);
else
{
return -1;
}
}
return result;
}
void Change(int x)
{
vector<char> result;
while (x > 0)
{
int t = x % 16;
if (t >= 0 && t <= 9) result.push_back(...
登录后发布评论
暂无评论,来抢沙发