c语言中使用putchar显示字符串 1、 #include <stdio.h> int put(char x[]) { int i = 0; while(x[i]) putchar(x[i++]); } int main(void) { char str[128]; printf("str: ") ...
分类:
编程语言 时间:
2021-06-02 11:15:10
阅读次数:
0
const url = data.data.url // const url = window.URL.createObjectURL(new Blob([data.data.url])) const link = document.createElement('a') // 创建a标签 link. ...
分类:
Web程序 时间:
2021-06-02 11:14:37
阅读次数:
0
1、 #include <stdio.h> void put(char x[], int n) { while(n-- > 0) printf(x); putchar('\n'); } int main(void) { char str[128]; int n; printf("str: "); s ...
分类:
编程语言 时间:
2021-06-02 11:11:52
阅读次数:
0
包装类 Byte、Character、Boolean、Long、Short、Integer、Double、Float 这里拿Integer作举例说明,其他几种包装类类似。 为什么使用包装类? 某些方法的参数必须是对象,为了让基本数据类型的数据能作为参数,提供了包装类! 包装类可以提供更多的功能 In ...
分类:
其他好文 时间:
2021-06-02 10:50:19
阅读次数:
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", &a ...
分类:
其他好文 时间:
2021-06-02 10:47:49
阅读次数:
0
const obj = { a: 1, b: 2, c: 3 } const { a: a1, b: b2, c: c3, d: d4 = "default" } = obj 通过上面对 obj 对象的结构,会得到 a1、b2、c3 和 d4 这 4 个变量,同时由于 obj 里面没有 d 属性,所 ...
分类:
Web程序 时间:
2021-05-25 18:38:20
阅读次数:
0
简介 使用BFS算法 不知道莫名超时了 code class Solution { public: struct point{ int i; int j; point(int i_, int j_){ i = i_; j = j_; } }; void bfs(int i, int j, vecto ...
分类:
其他好文 时间:
2021-05-25 18:29:12
阅读次数:
0
C++ 获取GUID #include <objbase.h> #include <stdio.h> //--生成GUID const char* newGUID() { static char buf[64] = {0}; GUID guid; if (S_OK == ::CoCreateGuid ...
分类:
编程语言 时间:
2021-05-25 18:10:12
阅读次数:
0
#include<bits/stdc++.h> using namespace std; typedef long long ll; namespace MCMF { const int MAXN = 10000, MAXM = 10000, INF = 0x7fffffff; int head[M ...
分类:
其他好文 时间:
2021-05-25 17:42:56
阅读次数:
0
<script> function main(config){ // const dbHost = config && config.db && config.db.host; const dbHost =config?.db?.host; console.log(dbHost); // 192.1 ...
分类:
其他好文 时间:
2021-05-25 17:41:36
阅读次数:
0