4h
comment How do I ignore a dollar sign after a number when my program reads in the input
If {dollar amount ends in $} then {ignore $}
5h
comment What is the best practice when passing a shared pointer to a non-owning function?
@Jeff: It's an excellent candidate if its lifetime needs to be shared between multiple owners, just like anything else. And I'm sure you can imagine other use cases of functions that do things without participating in ownership of objects, if you really wanted to. (although, as my answer indicates, you be passing the objects around when appropriate)
5h
comment What is the best practice when passing a shared pointer to a non-owning function?
@Jeff: Sample use case for extracting the bare pointer: you are managing the lifetime of a char array, but you are passing the pointer into a function whose only purpose in life is to fill a char array with data.
7h
answered What is the best practice when passing a shared pointer to a non-owning function?
8h
comment using tesseract on MTG cards
Is that an example of a particular image you're running Tesseract on, or just a sample of an M:tG card? A sample of the former is more important than the latter....
9h
comment Unusual result to the addition
@MarkS: ... and the same for a sequence of 6's
12h
answered What errors are saved by brevity?
13h
comment Simultaneous lcms
Each prime factor works independently here, and thus can be treated independently, right? the problem can be greatly simplified. Also, 90 isn't squarefree.
23h
comment Undefined reference to `main' C++ error in eclipse
@Chol: You can put the using statement inside main too.
1d
answered What would make adventuring mainstream?
1d
answered Intuition behind Chebyshev's inequality
1d
answered C++ dynamic array, push_back w/o STL
1d
comment C++ dynamic array, push_back w/o STL
"I'm learning how to implement dynamic arrays", assuming its accurate, is a much better description of your situation than "I can't use vector", to which the right response is "figure out how to use vector".
1d
comment What are the most prominent uses of transfinite induction outside of set theory?
I found the well-ordering theorem the easiest, since the main obstacle to formalizing the algorithm is a way to pick an element at each step. Zorn's lemma feels like a different approach; sort of like how people resort to $\epsilon$-$\delta$ proofs when they're really thinking in terms of infinitesimals.
2d
comment Inifinite loop makes variable come out as 0
@Red: No: I think we are seeing the modular arithmetic behavior I suggested. Repeated doubling sets all of the bits to zero.
2d
comment Inifinite loop makes variable come out as 0
@John: Signed integer overflow results in undefined behavior; anything could happen. Typical behavior is that it acts like modular arithmetic (i.e. only the least significant bits of the result are retained), but that's not reliable. (unsigned integer overflow is reliable, though)
2d
revised Is it possible to insert three numbers into 2 bytes variable?
added 644 characters in body
2d
answered Is it possible to insert three numbers into 2 bytes variable?
2d
comment wstring to wchar_t conversion
@user3043517: I'm not concerned with before or after the transfer: I'm concerned with the transfer itself. Don't get the wrong idea that WriteFile will transfer everything you asked it to and that ReadFile will return exactly the contents that were written by a WriteFile call (unless you've carefully checked the documentation to be sure). Many communication channels simply don't work that way at all, and from the arguments to your functions, it looks like this channel is one of those that don't.
2d
comment wstring to wchar_t conversion
Are you sure the data is truncated? You don't appear to check the pipe to see if there is anything remaining, waiting to be read. You also don't appear to check to see if you wrote as many bytes as you think you wrote.
1 2 3 4 5