码迷,mamicode.com
首页 >  
搜索关键字:c char c++ string    ( 126199个结果
Http和FTP下载文件
说起下载文件,大家都会想起http和FTP下载。http和ftp,其实底层都是基于socket通信,只不过http和ftp协议格式定义不一样而已。下载文件,要看服务器支持什么类型的协议,如果只支持http,那你就用httpwebrequest类好了,如果支持FTP,那你就用FTP的类来下载文件。 下 ...
分类:Web程序   时间:2021-06-02 11:39:05    阅读次数: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
杨辉三角
package array.test;public class Test2 { public static void main(String[] args) { //1. 声明并初始化二维数组 int[][] arr = new int[10][]; //2.给数组元素赋值 for (int i = ...
分类:其他好文   时间:2021-06-02 11:17:11    阅读次数: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
Must create DependencySource on same Thread as the DependencyObject
WPF 错误:Must create DependencySource on same Thread as the DependencyObject 先看数据模型类吧 public class MessageInfo { public string Message { get; set; } pub ...
分类:其他好文   时间:2021-06-02 10:51:43    阅读次数: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 1769. Minimum Number of Operations to Move All Balls to Each Box
You have n boxes. You are given a binary string boxes of length n, where boxes[i] is '0' if the ith box is empty, and '1' if it contains one ball. In ...
分类:其他好文   时间:2021-06-02 10:37:12    阅读次数:0
Spring 注解动态数据源设计实践
Spring 动态数据源 动态数据源是什么?解决了什么问题? 在实际的开发中,同一个项目中使用多个数据源是很常见的场景。比如,一个读写分离的项目存在主数据源与读数据源。 所谓动态数据源,就是通过Spring的一些配置来自动控制某段数据操作逻辑是走哪一个数据源。举个读写分离的例子,项目中引用了两个数据 ...
分类:编程语言   时间:2021-06-02 10:33:00    阅读次数:0
126199条   上一页 1 ... 42 43 44 45 46 ... 12620 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!