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
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
简介 使用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
偶然在代码中看到这样一个定义: typedef union { unsigned char byte; /**< the whole byte */ struct { unsigned int retain : 1; /**< retained flag bit */ unsigned int qo ...
分类:
其他好文 时间:
2021-05-24 16:41:35
阅读次数:
0
大乱炖之字符串 1.字符串: 字符串最后一位 ‘\0’结束 1.cin>> 接受一个字符串,遇“空格”、“Tab”、“回车”都结束 #include <iostream> using namespace std; int main() { char c[10]; cin>>c; cout<<c; r ...
分类:
其他好文 时间:
2021-05-24 15:51:08
阅读次数:
0
一、简介 1 课题背景 雾,在很大程度上会降低能见度,因此在此情况下拍摄的图像对比度也会受到严重的影响。尤其是在智能化的今天,对于交通领域的影响表现的尤为明显。因此,找到应对这种自然现象造成的图像对比度减弱问题的解决办法对于整个领域的发展是非常有现实意义的。 近年来,随着互联网技术的不断发展,关于图 ...
分类:
其他好文 时间:
2021-05-24 15:46:50
阅读次数:
0
简介 说实话, java 相比于C++有点奇怪, 因为可能java一切皆对象的缘故 参考链接 八种基本类型 https://www.cnblogs.com/Mike_Chang/p/6849056.html 基本类型的封装类 https://www.cnblogs.com/ysocean/p/807 ...
分类:
编程语言 时间:
2021-05-24 15:44:32
阅读次数:
0
import java.util.LinkedList; import java.util.Scanner; class TreeNode{ char val; TreeNode leftchild; TreeNode rightchild; int flag;//用于后续非递归 } public ...
分类:
其他好文 时间:
2021-05-24 15:37:05
阅读次数:
0