2019年9月2日

char函数

摘要: 字符串比较: strcmp函数是string compare(字符串比较)的缩写,用于比较两个字符串并根据比较结果返回整数。基本形式为strcmp(str1,str2),若str1=str2,则返回零;若str1<str2,则返回负数;若str1>str2,则返回正数。 字符串复制: strcpy, 阅读全文

posted @ 2019-09-02 16:53 By_布衣 阅读(766) 评论(0) 推荐(0) 编辑

dp--01背包,完全背包,多重背包

摘要: 模板 例题 hdu2602 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <algorithm> 5 #include <cmath> 6 using namespace std; 7 8 #def 阅读全文

posted @ 2019-09-02 14:42 By_布衣 阅读(122) 评论(0) 推荐(0) 编辑

导航