跳转到帖子

排行榜


热门内容

01/13/23 在所有区域 显示最高声誉的内容

  1. 1 点 积分
    由于有人注册而没有任何人发言,所以专门注册一个马甲来测试一下是不是可以正常回帖
  2. 1 点 积分
    #include <iostream> #include <string> #include <algorithm> bool is_numeric(std::string const &str) { auto it = std::find_if(str.begin(), str.end(), [](char const &c) { return !std::isdigit(c); }); return !str.empty() && it == str.end(); } int main() { std::string str = "1234567890"; std::cout << std::boolalpha << is_numeric(str) << std::endl; // true return 0; }
×
×
  • 创建新的...

重要信息

注册必须使用2-8个中文汉字作为账号