Forum: C++
Jun 14th, 2008, 4:59 PM
|
|
Replies: 4
Views: 247
|
Forum: C++
Jun 14th, 2008, 4:30 PM
|
|
Replies: 11
Views: 388
Re: Memory Leaks
RAII (http://en.wikipedia.org/wiki/Resource_Acquisition_Is_Initialization) is a common resource management idiom used in C++. Smart pointers...
|
Forum: C++
Jun 14th, 2008, 4:23 PM
|
|
Replies: 4
Views: 247
|
Forum: Coder's Corner Lounge
May 15th, 2008, 7:04 PM
|
|
Replies: 23
Views: 796
Re: Free will or Predestination?
No, I don't think I would. "continuum of individuality ... from lifetime to lifetime" - all sounds like fluff to me. Metaphorical fluff, of course ;). I don't find that kind of language helpful.
A...
|
Forum: Coder's Corner Lounge
May 15th, 2008, 7:55 AM
|
|
Replies: 23
Views: 796
Re: Free will or Predestination?
I can't see what logic there is in taking a natural explanation for a physical phenomenon and then saying: "Maybe there's a magic man in there too!"
That seems to me like the kind of thinking that...
|
Forum: C++
Apr 29th, 2008, 2:58 AM
|
|
Replies: 6
Views: 259
Re: initilizer incmplete type
You need to:
#include "Scanner.h"
#include "SymTab.h"
#include "FunTab.h"
#include "Store.h"in either Parser.h or main.cpp
#include <cassert> in PTree.h
And there's an error in SymTab.cpp at line...
|
Forum: Coder's Corner Lounge
Apr 1st, 2008, 1:24 PM
|
|
Replies: 14
Views: 352
|
Forum: Coder's Corner Lounge
Mar 4th, 2008, 11:40 AM
|
|
Replies: 2
Views: 164
|
Forum: C++
Feb 27th, 2008, 5:43 PM
|
|
Replies: 11
Views: 683
Re: problems with CopyFileEX
LARGE_INTEGER is a union type. You have to access it's data members which are actually numeric types.
example:
LARGE_INTEGER x, y;
LONGLONG z = (x.QuadPart / y.QuadPart) *...
|
Forum: C++
Feb 20th, 2008, 2:49 PM
|
|
Replies: 2
Views: 134
Re: Missing Main In Allegro
Read the Allegro documentation. Some libraries require that 'main' have a specific signature. You may also be required to set the entry point.
If you just want to fumble about try:
int main(int...
|
Forum: C++
Jan 20th, 2008, 5:56 PM
|
|
Replies: 18
Views: 451
Re: GetWindowInfo -
Sane, the code below is broken. Due to the higher precedence of operator == over operator & your code actually evaluates to (x & (y == y)). I think your intention was ((x & y) == y). This goes for...
|
Forum: C++
Jan 19th, 2008, 5:28 PM
|
|
Replies: 22
Views: 530
Re: Exception handling: point is...?
Channel 9 did an interview with Ale Contenti on exception handling. People here might find it interesting.
Understanding Exceptions and When/How to Handle...
|
Forum: Community Announcements and Feedback
Oct 17th, 2007, 5:13 PM
|
|
Replies: 20
Views: 691
|
Forum: C++
Sep 16th, 2007, 2:59 PM
|
|
Replies: 6
Views: 281
Proposal for C++0x Delegating...
Proposal for C++0x Delegating Constructors:
http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2006/n1986.pdf (pdf)
You might find that interesting. I wouldn't take it as a justification for your...
|
Forum: C++
Sep 5th, 2007, 5:48 PM
|
|
Replies: 2
Views: 902
|
Forum: C++
Sep 5th, 2007, 2:33 PM
|
|
Replies: 6
Views: 217
|
Forum: C++
Aug 21st, 2007, 4:44 AM
|
|
Replies: 1
Views: 201
|
Forum: Coder's Corner Lounge
Aug 5th, 2007, 7:37 AM
|
|
Replies: 91
Views: 1,793
This is only somewhat related to the subject...
This is only somewhat related to the subject matter, but hey. Just the other day on Digg I saw someone suggesting that they would like to see NBC "To catch a predator" go after bloodninja. I guess...
|
Forum: C++
Jul 4th, 2007, 6:18 PM
|
|
Replies: 8
Views: 185
|
Forum: C++
Jul 4th, 2007, 1:34 PM
|
|
Replies: 8
Views: 185
|
Forum: C++
Jun 7th, 2007, 9:50 AM
|
|
Replies: 6
Views: 175
or, using the tools already provided by the...
or, using the tools already provided by the standard:
#include <cctype>
#include <string>
#include <algorithm>
// ...
std::string str = "ABCDE";
std::transform(str.begin(), str.end(), str.begin(),...
|
Forum: C++
Jun 6th, 2007, 10:14 PM
|
|
Replies: 11
Views: 226
|
Forum: C++
Jun 6th, 2007, 9:39 AM
|
|
Replies: 6
Views: 184
|
Forum: C++
May 16th, 2007, 11:27 AM
|
|
Replies: 16
Views: 223
|
Forum: C++
Mar 29th, 2007, 10:37 AM
|
|
Replies: 12
Views: 245
|
Forum: C++
Mar 29th, 2007, 7:50 AM
|
|
Replies: 13
Views: 253
Calling the function 'saidsfunc' via...
Calling the function 'saidsfunc' via 'saidsfunc(1)' would work if 'i' was declared const int&.
int main()
{
int& a = 1; // error: initializer for T& must be lvalue of type T
const int& b...
|
Forum: C++
Mar 4th, 2007, 3:33 PM
|
|
Replies: 11
Views: 328
The only difference in setting...
The only difference in setting _CRTDBG_LEAK_CHECK_DF through _CrtSetDbgFlag is _CrtDumpMemoryLeaks will be called automatically when the program exits. I don't know why you're getting different...
|
Forum: C++
Mar 4th, 2007, 10:00 AM
|
|
Replies: 11
Views: 328
You can use _crtBreakAlloc to break at the...
You can use _crtBreakAlloc to break at the allocation site (allocation number 151 from the above dump). Then just follow the stack out of all the debug nonsense back to your offending code.
Small...
|
Forum: Coder's Corner Lounge
Jan 14th, 2007, 11:39 AM
|
|
Replies: 2
Views: 198
|
Forum: C++
Jan 13th, 2007, 4:54 PM
|
|
Replies: 11
Views: 309
|
Forum: C++
Nov 17th, 2006, 7:44 AM
|
|
Replies: 2
Views: 197
|
Forum: C++
Nov 8th, 2006, 12:59 PM
|
|
Replies: 4
Views: 216
|
Forum: C
Oct 26th, 2006, 2:17 AM
|
|
Replies: 4
Views: 231
|
Forum: C++
Oct 24th, 2006, 8:04 AM
|
|
Replies: 5
Views: 218
|
Forum: C++
Oct 24th, 2006, 6:31 AM
|
|
Replies: 5
Views: 218
|
Forum: C++
Oct 24th, 2006, 2:13 AM
|
|
Replies: 5
Views: 218
Inter-namespace template friends (VC++ 2005)
The following code gives the error: when complied with VC++ 2005. The exact some code complies with 0 errors and 0 warnings with g++ (not sure of the version).
Have I hit a VC++ standards...
|
Forum: C++
Oct 17th, 2006, 9:53 PM
|
|
Replies: 13
Views: 243
|
Forum: C++
Oct 17th, 2006, 4:44 PM
|
|
Replies: 10
Views: 243
|
Forum: C++
Oct 14th, 2006, 1:57 PM
|
|
Replies: 7
Views: 174
|
Forum: C++
Oct 12th, 2006, 6:56 PM
|
|
Replies: 12
Views: 374
You should check out SDL. It's an easy to use...
You should check out SDL. It's an easy to use "Multimedia library" (with excellent docs) for making 2D games. I'm currently making a signal/slot based C++ wrapper for it. There are already a few...
|