|
Browse by Tags
All Tags » code (RSS)
-
Now that's not really a wtf. That's actually a pretty clever way of reducing memory allocation calls, which, for a game, is very useful. Now reviewing some code from the other team (which I thought we might reuse for our project) I bumped into this: It's a code for a class height_map that...
-
Hello folks. First, let me introduce myself (quickly): I've been a developer for 5 years. I coded some winforms/webapps/console apps in VB6, then a lot web applications in Java and now I'm just using .NET (mostly C#). I'm NOT a "powercoder".I'm... let's say, probably slightly...
-
The compiler isn't likely to put any padding between the doubles, but I don't think there's something prohibiting it to do it. You can do the following, which is less risky, but potentially less efficient: #define FooArray(foo) { &(foo.x), &(foo.y), &(foo.z) } void IUseFoo(Foo...
-
This is part of a translation of Dungeon (Zork) to Inform 7 from FORTRAN 77. FORTRAN code: C ENCRYP-- Encrypt password C C Declarations C SUBROUTINE ENCRYP(INW,OUTW) IMPLICIT INTEGER (A-Z) INCLUDE 'dparam.for' CHARACTER*8 INW,OUTW,KEYW INTEGER UINW(8),UKEYW(8) DATA KEYW/'ECOVXRMS'/ ICHARA...
-
There is sooo much that I could post, but I don't want to flood this forum with it, so here's a random one: public class ArrayConverter { public BaseCourse[ convBaseCourse(Collection list) { BaseCourse[ basecourselist = null; int x = list.size(); basecourselist = new BaseCourse[x]; Iterator iter...
-
Xilinx might have some of the most gifted silicon engineers out there, they sure know how to make excellent FPGAs. What they don't have a clue about is software. All Xilinx software that I have ever used has brought me to the brink of tears. It's not just that it doesn't work, its also exrutiating...
-
MasterPlanSoftware: El_Heffe: HAHAHA AWESOME! from what i've read so far, that is quite the accurate response. hell, even the code in my sig is better
-
http://i40.photobucket.com/albums/e211/mewtwo064/whatpage.jpg First post :D sorry if it's been found before x3 wasnt sure if i wanted to go to page P, page 5, page o, page 8, page ( ;, or page it .............. o.O
-
bullestock: unsigned int NumProperties() const { return static_cast<unsigned int>(m_propList.size()); } There, fixed it for you. This answer surprises me. IMHO the correct solution is: size_t NumProperties() const { return m_propList.size(); } Which may of course trigger more 4267 at the function...
-
Here is a trivial example of a tree structure in SQL2K5, and the code needed to traverse the tree (down): if object_id('tempdb..#tree') is not null drop table #tree create table #tree ( parent_id int null, id int not null, descr varchar(255) ) insert #tree ( parent_id, id, descr ) select null, 1, 'root...
|
|
|