- 博客(2)
- 收藏
- 关注
原创 C函数笔记简概
memset void *memset(void *s, int ch, size_t n); <memory.h>或<string.h> 主要作用,对较大的结构组或数组清零或赋初值(0); 原文拓展 rand void srand(unsigned seed); int rand(void); <stdlib.h> time(NUL...
2020-05-03 11:19:35
100
原创 2.12 子序列和(乘积)问题 C
最大子序列和 O(n) int MaxSubsequenceSum( const int A[], int N ) { int ThisSum, MaxSum, j; ThisSum = MaxSum = 0; for(j=0; j<N; j++) { ThisSum+= A[j]; if(ThisSum>MaxSum) Ma...
2020-04-09 15:54:40
1338
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人