Problem With Key Listener In Swing Applet
I've been trying to fix this for over half a day: my key listener won't register input (I know this because I added a showStatus line inside the listener). I figured that before I mess up my code...
View ArticleHow to pass structure values different between functions
struct NewPlayer { int level; int intelligence; int damage; }; int CharacterInfo(NewPlayer MageWizard, int Clevel,int Cint, int Cdam) { cin >> Clevel; cin >> Cint; cin >> Cdam; }...
View ArticleChecking if a Pointer is valid .
Hi all and happy XMass. I have been searching all over for a way to know if a Long variable has a valid Object Pointer in it.... I need to knwo the contents of the variable before passing it to the...
View ArticleVector iterations not calling function
Here is the vector iteration loop: for(size_t i = 0; i < gameObjects.size(); ++i) { gameObjects.at(i).Draw(window); } gameObjects contains a Ground and a Player (both are derived from GameObject)...
View ArticleProblem in file input and output in C programming
Hello everyone. Firstly, I am newbie around here as well as in C programming and I am hoping you all can guide me. I have a problem in a code which requires me to convert temperature in fahrenheit into...
View Articlec# how to open a file with your app
so i have a problem regarding opening files with my app. so the problem is i can't open files when i select "open with > myapp" to open a file, it simply opens my application and doesnt display the...
View ArticleMagic Methods ?
Does anyone know a good website to find great code examples of magic methods like __getattr__, __setattr__, __str__, __getitem__, and __setitem__
View ArticleRun C# program connected with R on computers without R installed
My question is summed up in the title. I have a C# program that's connected with R - is it possible to save it in such a package so that anyone can run it, even if they don't have R installed on their...
View ArticleAbout KeyPress in vb.net
How do we know if any key is pressed twice by the user For e.g. If user presses "A" key twice i.e. "AA" then I want a messagebox to appear And also I want to know that which key combination (one after...
View ArticleChecking if certain dice come on the board?
I did do my homework on this problem, but I couldn't find anything. I was wondering how to check to see if certain dice, like a 3-of-a-kind, or a straight, come on the board? This is the only way I...
View ArticleWorking Excel Program - Transfer To C#
Hi All, I currently have a perfectly working excel program - or coded workbook if you like. But feel that a fully functioning Software program would be better suited. I am very new to the programming...
View ArticleFrame for student
*when i pressed on the button which name(Next) (will navigate through all the students saved in the Array List) *i finished the java application to create a frame.but i want to ask can i solve the...
View ArticleHow To Get A Tile Based Game (Java)
Hello, so I want to make a tile based game, similar to the layout of the game Civilization. Example Here. I want the game to have an isometric-diagonal view and obviously there will be different kinds...
View ArticleAssigning to True
Why is it possible to assign a value to the keywords True and False in Python? In particular the following code gives the keyword True the value False and suddenly I only have the value False to work...
View ArticleEntity DataSource web.config
I normally just a function to construct to entity context model like: Spoiler Public Shared Function ModelConnStr() As String Dim sqlcon As New System.Data.SqlClient.SqlConnectionStringBuilder...
View Articlec++ Queue Simulator (cinema booking ticket)
Part 1 involves C++ class and its properties (inheritance, composition etc) which I have completed. I definitely can post the codes here but I think it is highly unnecessary? The question here is how...
View Articlevoid* and temporaries
I was reading online and someone suggested doing something along the following lines (this is a simplified example of the mechanic, not a real-world example): #include <iostream> int main() { int...
View ArticleOdd NullPointerException
Hello - This is a basic simulation of my problem. I have two classes, and a variable in one gets set, yet generates a NullPointerException. Test.java, with my main public class Test { public static...
View ArticlewxPython: Text Editor Question About Font Color
Hey guys, I am building my own text editor in wxPython for fun and learning purposes. I want to add some highlighting of text similar to Notepad++ or other editors for python syntax. Can you guys point...
View ArticleMemory Error in Primes
So I'm writing some code for a little prime number theory project of mine and I keep dealing with a memory error at some upper bound for some input value. I'm wondering if there might be a means to...
View Article