|
[己解决]关于第15章,区块合并有出入?
m_pntHeaders->FileHeader.NumberOfSections = nSectionNum - nIndex+1;// 现在的区块数 这个nIndex在for循环外面了?? 难道外层也有定义一个nIndex变量,而且还符合当下的语意? |
|
[求助]问一个超级简单的问题,关于C++头文件
花了4个小时比较人家的源码才发现原来 template<class TYPE> Array<TYPE>::Array( int sz) 这个格式才是正确的 |
|
[求助]问一个超级简单的问题,关于C++头文件
刚才看了参考文档,似乎这些还不是我现在最关心的 我现在不知道自己写一段code,哪些代码应该放头文件,哪些代码应该放代码文件。 还是就是我用了模板,发现我的程序根本通不过编译,也不知道错误在哪里。我现在只是希望能解决这些最基本问题,可以一边看书上的代码效果一边学习! |
|
[求助]问一个超级简单的问题,关于C++头文件
array.h template <class elemType> class Array { public: explicit Array( int size = DefaultArraySize ); Array( elemType *array, int array_size ); Array( const Array &rhs ); virtual ~Array() { delete [] ia; } bool operator==( const Array& ) const; bool operator!=( const Array& ) const; Array& operator=( const Array& ); int size() const { return _size; } virtual elemType& operator[](int index) { return ia[index]; } virtual void sort(); virtual elemType min() const; virtual elemType max() const; virtual int find( elemType value ) const; protected: static const int DefaultArraySize = 12; int _size; elemType *ia; }; array.cpp #include "stdafx.h" #include "Array.h" #include <iostream> using namespace std; Array::Array( int sz) { _size = sz; ia = new elemType[ _size ]; for ( int ix=0; ix < _size; ++ix ) ia[ ix ] = 0; } Array::Array( elemType *array, int sz ) { _size = sz; ia = new elemType[ _size ]; for ( int ix=0; ix < _size; ++ix ) ia[ix ] = array[ ix ]; } Array::Array( const Array &rhs ) { _size = rhs._size; ia = new elemType[ _size ]; for (int ix = 0; ix < _size; ix++ ) ia[ ix ] = rhs.ia[ ix ]; } int _tmain(int argc, _TCHAR* argv[]) { const int array_size = 4; Array<int> ia(array_size); Array<double> da(array_size); Array<char> ca(array_size); int ix; for ( ix = 0; ix < array_size; ++ix ) { ia[ix] = ix; da[ix] = ix * 1.75; ca[ix] = ix + 'a'; } for ( ix = 0; ix < array_size; ++ix ) cout << "[ " << ix << " ] ia: " << ia[ix] << "\tca: " << ca[ix] << "\tda: " << da[ix] << endl; return 0; } |
|
想装个虚拟机vmware,这里的朋友能帮忙提供下吗。
借地方给我问一下,昨天装虚拟机,想在虚拟机C盘重新装一次系统,发现一直就是虚拟机的HDD先启动,没有办法先启动ISO重新灌,只能重新做一个虚拟机。 我想请问是虚拟机就不支持CD优先HDD启动还是我不会设置。(我没有测试过是不是可以FDD先启动) |
|
[求助]怎样反汇编或反编译后缀为.fls的文件
如果这个格式文件很普遍,可以网上搜索看看有没有人家研究过的成果,如果不是PE文件,我认为就算要反向也不是反向你说的这个*.fls,应该是要反向那个加载程序吧!因你文件中代码的意义是那个加载文件解释的. |
|
[求助]怎样反汇编或反编译后缀为.fls的文件
这个是PE文件?如果是数据文件或者是非PE类的P-Code文件,这个说不上反汇编概念了吧 |
|
[讨论]mov edi,edi
想过可能是和补丁有关,可是没有想到这个原来比NOP更有效率 |
|
[求助]IDA搜索字符串的问题
我的问题不是要修改这个程序,就这个程序我用W32Dasm分析就可以了 我的问题是在普遍的情况下用IDA搜索中文字符出现这个问题如何解决,有没有人遇见类似问题并有解决经验的。 |
|
[求助]0F34的问题
我也不知道操作系统是怎么设计的,可是我想一个功能强大的操作系统应该非常复杂,有很多的命令。如果权限要实现分层,每层的相关指令接口API必须要包装好,这个会影响系统的效率。 ring1/ring2为将来的功能扩展提供了可能 可是除非真的非常必要,不然不用牺牲效率来换意义不大的更多权限分层。 |
|
[求助]0F34的问题
WINDOWS没有用这2层,所以只有2个等级权限 |
|
[求助]0F34的问题
我不能回答你第一个问题,听说是softice和windbg是调试内核的工具。winice我不知道,od应该是ring3的工具 问题2和3的回答:ring只有0到3,而且WINDOWS系统只用了ring0和ring3,没有ring1/ring2 |
|
[调查]有人需要初学者做帮手吗?
谢谢您的鼓励,我只是吃不准我现在学习的顺序是不是对的,按正确的学习步骤学起来应该比较快一些,您说的那种突然想明白的感觉我也是会有,可是我有时也会气自己好简单的东西就因为一点点内容不了解,卡好久浪费时间! |
|
[求助]请问一下一个14.8M的程序加压缩壳最小可以到多少M
完全取决于程序吧!我想理论上无法压更小的可能也是有的。 |
|
[调查]有人需要初学者做帮手吗?
我感觉有些东西学的很吃力,特别是看加密解密这本书,书的介绍说是对汇编语言有大致的了解就可以,了解C会有帮助,可是我学过C和汇编看起来真的很吃力,所以才看了一半先停下来学C++的。 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值