欢迎使用本站,预祝练习时长两年半的选手们到成功! [本模块信息来自tem/def/head]
  • [基础数据结构] 循环链表 手写源码 日期:2024-06-21 10:19:52 点击:185

    #include iostream// 定义循环链表节点结构体struct Node { int data; Node* next; Node(int val) : data(val), next(this) {} // 构造函数,初始化时指向自身形成循环};// 定义循环链表类class CircularLinkedList {priv

    点我呐

  • [字符串string] string 构造函数 日期:2024-05-12 17:53:42 点击:107

    #include iostream #include string using namespace std; int main(){ string s="abcde"; coutsendl; string s1(3,'a'); couts1endl; string s2({'a','b','c','d','e'}); couts2endl; string str="abcde"; string s3(str); couts3endl; char c4[]="abcdefghi

    点我呐

  • [字符串string] string 更多用法 日期:2024-05-12 17:52:59 点击:95

    #include iostream #include string #include sstream using namespace std; /*bool com(char c){ return (c-'0')%2; }*/ int main(){ //常量 npos 字符串终点 coutstring::nposendl; string s="abc"; if(s.find('d')==string::npos){ cout"no 'd' in

    点我呐

  • [字符串string] string 相关函数 日期:2024-05-12 17:52:26 点击:124

    #include iostream #include string using namespace std; int main(){ string s="abcdefghijk"; //capacity 当前对象分配的内存空间 couts.capacity()endl; s="abcde"; //size/length 返回字符数 couts.size()" "s.length()endl; //max_size

    点我呐

  • [字符串string] string 访问元素 日期:2024-05-12 17:52:00 点击:129

    #include iostream #include string using namespace std; int main(){ string s="abcdefghijklmnopqrstuvwxyz"; //front 访问首字符 couts.front()endl; //back 访问最后的字符 couts.back()endl; //data 返回访问首字符的指针 auto i

    点我呐

  • [数学及其他] 格雷码 日期:2024-05-11 15:03:19 点击:128

    格雷码(Gray Code),又称作反射二进制码,是一种二进制数码系统,在此系统中,连续的数值仅有一个位数的差异。这种编码方式常用于某些类型的数字电路,如模拟-数字转换器(AD

    点我呐

  • [基础语法] ASCII码表 日期:2024-05-11 14:59:21 点击:232

    下面是一个完整的ASCII码表,包括了所有128个标准ASCII字符的十进制、十六进制表示以及对应的字符: 十进制 | 十六进制 | 字符--------------------------------------------- 0 | 00 | NUL (空字符) 1

    点我呐

  • [基础语法] ASCII 日期:2024-05-11 14:58:58 点击:209

    ASCII(美国信息交换标准代码,American Standard Code for Information Interchange)是一种字符编码标准,用于将特定的数字值与字符进行对应。ASCII码在计算机、通信系统和其它需要文本数据交换

    点我呐

  • [基础算法] 算法概念与描述 日期:2024-05-11 14:55:43 点击:62

    算法是解决特定问题的明确步骤集合。这些步骤按照一定的顺序执行,以获得所需的输出。算法的概念在数学、计算机科学、逻辑学和许多其他领域中都非常重要。一个有效的算法应该

    点我呐

  • [基础算法] 枚举 日期:2024-05-11 14:51:22 点击:100

    在计算机科学中,枚举算法是一种简单直接的搜索算法,它通过遍历所有可能的候选解来找到问题的解。这种算法通常用于解决组合问题,如排列、组合、划分、图的遍历等。枚举算法

    点我呐

栏目列表
推荐内容
添加管理员微信