1 //char数组和string的转换 2 #include<iostream> 3 #include<string.h> 4 using namespace std; 5 int main() 6 { 7 char ch[]="hello world"; 8 // string s=ch;/* ...
分类:
编程语言 时间:
2020-01-12 11:50:02
阅读次数:
89
#Hamlet词频统计(含Hamlet原文文本) #CalHamletV1.py def getText(): txt = open("hamlet.txt", "r").read() txt = txt.lower() for ch in '!"#$%&()*+,-./:;<=>?@[\\]^_‘ ...
分类:
其他好文 时间:
2020-01-10 20:14:25
阅读次数:
283
filecopy_c #include <stdio.h> #include <stdlib.h> int main(int argc,char* argv[]) { FILE *in, *out; int ch; //char//getc的返回值是int类型 if(argc != 3) { fpr ...
分类:
其他好文 时间:
2020-01-09 13:03:13
阅读次数:
90
前面介绍了logback源码初始化过程是委托给ContextInitializer StaticLoggerBinder ContextInitializer org.slf4j.impl.StaticLoggerBinder#init -> ch.qos.logback.classic.util. ...
分类:
其他好文 时间:
2020-01-08 14:55:12
阅读次数:
89
类图 配置文件 encoder主要负责输出格式和编码的处理 ch.qos.logback.core.OutputStreamAppender#subAppend LayoutWrappingEncoder encode ch.qos.logback.core.OutputStreamAppender ...
分类:
Web程序 时间:
2020-01-08 10:28:13
阅读次数:
117
1 #include <stdio.h> 2 3 void InvertStore(char A[]) 4 //字符串逆序存储的递归算法。 5 { 6 char ch; 7 static int i = 0;//需要使用静态变量 8 ch=getchar(); 9 if (ch!= '\n') // ...
分类:
编程语言 时间:
2020-01-06 21:07:38
阅读次数:
71
Fabric chaincode测试 —— 开发者模式和单元测试 【参考链接】:https://blog.csdn.net/zhayujie5200/article/details/84561825 前言 在fabric开发中,chaincode的测试是一个令人比较头疼的问题,一是由于实际情况中ch ...
分类:
编程语言 时间:
2020-01-04 22:43:15
阅读次数:
123
Part 1 1. // 将file1.txt中小写字母转换成大写后,另存为file2.txt #include <stdio.h> #include <stdlib.h> int main() { FILE *fin, *fout; // 定义文件类型指针 int ch; fin = fopen( ...
分类:
其他好文 时间:
2020-01-01 17:09:34
阅读次数:
74
// 将file1.txt中小写字母转换成大写后,另存为file2.txt #include <stdio.h> #include <stdlib.h> int main() { FILE *fin, *fout; // 定义文件类型指针 int ch; fin = fopen("file1.txt ...
分类:
其他好文 时间:
2020-01-01 10:06:46
阅读次数:
77
part1 // 将file1.txt中小写字母转换成大写后,另存为file2.txt #include <stdio.h> #include <stdlib.h> int main() { FILE *fin, *fout; // 定义文件类型指针 int ch; fin = fopen("fil ...
分类:
其他好文 时间:
2020-01-01 10:03:05
阅读次数:
90