摘要:
本题考查大数问题。大数一般用字符串或者数组表示。注意,strlen()函数返回的值是数组'\0'前元素的个数,并不包括'\0'。 C++版本 #include <iostream> #include <algorithm> #include <cstring> using namespace std 阅读全文
posted @ 2020-07-22 16:31
程序员曾奈斯
阅读(259)
评论(0)
推荐(0)
摘要:
引用字符串或者使用字符串函数 注意,在C++中,#include<string>与#include<ctring>和#include<string.h>是不一样的。 使用C中的字符串函数比如strlen(),需要引入的是#include<ctring>或者#include<string.h> 使用字 阅读全文
posted @ 2020-07-22 15:27
程序员曾奈斯
阅读(495)
评论(0)
推荐(0)

浙公网安备 33010602011771号