Quantcast
Channel: Programming Forums
Browsing all 51036 articles
Browse latest View live
↧

Parallel Arrays in Bool function (diff. part of pw manager program)

Ok so I'm stuck on a different part of the password manager assignment. For this part we are suppose to read the logins and passwords for existing users from file "password.txt". Then we are suppose to...

View Article


Java Greatest Common Factor Two Numbers

Hello, trying to figure out why this program isn't working. Most likely a logic error because I am terrible at gcds and primes. Please take a look? public static int maxFactor(int a, int B)/> {...

View Article


Strange C++ homework issue.

Hello guys, I would really appreciate it if someone would help me with this. I don't need any complete solutions or someone to make my homework for me, but I just need someone to point out to me where...

View Article

paint method and graphics

i am create animation in japplet and i want to know if iam using paint method and draphics2d the right way. public void paint(Graphics g) { super.paint(g); Graphics2D g2d = (Graphics2D) g;...

View Article

dynamicaly allocate an array of integers and calculate the mode

This is the Question? In statistics, the mode of a set of values is the value that occurs most often or with the greatest frequency. Write a function that accepts two arguments: • An array of integers...

View Article


No GET variables, thanks to Apache

Hello, D.I.C. I don't know if this is in the correct forum, but I should assume so since my primary language is in PHP. I'm using mod_rewrite to make my URL's look a little more prettier than what they...

View Article

Image may be NSFW.
Clik here to view.

battle ship game using 2d array in java

NEED HELP! DONT KNOW HOW TO PLACE FIVE SHIPS IN A 2D ARRAY THAT IS (10BY10). THEN HAVE THE USER GUESS THE LOCATIONS OF EACH SHIP. EACH CORRECT GUESS IS A HIT AND WHEN THE SHIP IS COMPLETELY HIT IT IS...

View Article

payroll modification question on gui?

my assignment is to create a gui with the following code; I have a txt box for: first name, last name, weekly salary, commission rate and gross sales. (I will eventually have to add hourly, but i want...

View Article


Basics of Page Replacement

I posted this in the C++ forum initially by accident and didn't realize it until just now. I'm fairly certain I understand how page replacement works (and I did very well on all of this class' exams)....

View Article


Image may be NSFW.
Clik here to view.

For Each Loop with a ListBox - Only finding last city

So I'm going through my readings for my next upcoming homework and I decided to try out the example given in the book, which I usually just read and understand (if not I go back to it). Public Class...

View Article

opening up a file defined within runtime

This is for a betting predictor I am making purely for a challenge. As I have all the data I need from previous real matches in csv files I need to specify which file it is within runtime. For...

View Article

Comparing vector elements

I am trying to compare vector element with a object element. i comparing an object with a vector element. i am using the get method which uses an iterator .For some reason it doesn't work, please help....

View Article

Error Handling problem in if-else statement

When I input the username and password for user1, the first if-statement captures it however the error handling (else{}) still outputs even though it's already captured by the first if-statement....

View Article


I'm unable to access a member from an object properly

I'm trying to code a 2d game using the ACM library with which I've been learning Java. The here are four classes: 1. GameBoard.java [creates a Game-Board template object, which I intend to use for...

View Article

Forked Project question

Hello everyone, Today I decided to learn a bit about using github and I finally got to fork and clone a project to my local space. Now I forked the following project, MrHus/Zelda This is a game and...

View Article


Method Confusion

Hello, I am having trouble understanding what I am supposed to add in a method I have named addCoin(). I have 3 classes, Coin, Purse, and PurseTester. For the method addCoin() in the purse class the...

View Article

Assembly code problem

I'm writing assembly code and I'm a bit out of my element. I'm having some difficulty getting this code to print the Uppercase characters to lowercase. Any suggestions? Here's what I have so far. Can...

View Article


How do I give int value to these line?

I just want a little advice on the following, I cant think of any way though I thought of another loop I take input from a file, the file look like this: 1 - 4 Aqaba 1 - 2 Aqaba#Gulf of 1 Jordan 2...

View Article

Image may be NSFW.
Clik here to view.

[ODBC Driver Manager] Data source name not found and no default driver

This project solution file is working on other computers, but when I test it on my computer I've got an error. I've already done exactly what they've done to run it such as installing mysql connectors,...

View Article

Image may be NSFW.
Clik here to view.

how to calculate the similarity of two users in facebook?

I am working on a project about data mining. my company has given me 6 million dummy customer info of facebook. I was assigned to find out the similarity between any two users. can anyone could give me...

View Article
Browsing all 51036 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>