Im having problems inserting a map into a map, I cant manage to access the actual element and call insert() on it.
Thank you
#include <map>
using namespace std;
int main() {
Type: Posts; User: zxcv
Im having problems inserting a map into a map, I cant manage to access the actual element and call insert() on it.
Thank you
#include <map>
using namespace std;
int main() {
I decided I didn't really like Wikipedia's idea so I attempted something more straightforward. It just seemed overkill.
Still doesn't work unfortunately. The list never seems to change order.
...
I'm having some trouble with my merge sort routines.
I tried to implement some pseudo-code I found on Wikipedia thats supposed to be optimized for tape drives(since tape drives have the same...
Doh!
Looks like that was it. Totally missed that part.
Thanks alot
Hi, I'm using mmap for the first time in a program where I'm trying to benchmark different data structures. I'm checking the return value, through a assert, and its failing. I dont know why
Heres...
I'm having some problems with these 2 concepts. Any Advice?
Thanks
My errors:
eclared in class ‘expandedKey128’
expandedKey.cpp:10: error: no ‘void expandedKey192::printKey()’ member...
Can anyone recommend some good books on parallel algorithms? I mean design, analysis, and computability kind of stuff, not something just on MPI or generic threads.
Thanks
Hi
Im trying to write a simple compiler and I'm stuck at the parsing/yacc phase. I keep getting many of these errors and warnings:
type clash on default action
empty rule for typed...
Im fairly sure <A, B> means the inner product, so in this case just A*B.
A and B are both in the GF(2^4) and change, so I made them variables in my code.
Hope that helps
Alright, hate to say it but I think I have a new and hopefully not related problem. This time I think its related to my FC function.
unsigned char gf_mult(unsigned char a, unsigned char b) {
...
Yes! That did it!
Thanks. I never seem to catch one to things like that....
Maybe a example would make this alittle more clear. Im using this S-Box:
unsigned char sbox4[16] = {0xC, 0x5, 0x6, 0xB, 0x9, 0x0, 0xA, 0xD, 0x3, 0xE, 0xF, 0x8, 0x4, 0x7, 0x1, 0x2};
Let...
I have a S-Box(lookup table) that I'm trying to test. The test involved creating a set (the details are very small and in the attachment, so its formated nicely) and checking its size. Since I'm...
After being utterly disgusted by it for awhile I tried converting all my c libraries into c++ ones. That did the trick it seems.
Very very weird...
func is a function pointer.
Im not actually storing anything yet, that branch never runs....
Im not storing them, only a small percentage of them.
Plus I'm really just worried about the seg fault now, space I can worry about after.
Hello. Im writing a program that will test *a lot* of permutations, only while using the STL's next_permutation function I seem to seg fault.
Heres the code, where I left the while that does the...
Ok, nice idea. Ill have to play with that. I forgot that I could shift so easily.
Anyone happen to see anything else? I still haven't made any progress towards this yet.
Thanks!
Im trying to write a bit level permutation function for a block cipher, only the catch is you go from working with 4 bit unsigned integers, to one unsigned 64 bit integer.
So the permutation is...
Hello
Odd question, is it possible to safely and sanely mmap a file (with a 2.6 kernel, if it matters) that is greater than 4 gigs, on a 32bit machine?
I'm toying around with some whole...
Hello
I'm wondering if there are any free ways for college students to get the Intel Compiler Suite or some of its components. I know with MS theres the Academy Alliance along with something else...
Hmm, not sure I understand how this could possibly be slower.
I don't know much about it, but in assembly you don't have 'types', you just have different operations and these operations have...
hmmm, never would of caught that. But now my dereferencing gives me errors now. Not sure how I should attack this now
Im working on a project where speed is a major concern and where I'm also working on alot of 4x4 arrays of chars.
I would like to XOR these chars by grouping them together 4 at a time(by...
Well I know one thing I did wrong now, cant recover after a FPE so should of ended the program there.
Doesnt explain the looping though