Geeks With Blogs
Robert Bernstein's Blog Adventures in Windows, .NET, and C++ June 2010 Entries
C++ Array Size Function
I'm dividing my time between the .NET world and developing in C++ again, so I'm going to be posting some handy snippets here. Rather than using: sizeof(array) / sizeof(element) to determine the size of an array, we can use a template to accomplish this. // // A handy two-line array_size() template function // #include <cstdlib> #include <iostream> using namespace std; // Uses template type induction to // discover the size of an array // so that you don't have to use sizeof(array)/sizeof(element) ......

Posted On Wednesday, June 30, 2010 10:35 AM

Firefox: Launch New Tab From Searchbox
I've been a member of GWB for a year and a half or so and haven't blogged anything yet, so it's time to change that! Everytime I install Firefox on a new (virtual machine), I want my searchbox searches to launch in a new tab and I can never remember how to do that. Here is a link explaining how to do it: http://lifehacker.com/25517... If that ever goes away, just do the following: Type about:config into the address bar Put the following into the filter box: ......

Posted On Tuesday, June 29, 2010 5:17 PM

Copyright © Rob | Powered by: GeeksWithBlogs.net