帐前卒专栏

code, software architect, articles and novels.
代码,软件架构,博客和小说

someone passed away
someone was born
someone had gone
someone is in
once I had fallen in
now I have got through
time passes by
memory fades away
I am not myself
I am still me

use direction keys to rotate block into hole!

thinking harder!

[swfobj src=“http://chillyc.info/wp-content/uploads/2010/01/bloxorz_miniclip.swf” alt=“use direction keys to rotate block into hole!”]

http://www.kongregate.com/games/Coolio_Niato/light-bot

this game is fitable for programmer.

[swfobj src=“http://chillyc.info/wp-content/uploads/2010/01/light-bot.swf” alt=“http://www.kongregate.com/games/Coolio_Niato/light-bot”]

Write first formula using latex here:

α+β=xδ+3/y\alpha+\beta=x^{\delta+3}/y

wooo~~~~

write first c++ code here:
1
2
3
4
5
6
7
8
9
10
#include<iostream>
#include<string>
using namespace std;
int main()
{
cout << "Hello my first code!" << endl;
cout << "this codeSyntax looks great!" << endl;
return 0;
}

I use WP-synhighlight plugin to do this. I like it.

I have found some funny picture in web.  Now I share them:

How to play a computer game:

How to escape from the mouth of wolf

can pig swim?

Do you know lots of programming language than him?

How to find Osama bin Laden?

Have you seen the smiles of those people? rotate 180 Degree!

how to get back your stolened? If you learned Chinese, you will know the meaning of this letter.

如果你定义了个模板函数例如:

template void write(fstream & f, T &a) { … }

那么在调用时写 write(f,a);

就有可能出现expected primary-expression before
"double"的错误。这是因为有可能有的头文件中有write这个函数,并且它不是模板函数,那么就会导致expected primary-
expression before错误。只要上面改动一下函数名就可以解决。

This is my first English bolg site. What will I write? But like the first step of learning each language, that how to write "Hello World" is the important thing, now I will write the first blog in this site using these words.

write(“Hello world!”).

variable 'std:ofstream’ has initializer but incomplete type

或者是 variable 'std:ifstream’ has initializer but incomplete type

其原因是因为没有包含fstream这个头文件。

#include #include #include using namespace std; int
main() { fstream f(“filename”); f << 20; f.close(); }
上面这段代码如果没有那个就会有标题的错误。

0%