vector<static int> var2 still can be complied by VC2005pro. But, it works just like the code without 'static' identifier.
Thanks for your answers.
Type: Posts; User: cuthbert
vector<static int> var2 still can be complied by VC2005pro. But, it works just like the code without 'static' identifier.
Thanks for your answers.
Hi folks,
I am a newcomer to C++ and am reading a example code right now. In this example code, the author used a lot of
vector<static DataType> somename;. I know the static vector...
Our target is ARM 7 and we also know the fastest and easiest way is to check the data sheet.
The rest of work will be taken care of by compilers.
* * * * * * * * * * * * * * * * * * * *
When...
Sorry, my way is meaningless. The address of array elements is always increased along indexes.
Maybe different dynamic objects can reflect the real order of memory allocation. I guass.
Cuthbert
Sorry, it's not about how to print the addresses. Thank you.
How to find out the memory arrangement in microprocessors or in its MMU using only software techniques?
Cuthbert
Hi folks,
This question is a little deep into memory management of microprocessor.
How do we know the memory arrangement using in microprocessors? Top-Bottom or Bottom-Top?
For example, the...
The fastest way I found is using lookup table. For integer, 4 bytes long, it takes 4 additional operators only.
And, this :
for ( i = 0; i < sizeof(int)*8 ; i++ )
count+= (mask& var>>i );...
Hi folks,
I am trying to find a more efficient way to count "How many bits are
'1' in an integer variable?".
I still have no idea to count the bits except using a loop and "if"
statements....
Hi folks,
I am trying to find a more efficient way to count "How many bits are
'1' in an integer variable?".
I still have no idea to count the bits except using a loop and "if"
statements....
After compiling the source code with gcc v.4.1.1, I got a warning message:
"/tmp/ccixzSIL.o: In function 'main';ex.c: (.text+0x9a): warning: the 'gets' function is dangerous and should not be used."...