码迷,mamicode.com
首页 >  
搜索关键字:cout    ( 7219个结果
QueryInterface
1 // 08win32console-ATL.cpp : 定义控制台应用程序的入口点。 2 // 3 4 5 #include "stdafx.h" 6 #include 7 #include 8 9 using std::cout; 10 using std::en...
分类:其他好文   时间:2014-05-28 12:48:07    阅读次数:369
关于cout<<ends你不知道的那些事
关于ends是C++中比较基础的一个东西,但是可能不是每个人都能够清楚的理解这是个什么东西,我就经历了这么一个过程,写出来让大家看看,有什么理解的不对的地方欢迎拍砖。今天以前我对ends的理解是:输出空格的工具,或者说这就是一个逼格比较高的“ ”。(这貌似是拜老师所赐,特地翻出课件发现就是这么写的,...
分类:其他好文   时间:2014-05-26 19:21:45    阅读次数:179
C++ Input Output
C++的IO比较复杂,记录一下碰到的问题:#include "stdafx.h"#include using namespace std;int main(int argc, char* argv[]){ cout << 22/5*3 << endl; printf("Hello Wor...
分类:编程语言   时间:2014-05-26 12:42:11    阅读次数:290
C++类型转换
会记下所有C++类型转换的例子在这里:#include "stdafx.h"#include using namespace std;int main(int argc, char* argv[]){ cout<< 22/5*3 <<endl; // 输出12,注意连进位都没有包括 re...
分类:编程语言   时间:2014-05-26 12:14:05    阅读次数:273
c++错误及解决方案随记
————string"未定义标识":添加#include using namespace std;————cout"未定义标识":添加#include
分类:编程语言   时间:2014-05-26 06:45:13    阅读次数:205
C++ 学习1
先看以下简单C++源码#includeint main(){ std::cout>x; std::cout<<"我喜欢"+x+endl;} 第一行的#为预处理标志,用来对文本作预处理操作。表示该行代码要最先进行处理。后面include为预处理指令,最后尖括号,表示将尖括号内的文件在这里读入。文...
分类:编程语言   时间:2014-05-25 19:06:08    阅读次数:240
ZOJ Problem Set - 1005
注意,条件:B>=C 。应考虑B=C的情况。#includeusing namespace std;int A,B,C;void jugs(int a,int b,int C){ if(b==C) { cout=B) { a=A-(B-b...
分类:其他好文   时间:2014-05-24 09:34:19    阅读次数:288
评分系统
#include#includeusing namespace std;int main(){int n,i,j,a[100],u,max,b[100],m,s[100],min;cout>n>>m;for(j=1;j>a[i];s[j]=s[j]+a[i];}max=a[1];for(i=2;im...
分类:其他好文   时间:2014-05-23 02:57:23    阅读次数:267
图像的中值滤波处理
#includeusing namespace std;int main(){int n,m,i,j,k,o,u,p,a[100][100],x[100][100],max[100][100][20],b[100][100];cout>n>>m;cout>a[i][j];}}for(k=1;k=ma...
分类:其他好文   时间:2014-05-23 02:51:18    阅读次数:227
12:00的死亡游戏
#includeusing namespace std;int main(){int n,m,i,j,x[100],a[100],p;cout>n>>m;for(i=1;in){j=(x[i-1]+1)%n;}else{j=x[i-1]+1;}p=1;do{if(a[j]!=0){j++;if(j>...
分类:其他好文   时间:2014-05-23 02:47:17    阅读次数:211
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!