码迷,mamicode.com
首页 >  
搜索关键字:while read line for ifs    ( 74720个结果
类成员函数[转]
类成员函数除了static数据成员,类还可以有static成员函数。静态成员函数只能访问其他的static成员,包括数据成员和成员函数。例3-38本例声明了一个内联的static成员函数getN。在例3-35中,我们知道对象和非静态成员函数(包括构造函数和析构函数)可以访问像n这样的static数据...
分类:其他好文   时间:2014-07-02 19:44:32    阅读次数:220
分支-04. 出租车计价(15)
#includeusing namespace std;int main(){ double miles; int time,fee; while(cin>>miles>>time){ if(miles<=3) fee=10+(time/5)*2; else if(miles<=10) ...
分类:其他好文   时间:2014-07-02 19:13:40    阅读次数:241
Bad configuration option localCommand
command-line: line 0: Bad configuration option: PermitLocalCommand2011-12-08 14:04:54标签:Bad configuration optionPermitLocalCommand职场休闲废话少说,问题描述与解决今天在一...
分类:其他好文   时间:2014-07-02 18:59:08    阅读次数:289
分支-06. 成绩转换(15)
#includeusing namespace std;int main(){ int p; while(cin>>p) if(p>=90) cout=80) cout=70) cout=60) cout<<"D"<<endl; else cout<<"E"<<endl; r...
分类:其他好文   时间:2014-07-02 18:57:53    阅读次数:152
UINavigationController
UINavigationController返回总结:1、弹出当前视图控制器(弹出并向左显示前一个视图)[self.navigationController popViewControllerAnimated:YES];2、弹出到指定视图控制器(回到指定视图控制器,也就是不只弹出一个)[self.n...
分类:其他好文   时间:2014-07-02 18:30:38    阅读次数:171
Google Hacking
Google Hacking指利用google搜索引擎搜索信息来入侵的技术和行为intitle 把网页的URL的某个字符作为搜索条件intext 把网页中的正文内容中的某个字符作为搜索条件inurl 用户搜索网页上包含的URLfiletype 指定类型的文件cache 搜索关于某些内容的缓存还有一些...
分类:其他好文   时间:2014-07-02 17:36:52    阅读次数:321
分支-14. 简单计算器(10)
1 #include 2 using namespace std; 3 int main(){ 4 int a,b; 5 char s; 6 while(cin>>a){ 7 cin>>s>>b; 8 if(s=='+') 9 ...
分类:其他好文   时间:2014-07-02 17:36:14    阅读次数:149
CentOS: Make Command not Found and linux xinetd 服务不能启动
在centos 5下安装软件遇到的问题,google了一圈,是因为系统没有安装编译器,那安装就是了,嘿嘿。解决办法,在SSH下输入下面的命令yum -y install gcc automake autoconf libtool makelinux xinetd 服务不能启动:[root@capaa...
分类:Web程序   时间:2014-07-02 17:34:23    阅读次数:288
分支-15. 日K蜡烛图(15)
1 #include 2 using namespace std; 3 int main(){ 4 float o,h,l,c; 5 while(cin>>o>>h>>l>>c){ 6 if(co) 9 couto&&h>c)14 ...
分类:其他好文   时间:2014-07-02 17:29:47    阅读次数:264
分支-03. 三天打鱼两天晒网(15)
#includeusing namespace std;int main(){ int days; while(cin>>days){ if(days%5=1) cout<<"Fishing in day "<<days<<endl; else cout<<"Drying in day ...
分类:其他好文   时间:2014-07-02 14:50:19    阅读次数:198
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!