No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Just your average neighbourhood furry coder
- Interests
- Coding, writing, furries
- PC Specs
- HP a6200n w/ 2.00 GB ram & athelon x64 Duo Windows 7 x64 home premium, Ubuntu 11.04
16 Posted Topics
i'm writing a text based game that creates a world based on the data inside of the specified file. however, the code i have won't let me use the function DataInputStream.ReadFully(byte[]b) Code: package textgame; import java.io.DataInputStream; import java.io.FileInputStream; import java.io.IOException; import java.util.Stack; public class world { Stack<String> LevelData = new … | |
I created a function that saves a file with a custom extention ".nra" however each time that i enter a file name, it throws ArrayIndexOutOfBoundsException public static void SaveFileNra() throws Exception { if(gl.DataStack.isEmpty()) { System.out.println("There is nothing to save!\n"); Menu(); } else { System.out.print("Enter the directory you wish to save … | |
I know that the colon is used for inheritance. [CODE] class x { public: long y; } class Z : X { public: virtual void ret_value(y); }[/CODE] but what does this mean? [CODE]int offset:16;[/CODE] i cannot find he answer to this anywhere. | |
Re: couldn't you just get the input of the area of the room and the tiles, then calculate how many tiles are needed. [CODE] //sample int rooml, roomw, tilel, tilew, tilecount, tileneed; //normally you would place multiple ints on the same line to save space. int arear,areat; int return_ammount() { arear … | |
![]() | Re: well, i can tell you some problems with it. your string variables make a reeference to an array but it has a value of zero. [CODE] int i; std::string string1[i]; //error: i is not initiliazed, and assumed to be zero[/CODE] [CODE]int j = 1; std::string string2[j]; //no error. arrays must … |
Re: i think the best way is to capture the keys pressed using the GetKeyboardState. [CODE]unsigned char KeyStates[256]; GetKeyboardState(KeyStates); for (int i = 0; i < 256; i++) { if (KeyStates[i] & 0x8000) { // The keyboard key that 'i' represents is currently held down. }[/CODE] you could substitute the values … | |
i was writing some code for a small project i'm working on and form somke reason, it never displays the main function. it just makes the user input 7 times before crashing. any ideas? i can't seem to locate my error. [CODE]package rtnasm; /* * RTNASM - n64 assembler * … | |
i'm extremely new to java, so i'm probably making a mistake somewhere. anywyas, my program works, however whn the user repeats the data entry, it does not get replaced with new data. [CODE]package convhms; /*HOW THIS WORKS: * * the main function captures the user input as a float * … | |
i'm testing out a template function i created for a header file i'm writing, but it will not compile for some reason. it's giving me problems with iosfwd, although i'm not using it. [CODE]#include <iostream> using namespace std; template <class LOGICAL_AND> LOGICAL_AND __and(x, y) { return x==y ? 1 | … | |
hi all. i haven't been posting cause i am working on a new programming language called perfect. it's derived from the aspects of many languages: python, C, VB, java etc. here is a sample of what the code is going to look like: [CODE] '''Compile with Perfect Compiler ''*' first … | |
back again with another question. i created a simple window in WIN32 mode, but it's giving me a linker error that i cannot isolate. [CODE]#include <windows.h> #include <tchar.h> #include <stdio.h> //defined this for all processes HINSTANCE hInstance; LRESULT CALLBACK WinProc(HWND hWnd, UINT msg, LPARAM lParam, WPARAM wParam); //WndProc Prototype. always … | |
i'm learning python currently, coming from c++ and i realized that i can't do certain things like in C++ anyways, i created a class call Object_refs: [CODE] #attempt to make a structure like class using INIT #to define all common variables. class Object_refs: def __INIT__(self, descriptor_type, type, reference_count, flags): self.desctype … | |
Re: nice suggestions, but seeing as the user already knows how to use data structures, he should start off with something a little bit harder than a black jack game. for a first time game programmer, pong is ok, but that would assume that the user understands some basic WIN32 programming … | |
Re: you may have defined the variables in the classes provided in header 1, but in you main code you have no definitions for the functions described . the errors reference functions required to render the mesh values. without them, you cannot run the program nor render anything at all. you … | |
Re: if your using windows, i sugest starting with basic WIN32 programming. Microsoft gives a very detailed intro to this type of coding. please bear in mind though, WIN32 coding is much more difficult than standard Console programming. not trying to discourage you, but just want to let you know. take … | |
I'm attempting to port a header file for a program that was designed for a Unix environment. i'm'; aware of the type defined variables like s16, u8 and such, but is their anything else i need to know about Unix C? not to familiar with it. thanks. sample portion of … |
The End.