摘要:
C++常用库函数 1.缓冲区操作函数 函数名:memchr 函数原型:void *memchr(const void *buf,int c,sizet count); 参数:buf 缓冲区的指针;c 查找的字符;count 检查的字符个数。 所需头文件:<cstring> 功能:查找 buf 的前 阅读全文
摘要:
基本代码: #include <iostream>#include <algorithm>using namespace std;int PowerMod(long long a, long long b, int n){ int ans=1; a=a%n; while(b>0) { if(b%2= 阅读全文