随笔分类 -  c++

about c++
摘要:百度和google的好多例子都不能运行,贴一个自己试出来的。借鉴了cegui的自带例子。#include "stdafx.h"#include "CEGUIFirstWindow.h"#include "CEGUI.h"#include <CEGUIDefaultResourceProvider.h>int main(int /*argc*/, char* /*argv*/[]){ // This is a basic start-up for the sample application which is // obje 阅读全文

posted @ 2012-03-22 15:29 chateldon

摘要:第一个问题,下一个破解版的VX_A.dll,将其覆盖以前的dll即可,但是目录有所要求,如下:XP系统:系统盘\Documents and Settings\用户名\Local Settings\Applicationwin7或者vistaData\Microsoft\VisualStudio\10.0\Extensions\Whole Tomato Software\Visual Assist X\10.6.1833.0Vista,Windows 7 等:系统盘\Users\帐户名\AppData\Local\Microsoft\VisualStudio\10.0\Extensions\Wh 阅读全文

posted @ 2012-03-19 10:57 chateldon

摘要:原因:工程没有添加预处理头文件解决:添加预处理头文件即可 阅读全文

posted @ 2012-03-15 10:26 chateldon

摘要:在osg3.0里 这个函数应该改名为了 setCameraManipulator 把addCameraManipulator 改成 setCameraManipulator ,即可 阅读全文

posted @ 2012-03-08 10:50 chateldon

摘要:解决方法一:工程属性 ---- 链接 --- 输入 -- 附加依赖项 ......或者 代码中的 #pragma comment(lib , "***.lib ");如果已经有上述的操作还是出现问题,解决方法二:工程属性 ---- vc++ ----库目录里的lib目录改成lib/Debug;lib/Release;今天遇到问题的解决方法。。。。 阅读全文

posted @ 2012-03-05 10:17 chateldon

摘要:// erasing from vector#include <iostream>#include <vector>using namespace std;int main (){ unsigned int i; vector<unsigned int> myvector; // set some values (from 1 to 10) for (i=1; i<=10; i++) myvector.push_back(i); // erase the 6th element myvector.erase (myvector.begin()+5); 阅读全文

posted @ 2012-02-21 13:43 chateldon

摘要:fstream fin;string out;fin.open("abc.txt");fin>>out;cout<<out;//////////////////////////////这样写的话,只能读到第一个空格符之前//为什么不是最后一个字符串而是第一个呢、?换成:while(fin>>out){ cout<<out<<endl;}/////////////////////////////才能完全显示txt的内容。 阅读全文

posted @ 2012-02-17 17:12 chateldon

导航