摘要: 翻译 编写一个程序复制其输入到输出,替换包含一个或者多个空格的字符串为单个空格。 例如输入 ni hao ma ? 替换为 ni hao ma ? black.c 代码 #include <stdio.h> int main(void){ int c, blank_recieved = 0; //f 阅读全文
posted @ 2022-02-17 11:04 冯元春 阅读(91) 评论(0) 推荐(0)
摘要: Write a program to count blanks, tabs, and newlines 什么是空格、制表符、换行符,在assic中是什么,在c语言中又如何表示呢? 空格:' ' 制表符:'\t' 换行符:'\n' #include<stdio.h> int main(){ char 阅读全文
posted @ 2022-02-16 17:55 冯元春 阅读(438) 评论(0) 推荐(0)
摘要: 原文 The next program counts input lines. As we mentioned above, the standard library ensures that an input text stream appears as a sequence of lines, 阅读全文
posted @ 2022-02-10 18:32 冯元春 阅读(755) 评论(0) 推荐(0)
摘要: // 开始的时钟时间(秒) $start_time = microtime(true); 内容 // 结束的时钟时间(秒) $end_time = microtime(true); // 计算脚本执行时间 $execution_time = ($end_time - $start_time); 阅读全文
posted @ 2022-01-05 11:16 冯元春 阅读(138) 评论(0) 推荐(0)
摘要: It's a shame, that for a 20 years of development we don't have mb_basename() yet! // works both in windows and unix function mb_basename($path) { if ( 阅读全文
posted @ 2021-12-20 14:40 冯元春 阅读(53) 评论(0) 推荐(0)
摘要: git config --global core.filemode false 阅读全文
posted @ 2021-12-16 14:25 冯元春 阅读(191) 评论(0) 推荐(0)
摘要: 1.ctrl+alt+t 打开终端。 2.输入sudo nautilus。 3.进行复制等操作。 阅读全文
posted @ 2021-12-13 10:07 冯元春 阅读(2209) 评论(0) 推荐(0)
摘要: location / { try_files $uri $uri/ /index.php?$args; } # Add trailing slash to */wp-admin requests. rewrite /wp-admin$ $scheme://$host$uri/ permanent; 阅读全文
posted @ 2021-12-08 11:39 冯元春 阅读(117) 评论(0) 推荐(0)
摘要: 下载地址 http://math.ecnu.edu.cn/~jypan/Teaching/ParaComp/books/The%20C%20Programming%20Language%202nd.pdf 豆瓣介绍 https://book.douban.com/subject/1882483/ 阅读全文
posted @ 2021-12-06 13:47 冯元春 阅读(86) 评论(0) 推荐(0)
摘要: https://www.myfreax.com/how-to-install-elasticsearch-on-ubuntu-18-04/ 开放远程所需要的设置 vim etc/elasticsearch/elasticsearch.yml network.host: 0.0.0.0 # # By 阅读全文
posted @ 2021-11-30 16:56 冯元春 阅读(78) 评论(0) 推荐(0)