Is it poor convention to create a c++ file only to store various functions, and then include it into the main.cpp? This would be done so that the functions could be used in different programs as well.

Member Avatar
Member Avatar
+0 forum 19

Following in nerd tradition, I went to Comic-Con at the Javits Center in NYC this past Saturday. I consider myself a Trekkie (TNG and Voyager) and, while I'm not a comic buff, I do love all of the TV-based Superman shows (The Adventures of Superman, Lois and Clark, Smallville, etc.) I'm also a fan of sci-fi series' such as Heroes, etc. ![IMG_0735](/attachments/small/0/IMG_0735.jpg "IMG_0735") I had not registered early enough and was one of the unfortunate bunch who didn't receive their pass mailed to them in advance. The entire cab ride there, and especially as I pulled up to the Javits …

Member Avatar
Member Avatar
+3 forum 3

Hi i keep getting an exception when i'm trying to update table values within a database. the exception is below but i dont change from datetime to varchar it always stay as datetime. is there any other reasons why this is happening ? "The conversion of a varchar data type to a datetime data type resulted in an out-of-range value." [CODE]objtyp.dtForm = Convert.ToDateTime(reader["dtFrom"]); public DateTime dtForm { get; set; } string SQL = "UPDATE TABLE_NAME SET dtFrom = '" + objtyp.dtForm + "' WHERE ObjectTypeID = 1"; [/CODE] Thanks Chris

Member Avatar
Member Avatar
+0 forum 3

I know a lot of people have their own comforts and styles when it comes to scripting and coding, but... Some language documentations specifically state a naming convention that is considered best practice for their language, like Java specifying camelCase. However, PHP's online documentation doesn't specify a naming convention (from what I've found, at least). Google searching this topic yields a lot of discussions akin to "What is generally accepted?" but I was wondering if people here know if there is an authoritative answer on the topic. So, is it best practice to declare my variables... [code=php]$likeThis[/code] or [code=php]$like_this[/code] or …

Member Avatar
Member Avatar
+0 forum 4

Hi there, is it valid to have a java class name and file as [CODE]public class DVD extends Items{[/CODE] and [CODE]public class CD extends Items{[/CODE] where its all in capitals? -thanks, sorry for the short question.

Member Avatar
Member Avatar
+0 forum 3

Why prebuying Google sponsored ads might be a bad idea. Google "lieberman mccain." Or, click [URL="http://www.google.com/search?client=safari&rls=en&q=lieberman%20mccain&ie=UTF-8&oe=UTF-8"]here[/URL]. The result, at least as of this writing? Sponsored Link Lieberman & McCain JohnMcCain.com/lieberman Senator Lieberman Joins McCain's Team. Learn Why You Should Join! Clicking the link takes one to "Citizens for McCain," an area on the official McCain website dedicated to encouraging Democrats and Independents to vote for Republican John McCain for President. It is not clear whether this is on purpose or is some sort of slip through unfamiliarity with Google ad buying, but it's very interesting. In fact, [URL="http://www.bobcesca.com/blog-archives/2008/08/mccainlieberman.html"]one site[/URL] reports …

Member Avatar
Member Avatar
+0 forum 2

The End.