码迷,mamicode.com
首页 >  
搜索关键字:char argv    ( 37715个结果
4道Python文件操作和函数练习题
一.利用b模式,编写一个cp工具,要求如下: 既可以拷贝文本又可以拷贝视频,图片等文件 用户一旦参数错误,打印命令的正确使用方法,如usage: cp source_file target_file 提示:可以用import sys,然后用sys.argv获取脚本后面跟的参数 #Python学习交流 ...
分类:编程语言   时间:2021-06-02 12:04:56    阅读次数:0
1000F.One Ocurrence(可持久化线段树+思维)
这题很妙。 多去完成这种级别的题目,建模能力才会真正得到提高。 题解干完springboot活补。 #include<bits/stdc++.h> using namespace std; inline int read() { int x=0,f=1;char c=getchar(); while ...
分类:其他好文   时间:2021-06-02 12:02:18    阅读次数:0
c语言中统计字符串中数字字符出现的次数
c语言中统计字符串中数字字符出现的次数。 1、 #include <stdio.h> void int_count(char x[], int cnt[]) { int i; while(x[i]) { if(x[i] >= '0' && x[i] <= '9') { cnt[x[i] - '0'] ...
分类:编程语言   时间:2021-06-02 11:38:03    阅读次数:0
c语言中使用putchar显示字符串
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
c语言 9-7
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
socket_client
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/un.h> #include <netinet/in.h> ...
分类:其他好文   时间:2021-06-02 10:49:05    阅读次数:0
leetcode 200 岛屿数量
简介 使用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
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
37715条   上一页 1 ... 11 12 13 14 15 ... 3772 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!