上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 22 下一页
摘要: 思路:利用桶排序思想 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> int main() { char chs[] = "absdfdsfsafsafssdc"; char arr[26] = 阅读全文
posted @ 2020-10-31 22:33 冬马党 阅读(247) 评论(0) 推荐(0)
摘要: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sc 阅读全文
posted @ 2020-10-27 11:12 冬马党 阅读(138) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <stdlib.h> #include <time.h> int main() { srand(time(0)); int number = rand() % 100 + 1; int count = 0; int a = 0; do{ pri 阅读全文
posted @ 2020-10-25 10:23 冬马党 阅读(266) 评论(0) 推荐(0)
摘要: 回文数:121 #include <stdio.h> int main() { int val; int sum = 0; printf("请输入val:\n"); scanf("%d",&val); int m = val; while (m){ sum = sum * 10 + m % 10; 阅读全文
posted @ 2020-10-25 09:13 冬马党 阅读(242) 评论(0) 推荐(0)
摘要: package com.jpush; import cn.jpush.statistics.excel.model.AdSettlementInfoModel; import cn.jpush.statistics.model.entity.AdSettlementInfo; import java 阅读全文
posted @ 2020-10-23 18:08 冬马党 阅读(111) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-10-15 09:39 冬马党 阅读(2321) 评论(0) 推荐(0)
摘要: 指针常量: int * const a = 10; 特点:指针不可以改,指针指向的值可以改 常量指针:const int * a = 20; 指针可以改,指针指向的值不可以改。 引用:在c++就是指针常量,在用到引用的地方都会解引用 阅读全文
posted @ 2020-10-14 21:16 冬马党 阅读(146) 评论(0) 推荐(0)
摘要: #include <iostream> //#include "add.h" #define MAX 10 using namespace std; void showMenu(){ cout<<"********************"<<endl; cout<<"*****1,添加联系人*** 阅读全文
posted @ 2020-10-13 23:19 冬马党 阅读(226) 评论(0) 推荐(0)
摘要: 思路:相邻两个数进行比较,如果小的下标比大的下标数大,则交换 #include <iostream> using namespace std; int main() { int arr[] = {11,2,4,6,4,8,93,4,4,56,77,1,8,89,9} ; int len = size 阅读全文
posted @ 2020-10-13 07:30 冬马党 阅读(97) 评论(0) 推荐(0)
摘要: 思路:定义一个左指针和一个右指针,然后判断大小,然后交换 #include <iostream> using namespace std; int main() { int arr[] = {1,2,3,4,5,6,7} ; int left = 0; int right = sizeof(arr) 阅读全文
posted @ 2020-10-12 23:20 冬马党 阅读(111) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 22 下一页