大数加法求和(C++)

#include 
using namespace std;

//大数加法
int main()
{
	char n1[100] = {'\0'};//假设大数长度不超过100;
	char n2[100] = {'\0'};
	int flag[101] = {0};//进位标志
	int result[101] = {0};//结果
	int count;
	cin >> n1 >> n2;
	strrev(x1);
	strrev(x2);
	int len1 = strlen(x1);
	int len2 = strlen(x2);
	int lenmax = len1*(len1>=len2) + len2*(len1=0; count--)
	{
		cout << result[count];
	}
	cout << endl;
	return 0;
}

你可能感兴趣的:(c++类型题)