That can't be right. While I do encourage you to learn a new programming language, I do not encourage you to try to solve this "problem" by writing a program to "desaturate the internet". I too am a...
Type: Posts; User: StainedBlue
That can't be right. While I do encourage you to learn a new programming language, I do not encourage you to try to solve this "problem" by writing a program to "desaturate the internet". I too am a...
Find a book that doesn't suck?
Perhaps an array of structs where each struct holds an encrypt char and a decrypt char. For example, your first struct in the array would contain 'A' for the decrypt char and 'T' for the encrypt...
Showing us Main.cpp would probably be a good first step
% means modular division i.e. returns the remainder
/ means divide as in regular division
== tests equality
= assigns a value
2%2 == 0
I don't normally do WinForms programming, but don't you just need to create a new WinForm (the splash screen) and change the program so that the new Form gets loaded first when the program is run?...
Google's first hit for the microcontroller turned up a PDF documentation. Inside the PDF document, it mentions Zilog IDE for "in-circuit programming". The site for the Zilog IDE mentions it comes...
Guideline:
make it readable
A simple solution might be:
std::cin.ignore();
std::string guess;
std::getline(std::cin, guess);
Considering only parsing mathematical expressions, do you find it's easier to:
a) Convert the infix expression to postfix, and then create the AET?
or
b) Create the AET during the infix...
Ah! Many thanks! that worked like a charm!
Thanks, although, that's not quite what I'm looking for. I need to be able to specify sort of an anonymous type as the return type. Hard to explain but here's another example of what I'm trying to...
Here is my requirement:
Assume I have functions a, b, and c all with the same signature.
I need a, b, and c to *return* a pointer to either a, b, or c (based on some condition within each...
doesn't matter, I figured it out.
delete thread if you please moderator.
Request Move to C++ Please.
Oddly enough, the assertion error I get says: deque empty before pop
???
The following goes into an infinite loop...
#include <iostream>
#include <stack>
#include <list>
Sorry, guess I wasn't exactly clear. I suppose I'll redefine the academia I was talking about to the profs whose students end up here armed with Dev-C++ and C++ techniques of the 1990s.
Also, "GCC...
In all fairness, in school you'll be tasked to tackle the "classic programming problems". And the value of the lesson is understanding how to solve the problem, not discovering all the nuances of a...
I have a typedef that I'd like to use across multiple files, my question is, what the best way to accomplish that without re-declaring the typedef in each file? Also, it seems silly to me to stick a...
Well stick around these forums long enough, and you'll hear the condemnation of Dev-C++ echoed time and time again.
Should you switch to a newer compiler? (AFAIK, Dev-C++ ships with an outdated...
While just a matter of opinion, I agree c++ lambdas are hideous when you compare them to say c# lambdas. But the syntax is growing on me slowly.
All very nice suggestions. Thank you. The make_shared make things a lot cleaner.
In my OP, i had a vector of foos, which i was trying to "convert" to shared_ptrs for the "fooPointers" vector (a vector of shared_ptrs).
in my second post, i changed the original vector, to a...
Thanks. Yea I guess my original confusion was more to do with what a shared_ptr did. I originally thought of it more as a managed pointer, than a managed object (hence the syntactic error in my...