// CLoadPictureApp 消息处理程序
using namespace cv;
int main(int argc, char* argv[])
{
Mat img = imread("lena.jpg");
if(!img.data)
return -1;
NameWindow("lovelena", CV_WINDOW_AUTOSIZE);
imshow("lovelena", img);
......................
阅读全部
|
CC猫
贴于 2012年3月30日 06:22
hide
bbsi
#include "iostream.h"
#include "iomanip.h"
void main()
{ const double Pi=3.14159;
double r=6.779,c,s;
c=2.0*pi*r;//计算圆的周长
s=pi*r*r;//计算圆的面积并以指数格式输出面积和周长
cout<<"圆的周长为:"<<setiosflags(ios::scientific)<<c<<endl;
cout<<"圆的面积为:"<<s<<endl;
cout<<"圆的周长为:"<<setiosflags(ios::fixed)<<c<<endl;
cout<<"圆的面积为"<<setiosflags(ios::fixed)<<s<<endl;
......................
阅读全部
|
Nitpicker
贴于 2012年3月28日 21:52
hide
bbsi
#include<iostream>
#include<string>
#include<vector>
using namespace std;
int main()
{
vector<string>names;
vector<int>value;
string a;
int b,i;
while(cin>>a&&cin>>b)
{
......................
阅读全部
|
feng12356
贴于 2012年3月25日 22:02
hide
bbsi
#include "iostream"
#include <time.h>
using namespace std;
void main()
{
srand( (unsigned)time( NULL ) );
int number = rand() % 100;
int count=0;
bool ok=true;
int small=0;
int large=100;
......................
阅读全部
|
王向
贴于 2012年3月16日 04:53
hide
bbsi
#include<iostream.h>
#include<iomanip.h>
enum error_code{success,overflow,underflow};
typedef struct node{
int data;
struct node *next;
}node;
class queue{
public:
queue();
~queue();
bool empty()const;
......................
阅读全部
|
鱼鱼儿丸子
贴于 2012年3月5日 04:47
hide
bbsi
#include<iostream>
#include<cstring>
using namespace std;
int main()
{
const char *cp1="hello world";
const char *cp2="thank you very much";
strcat(cp1,cp2);
cout<<cp1<<endl;
return 0;
}
阅读全部
|
LSW734371815
贴于 2012年2月25日 21:46
hide
bbsi
#include <iostream>
#include <fstream>
using namespace std;
struct staff
{
int num;
char name[20];
int age;
double pay;
};
int main()
{
......................
阅读全部
|
xiaoxiao6263
贴于 2012年2月6日 17:28
hide
bbsi
#include <iostream>
#include <fstream>
using namespace std;
struct staff
{
int num;
char name[20];
int age;
double pay;
};
int main()
{
......................
阅读全部
|
xiaoxiao6263
贴于 2012年2月6日 17:28
hide
bbsi
#include <iostram>
using namespace std;
int main()
{
cout<<"i"<<endl;
return 0;
}
阅读全部
|
CooperOne
贴于 2012年1月26日 05:38
hide
bbsi
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
class tongxun//类名
{
public:
tongxun();
string name;//姓名
......................
阅读全部
|
hao136913540
贴于 2011年12月29日 00:45
hide
bbsi