Valgrind is one of my favorite tools ever. I use it all the time for my C projects in Linux. I wasn't aware that it worked with C++ much less in Windows. I will certainly try it, thanks!
After...
Type: Posts; User: Exosomes
Valgrind is one of my favorite tools ever. I use it all the time for my C projects in Linux. I wasn't aware that it worked with C++ much less in Windows. I will certainly try it, thanks!
After...
The program works fine in debug mode. It doesn't in release mode with optimizations enabled, more specifically "Inline Function Expansion" enabled. Disabling inline expansion (/0b0) which is on by...
I don't think it's a matter of precompiled headers. I think I'm just configuring my project incorrectly. But who knows, you might be on to something.
@thmm, you are correct I am adding a project...
First time Visual Studio User. Using it out of necessity rather than preference since I'm working on an existing and extensive code base that uses that environment.
The solution compiles fine, my...
Besides what Salem said, I'd like to add two things:
1. Identifiers. On one side you have those that name their variables 'a' and 'foo'. This is bad. On the other, you have...
Wow, many thanks for your thorough and detailed response! This site is definitely a welcome change from Stack Overflow.
I've nothing against private function members, in fact that's what I ended...
int arr[] = {1, 2, 3, 4};
arr[1] = 0; //2nd element deleted
After that, each element stays in the same order. The only difference is the second element is 0.
If what you mean is to re-arrange the...
Thanks!
I gathered as much before posting, but wanted to hear from a knowledgeable person if there was a way around it, as I quite liked the whole arrangement.
In any case, it turns out your...
I'm learning C++ while working on a GUI for my console based program.
I have one class 'Tab' which so far has a single constructor that takes no arguments and builds the layout I specified.
I want...
Laser light is correct, but I still like your solution.
I find interesting the different ways people go about solving the same problems; it's always cool to see new approaches. Perhaps I'd update...
Bonus question: I wonder if there is a way to simplify the ((find_duplicate && items) || (!find_duplicate && !items) ) expression.
I've played around with it and can transform it to one form or...
Usually I don't pay much particular attention to how generic or flexible my code is. If it doesn't jump straight into sight as being something obviously reusable, I don't make it reusable. Mainly...
From reading your posts, I get the impression that the ultimate goal is to gain access to this "flag" hidden in one of those accounts. If that's the case perhaps there is no vulnerability -in a...
I wrote a simple text manipulation program in C, on my Linux machine and crosscompiled it for my Windows target audience using MingW64. To make it more accessible I want to create a simple GUI for it...
This is pretty cool. I didn't know an email server could be so simple. I guess I hadn't thought about it :)
1. I'm no programmer, but right out of the gate I don't like that the salt is static...