Blog about programming and new technologies in general I've created for myself, to memorize briliant solutions of problems, my own parts of code written previously and some general ideas of workarounds. You can find here Python, Java, JavaScript, C++, Django, jQuery.
June 8, 2010
Tip of the Day #2 - pointers
Remember
int* ptr;
*ptr = 10;
#but
ptr = new int;
#without ampersand and dereference !!
No comments:
Post a Comment