删除无用部分文件夹

This commit is contained in:
zeek 2020-03-14 16:38:08 +08:00
parent 817fb03e24
commit 2d1e90f253
25 changed files with 5 additions and 464 deletions

6
C_C++/.gitignore vendored
View File

@ -1,6 +0,0 @@
tags
*/out/*
*/out/
/out/*
*.o
*.out

View File

@ -1 +0,0 @@
# C++

View File

@ -1,23 +0,0 @@
#!/usr/bin/env bash
#author: lzh
#echo `pwd`
if test -z $1;then
echo "./make.sh -[sources]"
exit 1
fi
echo "prepare"
if [ ! -d "./out" ];then
mkdir out
echo "mkdir out"
fi
echo "prepare finish \n compile"
resource="/sources/$1"
tmp=`echo ${resource} | sed -e "s:sources:out:g"`
out=`echo ${tmp} | sed "s:.c:\.o:g"`
outPath=`dirname ${out}`
if [ ! -d "`pwd`${outPath}" ];then
mkdir `pwd`${outPath}
echo "mkdir `pwd`${outPath}"
fi
gcc -g `pwd`${resource} -o `pwd`${out}
echo "finish"

View File

@ -1,44 +0,0 @@
#include <stdio.h>
#include <stdlib.h>
int main ()
{
char str[20];
printf("输入文件名:");
gets(str);
FILE *fp = fopen(str, "r");
if (fp == NULL )
{
printf("file open failed\n");
return 1;
}
char buff[255];
fgets(buff, 255, fp);
fclose(fp);
//printf("\n%s\n", buff);
int i = 0;
int left = 0, right = 0;
for ( i = 0 ; i < 255; i++ )
{
if ( buff[i] == '\0' || left < right )
{
break;
}
if ( buff[i] == '{' )
{
left ++;
}else if ( buff[i] == '}' )
{
right ++;
}
}
if ( left == right )
{
printf("花括号成对出现\n");
}
else
{
printf("花括号不成对出现\n");
}
return 0;
}

View File

@ -1,10 +0,0 @@
#include <stdio.h>
/**
* 1
*
*/
int increment1 ( int num )
{
return num + 1;
}

View File

@ -1,10 +0,0 @@
#include <stdio.h>
#include "increment.c"
#include "negate.c"
int main()
{
printf("increment(10) = %d\n", increment1(10));
printf("negate(10) = %d\n", negate1(10));
return 0;
}

View File

@ -1,10 +0,0 @@
#include <stdio.h>
/**
*
*
*/
int negate1 ( int num )
{
return 0 - num;
}

View File

@ -1,26 +0,0 @@
#include <stdio.h>
/**
*
*
*
**/
void squares ( int limit )
{
int i; /* loop counter */
/*
* Print table of squares
*/
for (i = 0; i < limit ; i ++)
{
printf("%d %d0", i, i * i);
}
printf("\n");
}
int main()
{
squares(7);
return 0;
}

View File

@ -1,31 +0,0 @@
#include <stdio.h>
int prime(int num)
{
if ( num <=2 ) return 0;
int i,result;
result = 0;
for ( i = 2; i < num ; i++ )
{
if ( num%i == 0 )
{
result = 1;
break;
}
}
return result;
}
int main()
{
int i;
for ( i = 0; i < 100 ; i++)
{
if ( prime(i) == 0 )
{
printf("%d\t", i);
}
}
printf("\n");
return 0;
}

View File

@ -1,54 +0,0 @@
#include <stdio.h>
/**
*
*/
void sort(int arr[],int len)
{
int i;
for (i = 0; i < len - 1; i++)
{
int j;
for ( j = i+1 ;j < len ;j++ )
{
if (arr[i] < arr[j])
{
int tmp;
tmp = arr[i];arr[i] = arr[j]; arr[j] = tmp;
}
}
}
}
int main(int argc,char *argv[])
{
if (argc != 4)
{
printf("error!\n");
return 1;
}
int arr[3];
arr[0] = atoi(argv[1]);
arr[1] = atoi(argv[2]);
arr[2] = atoi(argv[3]);
//printf("arr[0] = %d,arr[1] = %d,arr[2] = %d\n", arr[0],arr[1],arr[2]);
sort(arr,3);
//printf("arr[0] = %d,arr[1] = %d,arr[2] = %d\n", arr[0],arr[1],arr[2]);
if (arr[2] + arr[1] <= arr[0])
{
printf("构不成三角形\n");
}
else if ( arr[1] == arr[2])
{
printf("等腰三角形\n");
}
else if ( arr[0] == arr[1] && arr[1] == arr[2])
{
printf("正三角形\n");
}
else
{
printf("普通三角形\n");
}
return 0;
}

View File

@ -1,7 +0,0 @@
#include <stdio.h>
int main()
{
printf("hello word %s\n", "zeekling");
return 0;
}

View File

@ -1,16 +0,0 @@
#include <stdio.h>
#include <stdlib.h>
/*
* === FUNCTION ======================================================================
* Name: main
* Description:
* =====================================================================================
*/
int main ()
{
char hello[] = {'h','e','l','l','o',' ','w','o','r','l','d','\n',0};
printf("hello world\n");
printf(hello);
return EXIT_SUCCESS;
}

View File

@ -1,18 +0,0 @@
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
int catch(int sign);
int main(void){
signal(SIGINT, catch);//将信号与catch函数关联
printf("lingzhaohui \n");
sleep(10);
printf("end\n");
return 0;
}
int catch(int sign){
printf("\nyou pressed 'ctrl+c'\n");
return 1;
}

View File

@ -1,16 +0,0 @@
#include <stdio.h>
#include <unistd.h>
int main(void)
{
pid_t pid;
printf("father \n");
printf("fork \n");
pid = fork();
if(!pid)
printf("child \n");
else if(pid>0)
printf("i m the parent ,child pid %d\n",pid);
else
printf("fork failed \n");
}

View File

@ -1,16 +0,0 @@
#include <stdio.h>
int go(int n){
int count = 0;
while(n){
count ++;
n = (n-1) & n;
}
return count;
}
int main(){
int count = go(9);
printf("%d\n",count);
return 0;
}

View File

@ -1,19 +0,0 @@
#include <stdio.h>
int power(double base, int expo){
if(expo <= 0) return 1;
double result;
if((expo%2) == 0){
result = power(base,expo>>1)*power(base,expo>>1);
}else{
result = power(base,(expo-1)>>1)*power(base,(expo-1)>>1)*base;
}
return result;
}
int main(){
double result = power(2,4);
printf("%f\n",result);
return 0;
}

View File

@ -1,10 +0,0 @@
#include <stdio.h>
int main(){
int y = 1,x,a[] ={2,4,6,8,10},*p;
p = &a[1];
for(x = 0;x<3;x++){
y = y + *(p+x);
}
printf("%d \n ",y);
return 0;
}

View File

@ -1,11 +0,0 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
char *reverse(char *str){
}
int main(){
char *str = "hello world null";
}

View File

@ -1,14 +1,11 @@
## 目录
* [ORACLE](http://www.zeekling.cn/gogs/zeek/study/src/master/oracle)
* [Linux](http://www.zeekling.cn/gogs/zeek/study/src/master/linux)
* [Java知识](http://www.zeekling.cn/gogs/zeek/study/src/master/java)
* [Mysql](http://www.zeekling.cn/gogs/zeek/study/src/master/mysql)
* [c语言](http://www.zeekling.cn/gogs/zeek/study/src/master/c)
* [计算机网络](http://www.zeekling.cn/gogs/zeek/study/src/master/network)
* [操作系统](http://www.zeekling.cn/gogs/zeek/study/src/master/computer)
* [个人简历](http://www.zeekling.cn/gogs/zeek/study/src/master/resume)
* [ORACLE](./oracle)
* [Linux](./linux)
* [Java知识](./java)
* [Mysql](./mysql)
* [计算机网络](./network)
## 结束语

View File

@ -1,36 +0,0 @@
# Summary
* [简介](README.md)
* [java相关](java/README.md)
* [linux相关](linux/README.md)
* [常见问题](linux/error.md)
* [树莓派使用](linux/树莓派使用教程.md)
* [awk详解](linux/awk/README.md)
* [Nginx参数调优](linux/nginx.md)
* [git详解](linux/git.md)
* [sed详解](linux/sed/README.md)
* [Linux常用命令](linux/commond.md)
* [centos相关](linux/centos/READMD.md)
* [centos问题总结](linux/centos/centos问题总结.md)
* [centos软件安装](linux/centos/hack软件安装.md)
* [C/C++](C_C++/README.md)
* [oracle相关](oracle/README.md)
* [docker下使用oracle](oracle/docker_oracle.md)
* [dual表的用途](oracle/dual表的用途.md)
* [oracle常用命令和函数](oracle/oracle常用命令和函数.md)
* [oracle常见问题](oracle/oracle常见问题.md)
* [oracle数据类型](oracle/oracle数据类型.md)
* [系统相关](oracle/sys/README.md)
* [dbms常用系统包详解](oracle/sys/dbms常用系统包详解.md)
* [oracle常见系统表的用法](oracle/sys/oracle常见系统表的用法.md)
* [python相关](python/README.md)
* [计算机网络](network/README.md)
* [简历](resume/README.md)
* [我的简历--markdown版](resume/mine.md)

Binary file not shown.

View File

@ -1,75 +0,0 @@
{
"root":"./",
"author":"小令童鞋",
"description":"没有到不了的明天,只有回不了的昨天",
"plugins":["github",
"-sharing",
"-search",
"sharing-plus",
"-highlight",
"expandable-chapters-small",
"mathjax",
"splitter",
"disqus",
"3-ba",
"theme-comscore",
"search-plus",
"prism",
"prism-themes",
"github-buttons",
"ad",
"tbfed-pagefooter",
"ga",
"alerts",
"anchors",
"include-codeblock",
"ace"
],
"links":{
"sidebar":{
"主页":"http://www.zeekling.cn"
}
},
"pluginsConfig":{
"sharing":{
"douban":false,
"facebook":false,
"qq":false,
"qzone":false,
"google":false,
"all": [
"weibo","qq","qzone","google","douban"
]
},
"disqus":{
"shortName":"zeekling"
},
"ad":{
},
"include-codeblock":{
"template":"ace",
"unindent":true,
"theme":"monokai"
},
"tbfed-pagefooter":{
"Copyright":"&copy zeekling.cn",
"modify_label":"文件修改时间",
"modify_format":"YYYY-MM-DD HH:mm:ss"
},
"3-ba":{
"token":"zeekling"
},
"ga":{
"token":"zeekling",
"configuration":{
"cookieName":"zeekling",
"cookieDomain":"book.zeekling.cn"
}
},
"github":{"url":"http://www.zeekling.cn/gogs/zeek"},
"theme-default": {
"showLevel": true
}
}
}

View File

@ -1,2 +0,0 @@
# 计算机操作系统复习

View File

@ -1,15 +0,0 @@
#!/usr/bin/env python
# coding: utf-8
a = [1, 2, 3]
b = [4, 5, 6]
print(a)
print(b)
# 将b作为a的第四个元素
a.append(b)
print("a.append(b):", a)
a = [1, 2, 3]
a.extend(b)
print("a.extend(b):", a)
print(a[:2])
print(a[2:])