User profile: coder777

User info
User name:coder777
History
Joined:
Number of posts:4872
Latest posts:

Small game problem
This is how you define a pointer to a 2d array: [code]char (*Map)[10];[/code]

Overloading
Take a look at this: http://www.cprogramming.com/tutorial/operator_overloading.html It shows how t...

Compiler/Programmer Error?
As soon as line 7 is executed you will have an infinite loop. The break on line 8 will only stop the...

shared pointer from raw pointer
If, how, when it crashes depends entirely on the passed parameter. It is not predictable. The only ...

shared pointer from raw pointer
[quote]Is the snippet inside the function valid ?[/quote]No, the shared_ptr takes ownership of the p...