Forum: C++ Sep 21st, 2005 |
| Replies: 9 Views: 2,039 your probably overstepping the bounds of an array somewhere. Other than that its hard to say without seeing code. we are not psychics. |
Forum: C++ Sep 14th, 2005 |
| Replies: 7 Views: 2,910 ok might be a bug. somethings trampling on your vector. Set a watch on the vectors first few elements and single step thru your code in a debugger. watch for the point where the trampling occurs and... |
Forum: C++ Sep 13th, 2005 |
| Replies: 7 Views: 2,910 lol there is no bug dave. its a feature! |
Forum: C++ Sep 13th, 2005 |
| Replies: 7 Views: 2,910 read this all should become clearer (http://www.informit.com/guides/content.asp?g=cplusplus&seqNum=205&rl=1) |
Forum: C++ Aug 26th, 2005 |
| Replies: 48 Views: 10,327 i'll remind you of the func I was commenting on...
template<class T>
swapm(T &a,T &b)
{
a = a + b;
b = a - b;
a = a - b;
}; |
Forum: C++ Aug 26th, 2005 |
| Replies: 48 Views: 10,327 no it doesnt work you disregard any overflow errors. That to me makes it superflawed!
That was aimed at ancient dragon on his template swop two numbers function.The perils of replying before... |