Code get ridiculousy slow if I call a function from the main . . .
Hi guys, I'm trying to implement an algorithm that given a rectangle and a number of polygons decided by the user, can recognize whether they are inside, outside or intersect the rectangle and provides...
View ArticleCode get ridiculousy slow if I call a function from the main . . .
Hi guys, I'm trying to implement an algorithm that given a rectangle and a number of polygons decided by the user, can recognize whether they are inside, outside or intersect the rectangle and provides...
View ArticleHelp with mastermind game
Hey everyone I have been working on the mastermind game in c# but currently am stuck. Currently my program works but it is having difficulty spotting when the user has entered the correct colour (in my...
View ArticleHow to export a Java Text Based Game
Hi, I am writing a text based adventure game, similar to zork, in eclipse on my mac. I want to know how I can export it so that anyone could use it (especially people who aren't very tech savvy). I...
View ArticleProblem is getting java to create table and peform operation to stop
import javax.swing.*; public class CelsuistoFaraheit{ public static void main(String [] args){ int celsius; for( celsius = 1; celsius <= 20; celsius++){ int farenheit = ((9/5 * celsius) + 32);...
View ArticleSend user to page
Hi firstly thanks for taking the time to look at this. In my application a user is able to create a chatroom and add friends to the chat room ( already complete) However I want the user to be greeted...
View ArticleUnresolved External for skybox
Im creating what should be a simple skybox. However I have the following linker issue. 1>skybox.obj : error LNK2019: unresolved external symbol "int __cdecl LoadBitmapA(char const *)"...
View Articleimports
Can someone pleas explain the use of te "*" when importing something into java. For example, "import java.awt.*." Why is something like this used instead of something more specific like "import...
View Articlemove object in straight line issue
I am looking for a way to shoot an object in a straight line in front of the sprite in my game. I am making it a magician, So I need the spell to shoot in front of it in a straight line. I kind of...
View ArticleMember declaration not found.
When I was shown how classes are coded in c++ I was shown all in one file. When I use eclipse to create a class is does it with a header file. But when I do the following code it says member...
View Article3D collision detection problem
I have been making a 3d game engine in java and I have been stuck on this problem for a while now. So the objects are loaded in from a wavefront .obj format and the faces are triangulated. I need to...
View ArticleI want to make a Student Information System
Hello I just registered and have a few projects in mind. Hence I need a littl help to complete them. the first one is: A student information system (SIS) it is a software application for education...
View ArticleBig-O time complexity.
Hi I got this code on my midterm, for i in range(2): for j in range(2): print(i,j) I need help finding the big-o complexity for this code, and for any code in general. Can someone help explain time...
View ArticleLaunch failed. Binary not found.
I am receiving the error "Launch failed. Binary not found." when I try to compile. I have installed MinGW to the location C:\MinGW and added ;C:\MinGW\bin; to my environment variable path for windows....
View ArticleCollision of object arrays question
Hi, I'm working in a simple physics simulation game, but my only problem is when i try to calculate the collision of each object in the arraylist. In other sites, i found few other solutions like this:...
View ArticleCropping images in WPF
Hi, I have 2 images. The first are 5 golden stars, the 2nd are 5 silver stars. I want to make a rating usercontrol where I have to add a score and the usercontrol does the rest. The 2nd part I can do...
View Articleoverloading operator+ confusion
Hi Can someone explain me how this code works ? #include <iostream> using namespace std; class test{ private: int num; int den; public: test(); test(int); test(int,int); void print(); friend test...
View ArticleCan .Readline start at a specific column?
Basically all I need to know is if it is possible to start reading a line at a certain column. strEmail = InputFile.ReadLine() lblEmailAddress.Text = strEmail.ToString() I want to omit the first 16...
View ArticleC program that looks for words in a dictionary
For my c program, it has to be able to look for words in a dictionary. I'm not that great of a programmer but I have been doing my research and have puts bits and pieces together from my understanding....
View ArticleRecursion for pow(base, exponent) using negative exponents
Good Afternoon, I am trying to create a power(base, exponent) that can interpret positive exponents, negative exponents and zero. I have the program working for positive exponents and exponents that...
View Article