No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hello just curious, I know that i'm supposed to use new in c++ but decided to experiemnt with malloc. Can you explain to me why the following code crashes and what is the reason. I was under the impression that the size of vector is fixed as it just stores … |
|
Hello I'm trying to iterate backwards through a vector. with a while loop it works fine. prints out: 12 8 4 1 However the for loop prints 196735 12 8 4 Could you please tell me why this is. Probably something wrong with my logic i don't know I'm using … |
|
Hi, I was attempting to convert the following grammer into CNF S -> XY X -> aXb | e Y -> aY | a The Mark Scheme gives the following: S -> AX | AY | a X -> AK | AB Y -> AY | b A -> a … |