码迷,mamicode.com
首页 >  
搜索关键字:ch    ( 3220个结果
char数组和string的相互转换
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
文件io
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源码阅读-配置文件解析过程(五)
前面介绍了logback源码初始化过程是委托给ContextInitializer StaticLoggerBinder ContextInitializer org.slf4j.impl.StaticLoggerBinder#init -> ch.qos.logback.classic.util. ...
分类:其他好文   时间:2020-01-08 14:55:12    阅读次数:89
logback源码阅读-Encoder(五)
类图 配置文件 encoder主要负责输出格式和编码的处理 ch.qos.logback.core.OutputStreamAppender#subAppend LayoutWrappingEncoder encode ch.qos.logback.core.OutputStreamAppender ...
分类:Web程序   时间:2020-01-08 10:28:13    阅读次数:117
记录4--一个有趣的逆序算法
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链码测试方法(go语言单元测试/性能测试)
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
3220条   上一页 1 ... 27 28 29 30 31 ... 322 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!