![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C语言编程
x_y_r129
这个作者很懒,什么都没留下…
展开
-
文章标题
将一个字符串反向排列,不使用库函数中对字符串的的操作原创 2015-08-26 22:17:56 · 287 阅读 · 0 评论 -
猜拳游戏
#include<stdio.h> #include<string.h> #include<stdlib.h> #include<time.h> #include<windows.h>//宏定义 #define NAME_SIZE 20 #define PASSWD_SIZE 20 #define NAME "zhangsan" #define PASSWD "123456" #define TRU原创 2015-11-05 19:37:31 · 347 阅读 · 0 评论 -
旋转字符串
# include <stdio.h> # include <string.h> # include <assert.h>/*char *left_rorate(char *str,int n) { int i = 0; int j = 0; char tmp = str[0]; int len = strlen(str); assert(str); f原创 2015-11-05 18:52:41 · 382 阅读 · 0 评论 -
从键盘接收字符并输出对应大写或小写
# include <stdio.h> # include <string.h>int main() { char c = 0; while ( (c = getchar()) != EOF) { if (c >= 'a' && c <= 'z') { printf ("%c ",c-32);原创 2015-08-27 22:08:15 · 789 阅读 · 0 评论 -
实现strstr函数
# include <stdio.h> # include <assert.h> # include <string.h>char *my_strstr(const char *str,const char *sub_str) { const char *p = str; const char *q = sub_str; assert(str); assert(sub原创 2015-08-28 12:02:20 · 385 阅读 · 0 评论 -
c语言棋盘游戏
C语言棋盘游戏原创 2015-08-26 22:07:45 · 664 阅读 · 0 评论 -
实现函数itob
# include <stdio.h> # include <assert.h> # include <string.h> void swap(char *p1,char *p2) { char tmp = *p1; *p1 = *p2; *p2 = tmp; }void reverse(char *start,char *end) { assert(start !=原创 2015-08-27 22:16:05 · 518 阅读 · 0 评论 -
打印杨辉三角
杨辉三角原创 2015-08-27 22:01:01 · 291 阅读 · 0 评论 -
进制转换
# include <stdio.h> # include <assert.h> # include <string.h> void swap(char *p1,char *p2) { char tmp = *p1; *p1 = *p2; *p2 = tmp; }void reverse(char *start,char *end) { assert(start !=原创 2015-11-05 19:48:23 · 243 阅读 · 0 评论