椰程智库 本次搜索耗时 0.040 秒,为您找到 229 个相关结果.
  • stdarg.h

    884 2023-06-17 《c语言教程》
    stdarg.h stdarg.h stdarg.h 定义于函数的可变参数相关的一些方法。 va_list 类型 va_start() va_arg():获取当前参数 va_end()。 va_copy():it makes a copy of your va_list variable in the exact same state. va_...
  • 实力

    include include using namespace std; int main() { string s; getline(cin, s); int len; len = s.length(); int a = 0; for (int i = 0,j=len-1; i < len/2 ;...
  • 深搜

    865 2026-01-31 《CSP寒假集训》
    深搜 深搜的定义 深搜是一种对数串或图形进行遍历的算法。它会从起点像树状图一样向下进行探索,如果发现不能到达目标解,那就返回到上一个节点,然后从另一条路开始走到底 ,这种尽量往深处走的概念即是深度优先的概念。回溯是一种选优搜索法,又称为试探法,按选优条件向前搜索,以达到目标。但当探索到某一步时,发现原先选择并不优或达不到目标,就退回一步重新选择,这...
  • stdbool.h

    860 2023-06-17 《c语言教程》
    stdbool.h stdbool.h stdbool.h 头文件定义了4个宏。 bool :定义为_Bool 。 true :定义为1。 false :定义为0。 __bool_true_false_are_defined :定义为1。 bool isEven ( int number ) { if ( number ...
  • CSP题解

    856 2025-10-25 《C++CSP题解》
    素数回文数的个数[T1408] 素数回文数的个数[T1408] #include < bits / stdc ++. h > using namespace std ; bool is_ss ( int n ){ if ( n < 2 ){ return false ; }...
  • 通用函数

    855 2025-10-25 《csp专题2025》
    #include < bits / stdc ++. h > using namespace std ; // 求素数(质数) bool is_prime ( int n ){ if ( n < 2 ) return false ; // 1000*1000 = 100000000; ...
  • 数组排序

    853 2025-01-14 《2025寒假集训》
    数组求大小: 静态排序 数组求大小: int size = sizeof(arr) / sizeof(arr[0]); 静态排序 #include <iostream> #include <algorithm> using namespace std ; // SymoChan <hnai@qq.com> ...
  • 空白文档

    输入输出那些事 2 3 4课堂练习三 (结束符也符合容器类型判断) 5 6 7 输入输出那些事 cin cout scanf () printf () 格式: cin >> cout << 慢(关闭同步流) ios :: sync_with_stdio ( fals...
  • 第五节

    搜索算法 搜索算法 #include < bits / stdc ++. h > using namespace std ; const int SIZE = 105 ; int arr [ SIZE ] = { 0 , 11 , 22 , 33 , 44 , 55 , 66 , 77 , 88 , 99 };...
  • 一本通第1章顺序结构

    复习 变量定义 cout输出 第5课 cin输入 99 888 789 复习 变量定义 int a ; int b ; a = 3 ; int c = 10 ; //等效于: int c ; c = 10 ; cout输出 int pi = 3 ; cout << p...