linuc
文章平均质量分 71
wobrm_zxm
正在学习linuxC
展开
-
Linux简介及Ubuntu安装
Linux简介及Ubuntu安装常见指令系统管理命令打包压缩相关命令关机/重启机器Linux管道Linux软件包管理vim使用用户及用户组管理文件权限管理http://www.weixuehao.com/archives/25Linux简介及Ubuntu安装Linux,免费开源,多用户多任务系统。基于L转载 2017-01-16 13:18:05 · 238 阅读 · 0 评论 -
ubuntu配置vim编辑器
map :call SaveInputData()func! SaveInputData() exec "tabnew" exec 'normal "+gP' exec "w! /tmp/input_data"endfunc""colorscheme torte"colorscheme murphy"colorscheme desert "colorscheme des原创 2017-01-22 22:05:54 · 353 阅读 · 0 评论 -
魔方阵
#include#define N 255void mfz(int m){ int i,j,x,y; int a[N][N]; for(i=0;i<m;i++) for(j=0;j<m;j++) { a[i][j]=0; } x=0; y=(m-1)/2; a[x][y]=1; for(i=2;i<=m*m;i++) { if(x-1<0)原创 2017-01-22 22:59:24 · 268 阅读 · 0 评论 -
二维数组的鞍点
#include#include#include#define N 3void main(){ int a[N][N],n; int i,j,l,h,k; srand(time(NULL)); printf("enter a number:\n"); scanf("%d",&n); for(i=0;i<N;i++) { for(j=0;j<N;j++) { a原创 2017-01-22 23:03:33 · 359 阅读 · 0 评论 -
平面xy坐标轴上找指定点
#include#define N 255void main(){ struct te { int x; int y; //int z; }t; int i,j,s=0,m=1,n=1,px,py; char pri[N][N]; printf("enter (x,y):\n"); scanf("%d%d",&t.x,&t.y); if(t.x>0) { m原创 2017-01-22 23:05:34 · 775 阅读 · 0 评论 -
编写一个C函数,将”I am from shanghai ”倒置为”shanghai from am I”,及将句子中的单词位置倒置,而不改变单词内部结构.
#include #define N 50int i=0;void input(char c[]){ //int i=0; char s; for(;(s=getchar())!='\n';i++) { c[i]=s; } c[i]='\0';}int main(){ int j,k,c=0,j_c=0,jk=0,j_k=0; char str[N],s原创 2017-01-23 17:31:04 · 1144 阅读 · 0 评论