#include <stdio.h> const int N=3; int main() { int a[N] = {1, 2, 3}; int i; printf("通过数组名和下标直接访问数组元素:\n"); for(i=0; i<N; i++) printf("%d: %d\n", &a[i] ...
分类:
其他好文 时间:
2021-06-02 13:50:16
阅读次数:
0
#include <stdio.h> const int N=3; int main() { int a[N] = {1, 2, 3}; int i; printf("通过数组名和下标直接访问数组元素:\n"); for(i=0; i<N; i++) printf("%d: %d\n", &a[i] ...
分类:
其他好文 时间:
2021-06-02 13:48:33
阅读次数:
0
sqlite 数据类型━━━━━━━━━━━━━━━━━━━━━━━━━一般数据采用固定的静态数据类型,而SQLite采用的是动态数据类型,会根据存入值自动判断。 SQLite具有以下五种数据类型: 1.NULL:空值。2.INTEGER:带符号的整型,具体取决有存入数字的范围大小。3.REAL:浮 ...
分类:
数据库 时间:
2021-06-02 13:46:26
阅读次数:
0
自己出了一个题,原本打算配合分析函数完善数据的,结果发现使用分析函数反而走偏了,如题: 根据时间段(精确到月)按月查询时间段内截止当前月份最后一刻各物品的累积销售量,(比如传入时间参数2021-04到2021-05月)即分别统计从产生数据开始截止4月末各物品销售累积量和截止5月末各物品累积量 示例数 ...
分类:
数据库 时间:
2021-06-02 13:36:21
阅读次数:
0
实验任务1 #include <stdio.h> const int N=3; int main() { int a[N] = {1, 2, 3}; int i; printf("通过数组名和下标直接访问数组元素:\n"); for(i=0; i<N; i++) printf("%d: %d\n", ...
分类:
其他好文 时间:
2021-06-02 13:30:31
阅读次数:
0
1、 #include <stdio.h> int str_char(char x[], int key) { int len = 0; while(x[len]) len++; int i; for(i = 0; i < len; i++) { if(x[i] == key) return i; ...
分类:
编程语言 时间:
2021-06-02 12:49:19
阅读次数:
0
1、 #include <stdio.h> #define NUMBER 5 int main(void) { char str[NUMBER][128]; int i; for(i = 0; i < NUMBER; i++) { printf("str[%d] = ", i); scanf("%s ...
分类:
编程语言 时间:
2021-06-02 12:43:03
阅读次数:
0
1.背景知识 有些情况下我们需要跨字符集进行表的迁移。 比如 ZHS16GBK->AL32UTF8 在存储中文时两个字符集有如下差异 |字符集| 中文字符占用字节 |以汉字存储性别 | | | | | |ZHS16GBK | 2 | char(2) | |AL32UTF8 | 3 | char(3) ...
分类:
Web程序 时间:
2021-06-02 12:09:50
阅读次数:
0
这题很妙。 多去完成这种级别的题目,建模能力才会真正得到提高。 题解干完springboot活补。 #include<bits/stdc++.h> using namespace std; inline int read() { int x=0,f=1;char c=getchar(); while ...
分类:
其他好文 时间:
2021-06-02 12:02:18
阅读次数:
0
c语言中统计字符串中数字字符出现的次数。 1、 #include <stdio.h> void int_count(char x[], int cnt[]) { int i; while(x[i]) { if(x[i] >= '0' && x[i] <= '9') { cnt[x[i] - '0'] ...
分类:
编程语言 时间:
2021-06-02 11:38:03
阅读次数:
0