百度空间 | 百度首页 
 
文章列表
 
您正在查看 "c/c++" 分类下的文章

2009-11-04 17:12
类别:c/c++ | 评论(0) | 浏览()
 
2009-10-30 14:28

#include <iostream>
#include <algorithm>
#include <vector>
#include <complex>
#include <cmath>
using namespace std;
typedef complex<double> cpl;
int main(){
cpl c1(1,2);
cpl c2(3,4);
cout<<c1<<endl; //(1,2)
cout<<c2<<endl; //(3,4)
cpl c3 = c1*c2; //-5 + 10 i
cout<<c3<<endl;
cpl c4 = c1+c2;
cout<<c4<<endl; //(4,6)
cpl c5 = c1/c2;

类别:c/c++ | 评论(0) | 浏览()
 
2009-10-28 01:05

#include <sstream>

stringstream mysin;

getline(cin,buff);
cout<<buff<<endl;
mysin.str(buff);
mysin>>cas;

类别:c/c++ | 评论(0) | 浏览()
 
2009-10-04 15:37

逐个字符输出

//start

// exp05.cpp : Defines the entry point for the application.
//

#include "stdafx.h"
#include "exp05.h"

#define MAX_LOADSTRING 100

// Global Variables:
HINSTA

类别:c/c++ | 评论(0) | 浏览()
 
2009-09-19 22:40
//start lex

%{
#include <stdlib.h>
int yyerror(char *);
#include "tmpyacc.h"
%}
%%
[a-z] {
yylval = *yytext -'a';
return VARIABLE;
}
[0-9]+ {
yylval = atoi(yytext);
return INTEGER;
}
[-+()=/*\n] {
yylval = *yytext;
return *yytext;
}
%%
int yywrap(void){
return 1;
}

//end

//start
%token INTEGER VARIABLE
%left '+' '-'
%left '*' '/'
//放置上下的顺序和优先
类别:c/c++ | 评论(0) | 浏览()
 
2009-09-19 22:04
类别:c/c++ | 评论(0) | 浏览()
 
2009-09-19 21:36
类别:c/c++ | 评论(0) | 浏览()
 
2009-09-18 10:00


#include <stdio.h>
#include <iostream>
#include <string>
#include <vector>
#include <fstream>
#include <ctype.h>
#include <algorithm>

using namespace std;

/*
tyName:
Reserved , Operator, Identifier ,Constant,Delimiter
*/
class Token{
private:
string tyName; // name of type
string org; //orgine of Token
int val; // value of Token
string getType(string);
int ge

类别:c/c++ | 评论(0) | 浏览()
 
2009-09-08 09:14

// yjyrun.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <windows.h>

int main(int argc , char * argv[])
{
STARTUPINFO si={sizeof(si)};
PROCESS_INFORMATION pi;
char * file = argv[1];
if (CreateProcess(NULL,file,NULL,NULL,false,0,NULL,NULL,&si,&pi)){
   printf("ok!\n");
}else{
   printf("Sorry!\n");
}
return 0;

类别:c/c++ | 评论(0) | 浏览()
 
2009-07-23 22:05

//start

/** Example 005 User Interface

This tutorial shows how to use the built in User Interface of
the Irrlicht Engine. It will give a brief overview and show
how to create and use windows, buttons, scroll bars, static
texts, and list boxes.

As always, we include the header files, and use the

类别:c/c++ | 评论(0) | 浏览()
 
2009-07-23 21:11

//start

// irrfirst.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <irrlicht.h>
using namespace std;
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;

类别:c/c++ | 评论(0) | 浏览()
 
2009-07-22 12:02

//start

// irrfirst.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <irrlicht.h>
using namespace std;
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using na

类别:c/c++ | 评论(0) | 浏览()
 
2009-07-15 11:50

//start

// irrfirst.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <irrlicht.h>
using namespace std;
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using na

类别:c/c++ | 评论(0) | 浏览()
 
2009-07-14 11:08

最近有个项目 , 要用到 , 感觉很好用 。

环境很好配 ,

//start

// irrfirst.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <irrlicht.h>
using namespace std;
using namespace irr;
using namespace core;
using nam

类别:c/c++ | 评论(0) | 浏览()
 
2009-07-01 15:26
//start
#include <opencv/cv.h>
#include <opencv/highgui.h>
#include <stdlib.h>
#include <stdio.h>

int main( int argc, char** argv ){
    IplImage * src = cvLoadImage(argv[1]);
    CvSize sz;
    double scale = 0.25;
    sz.width = src->width*scale;
    sz.height = src->height*scale;
    IplImage * dest = cvCreateImage(sz,
类别:c/c++ | 评论(0) | 浏览()
 
     
 
 
文章分类
 
 
随笔(35)
 
 
Vs(10)
 
Java(96)
 
Vfp(10)
 
Css(9)
 
 
Python(27)
 
c#(36)
 
 
c/c++(33)
 
 
Php(23)
 
Bt(1)
 
Spoj(10)
 
Usaco(32)
 
Ai(19)
 
Ruby(6)
 
 
C51(25)
 
Lua(4)
 
 
Asm(42)
 
 
Oj(291)
 
Noip(10)
 
Google(26)
 
Jsp(4)
 
 
Qt(31)
 
Opengl(12)
 
 
 
Vrml(1)
 
 
Flex(16)
 
 
 
     
 
文章存档
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
     
 
最新文章评论
   

汗。。。还是tle的。。。
 
 
 

在你这里找到了 Code2HTML ,相当之感谢呢^
 

回复luohai8899:http://hi.baidu.com/xhgis/blog/item/bd51e7192d500970dab4bd37....
 
     


©2009 Baidu