![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c语言
文章平均质量分 83
Uin-
这个作者很懒,什么都没留下…
展开
-
1029 子串
现在有一些由英文字符组成的大小写敏感的字符串,你的任务是找到一个最长的字符串x,使得对于已经给出的字符串中的任意一个y,x或者是y的子串,或者x中的字符反序之后得到的新字符串是y的子串。#include<stdio.h>#include<string.h>int t,n;char str[100][101];int searchMaxSubString(char* sour...原创 2018-04-18 12:57:06 · 245 阅读 · 0 评论 -
c语言 电话簿管理系统 用函数实现
c语言上机课程 纠结了很久用函数还是链表,顺序表 感觉函数比较简单实现:最后显示对齐还可以使用"%3d%20s%20s%20s\n"使字节对齐我用的\t 不够灵活 输入位数不一样的数时就不能对齐了#include<stdio.h>#include<string.h>typedef struct Contact { char name[21]; char phone[21]...原创 2018-04-24 10:53:04 · 7091 阅读 · 3 评论 -
c语言2进制转3进制
#include<stdio.h>#include<iostream>#include<algorithm>using namespace std;int main(){ int n; int length; int ans[70]; char c[70]; unsigned long long res; scanf("%d",&n); while(n-...原创 2018-05-26 12:51:51 · 1265 阅读 · 0 评论