Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 05 Dec 2012
Offline Last Active Nov 22 2014 05:51 AM

Topics I've Started

How Do You Organize Your Thoughts ? Data Files ?

10 March 2014 - 07:15 AM

  Basically what I would like to know is, when you are laying out your code thoughts, how do you organize your Functions and Procedures in your code.

  Do You list them alphabetically ?  Why ?

  Do You group them together based on what they are doing ?  For Example do you group are your math routines together ? Why

  Do you list them based upon their chronological order of use in your code ?  < I realize in main() that it has to be this way, I am more interested in the Functions and Procedures >

  What about you user input files that you save, such as a "SAVE GAME" file.  How do you organize the output.

  I am curious on your thought process and why you chose to do it they way you do.

Game Programming Gems ? Any Reviews or Recommendations ?

02 March 2014 - 02:22 PM

I have been thinking about buying 1 of these books, But both Barnes & Noble and Amazon does not give much of content overview. Has anyone read any of the books in the series ?
Can anyone tell me about the content ? Do they Cover Programming code ? Code for 2D or 3D graphics.
Really any information about what these books are about would be Helpful.

Need Some VB6 Error Code Syntax

26 February 2014 - 06:36 PM

What I am trying to do is equivilant to an IfExist in C
I can Create - Append - and Read from a Disk File from with in the Code.
I can Also open an File/Directory (Save IN ....) dialog Box
What I want to do is Have the program check to see if the FILENAME exist prior to overwriting the file with in the code

Need Code Translation From Pascal/Delph to C++

25 October 2013 - 05:52 AM

I am having trouble in accomplishing certain task in C++ which I am able to do in Pascal / Delphi quite easily.


 In Pascal :  Type DataBase  record = Name:String(25); Cell:String(12); City:String(20); end;

                    Customer : DataBase;

 In C++:  class DataBase = {public: char Name[25], Cell[12], City[20];};

               DataBase Customer;


OKAY  we are good here.


  In Pascal :  Customer.Name = "Poigahn";

  In C++:       Customer.Name = "Poigahn";   < Will Not Compile 

So I am writing a segment of code that changes the information inside Variable Customer based on Conditions, So I do not want to assign values at time of instance.  Also do not want to use the cin function because values are predetermined by programmer.  So How do I do this ?




  In Pascal :  With Customer do

                     Name = "Poigahn";

                     Cell = " 1234567890";

                     City = " Somewhere"; end; 


                     readln(Name);   I can make assignments this way ( useful when there is allot of info to change withinh the class variable )

  Rather Than Having to do assignments by doing > Customer.Name = "  "  or Readln(Customer.Name)


  In C++  :  I can not find any such function.  ( I might be looking right over it since I do not know what the function would be )

   Now I have to do cin >> Customer.Name;




Does anyone know how to do in C++  what I am able to do in Pascal  ??

Picking A letter From a Char String

11 October 2013 - 06:10 PM

I am able to do this in 3 other Computer Languages, But I can not find the command to do it in C++.

Here it is :


char Alphabet[] = "ABCDEFGHIJK";


How do I get the 5th letter out of this string ?  Keep in mind that at any given time the 5th letter may change ( I am not looking for the 'E")

Just the 5th  or sometimes maybe the 8th letter.


The purpose is to add that letter to another string such as


strcat(Letter,<The 5th letter in the Alphabet[list]>);


Plus any include files that may not be obvious.