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

Java playing .wav file problem

Its weird, when I am playing my sound, it plays right the first time, but it sound electronic the following times. But it only does it with that sound, my other sound works fine every time. Here is my...

View Article


Connect four using Processes and Pipes

I am trying to make a connect four game that plays its self multiple times. I want to do this using Processes and Pipes because I want to learn how to use them. I know the you need to use for to create...

View Article


Strange syntax in MIPS

So I've used a cross compiler to go from C -> MIPS and I'm trying to run the code in spim. The cross compiler created this line: lw $25,%call16(atoi)($28) spim doesn't like this. What exactly is...

View Article

Image may be NSFW.
Clik here to view.

Multiple Form Tags nested

Hey guys, Having a bit of an issue with my layout here. I've got the regular page form tag with runat=server and within that form tag I've got nested form tags without the runat=server attribute for...

View Article

Populate an 1D Array with odd Numbers

Hi there, I'm having trouble trying to fill a 1D array with odd numbers from 1 to 12 using loops. thanks in advance =) this is what i have so far: int[] odd = new int[6]; odd[0]=1; for(int...

View Article


How to obtain text values from webpage ?

<table> <tbody> <tr id="TR_ssFreq" style=""><td style="width:25%">Frequency:</td><td style="width:25%" colspan="3"><span...

View Article

How to Change the Icon of the form during Runtime ?

As the title says, How can I change the Icon of the for during runtime, Like if label1.text = "connected" then let the form have ICON1 else let the form have ICON2 end if ~Kazilotus

View Article

Future Investment Amount gives exponents - Need dollar amount

#include <iostream> #include <cmath> using namespace std; int main () { double investmentAmount, annualInterestRate, monthInterestRate; double accumulatedValue; int numberOfYears; cout...

View Article


Input Validation

I'm creating a tax calculator in Java. I need to make it so that if the user does not enter a double value as their taxableIncome, the program will exit. I know it has to be something like if...

View Article


Monthly Budget Program

This is NOT homework, I have taken this class already,I am just practicing a little as this class was very difficult. Anyway I am having trouble figuring out how to develop these two functions. One...

View Article

Making a recursive function to reverse all the elements of an array.

void reverseArray(double A[], int len, int i) precondition: A is an array of length len and 0 <= i < len postcondition: The entries in the subarray from index i to index len - 1 -i have been...

View Article

Concurrence problem

]

View Article

Java and Linux inFile

To scan in a file how do I denote its location? I'm only aware on how to do this in windows not linux Scanner inFile = Scanner(new FileReader("??????????????????"));

View Article


Nested for loops

Hi there, Trying to convert a program from python to java and i have to create and fill a 2 dimensional array with 0's. I decided that using nested for loops should be the easiest way, but for some...

View Article

Backward String

So. I just don't know. I can't get it to even run. Every time I try tweaking this program, I just get more issues. Here are my error codes as is: 1>Backward_String_N.obj : error LNK2001: unresolved...

View Article


Image may be NSFW.
Clik here to view.

Transparent images

So I am reading images into a game I am making, I was wondering if anyone could tell me how to make the white square around the character transparent? Saving as a .png doesn't work as the whole picture...

View Article

Pipe commands not outputting

I'm working on a mini shell for a college assignment. We have to read in the command, find the binary to execute from the path var, and execute command, both with and without pipes. I have everything...

View Article


Reading in spaces as well as characters with the Scanner

Hello I want to be able to read in mazes from a properly formatted text file with the size of the maze by row and colum at the top followed by the maze using asterisk(*) for walls and a space for...

View Article

Convert Uppercase to Lowercase in C++ Question

#include<iostream> using namespace std; int main() { char uppercase; int offset = 'a' - 'A'; char lowercase; cout<<"Enter an uppercase letter: "; cin>>uppercase; if(uppercase>='A'...

View Article

Check to see if username is already being used

I am trying to check my database for a username when a new user tries to create an account. If the username chosen already exists I want to display an error message stating this. Here is the code I cam...

View Article
Browsing all 51036 articles
Browse latest View live


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