随笔分类 - Linux Programing
摘要:1.First, create separate source files(imaginatively(想像成) call fred.c and bill.c) for each function.Here's the first:#include <stdio.h>void fred(int arg){ printf("fred: we passed %d\n", arg);}And here's the second:#include <stdio.h>void bill(char *arg){ printf("bill
阅读全文
摘要:在ubuntu vim下编辑如下代码(代码来自《C++标准程序库》p107):#include <iostream>#include <vector>#include <string>#include <algorithm>#include <iterator>using namespace std;int main(){ vector<string> coll; /* read all words from the standard input * - source: all strings until end-of-f
阅读全文
摘要:1.下载 在http://bochs.sourceforge.net/下载bochs源码包(如bochs-2.4.5),放到主文件夹下。2.安装打开终端->tar vxzf bochs-2.4.5.tar.gz->cd bochs-2.4.5->./configure –enable-debugger –enable-disasm上一步如果遇到“bash: ./configure: 权限不够”,终端输入:“chmod 777 configure ”,便可解决。->make->sudo make install3.安装完毕 ->bochs,便可出现如下画面:4
阅读全文