写了一个计算器程序,想分享给大家;同时写到最后感觉有点凌乱,希望各位帮忙给优化下,共同提高。这个计算器可以计算输入的字符串,字符串中可以含括号,可以是小数,也可以包含负数。此程序被拆分在5个文件中,我按文件一一罗列吧:编写环境:VC++6.0。第一个main函数所在文件:#include<stdio.h> #include<stdlib.h> #include<cty
转载:因为是在vmware上装的FreeBSD,用vmware console把玩系统有点麻烦,就是想起可以开启FreeBSD系统的SSH服务器,再用ssh客户端软件(putty)来更省事一点。以下是配置过程,备忘1.开机启动ssh服务,编辑/etc/rc.conf文件 #echo ‘sshd_enabl=”YES’>>/etc/rc.conf2. 编辑
与进程相关的命令:● ps – 产生一个当前所有进程信息的快照[root@centos7rzc ~]# ps aux USER PID %CPU %MEM VSZ RSS&nbs
linux权限相关命令:● id 显示用户ID● chmod 修改文件权限● umask 设置默认的文件权限● su &nb
linux键盘操作技巧光标移动:Ctrl-a Move cursor to the beginning of the line.Ctrl-e Move cursor to the end of the line.Ctrl-f Move cursor forwa
有关命令扩展(Expansion)echo:[root@centos7rzc ~]# echo * #*被扩展成文件名 0227_2.sh 02273.sh 0227.sh anaconda-ks.cfg Desktop Documents Downloads&n
常用命令:pwd:print working directory,查看当前的工作目录;cd ~user_name:进入用户的家目录;[root@centos7l ~]# cd ~bob [root@centos7l bob]#ln file link:创建硬链接;
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号