Search:
Type: Posts; User: boburob
Search:
Search took 0.06 seconds; generated 42 minute(s) ago.
-
January 12th, 2009, 08:38 PM
omg i just realised the problem...i am an idiot! I have been using the wrong variables, sorry for wasting all your time
-
January 12th, 2009, 08:38 PM
Ok apologies, i have been working with swing, and its not showing the stats on swing however they are being uploaded! Im not sure why there not showing up on my swing program though
-
January 12th, 2009, 06:18 PM
Okay, trans1 is definatly holding "6.0"
Heres my whole project:
http://cid-3ce0ac785929e198.skydrive.live.com/self.aspx/Public/Blackjackswing.zip
So have a look yourself guys
loadFile...
-
January 12th, 2009, 03:41 PM
Ok ive now tried this as well:
trans1.trim();
Float f = new Float(trans1);
winStat = f.floatValue();
-
January 12th, 2009, 03:21 PM
Ok, im not sure i fully understand, ive tried this before:
Float f = new Float(trans1);
winStat = f;
This compiles but winStat remains empty, although trans1 holds the value "6.0"
-
January 12th, 2009, 02:45 PM
Hi everyone.
I need help again lol, im trying to code a load function, ive got it to read the files and put the values into strings, but i need to convert these to float type and nothing i try...
-
January 4th, 2009, 11:44 AM
Lol ignore my question! Once again im being stupid and forgetting basics!
if (source == menuStats)
{
JOptionPane.showMessageDialog(null, "Statistics\nGames won:" + winCount);
}
...
-
January 4th, 2009, 08:56 AM
Yes you were right, i was kinda trying to copy something straight out of my java book without thinking about it! Instead I just added one panel to another panel:)
Sorry but I have another...
-
January 1st, 2009, 08:16 AM
Hey everyone, im writing a blackjack program with java swing and im having problems with setting the layout with panels and frames.
I want to apply a different layout to two different panels, add...
-
December 5th, 2008, 12:43 PM
Sorry another quick question, how do i add text to the text area without deleting the rest, eg at the moment im using:
edit.setText(line);
Which just puts the last line of text on the...
-
December 5th, 2008, 12:33 PM
Thanks alot for your help!
Completely forgot about moving that one!
-
December 5th, 2008, 09:59 AM
Hey ive only been programming java for about a month now and im a little stuck:/
Basically im making a basic text editor in java, at the moment im trying to load text from a file to a text area...
-
Thank you for your quick reply:)
-
Hi, ive been making a blackjack program and current im trying to get it to save and load how much money you have. This is working but it looks like its saving the address of the variable instead of...
-
February 28th, 2008, 11:28 AM
Thank you everyone for your help, it is now working:D
-
February 28th, 2008, 09:14 AM
Lol ok i think now all the changes are made, the let array is working, but its just outputting whatever was in the last position of the decry array
#include <iostream>
#include <fstream>...
-
February 28th, 2008, 08:41 AM
Ive made all the changes , hopefully its easier to understand now, both the arrays are working but its only outputting whatevers at the end of the decry array
#include <iostream>
#include...
-
February 28th, 2008, 07:50 AM
Sorry im fairly new at c++ so alot of the stuff you said i didnt get:/
for (int x = 0; x <= 512; x++){
if (code[x] >= 'a' && code[x] <= 'z') {
let[code[x]-'a']++;
}
}
-
February 28th, 2008, 06:57 AM
Sorry, I had already made all the changes you said before, heres the new code
#include <iostream>
#include <fstream>
//This section of the code includes the libaries needed to run the...
-
February 27th, 2008, 12:43 PM
Yes you were right, the let is working but the decry array is not, i have attatched a screenshot of what happens when its run, the first group of 26 is the let array and the second is the decry array
-
February 27th, 2008, 10:56 AM
Ive changed my program and its running now but this section of code
for (int x = 0; x <= 512; x++){
if (code[x] >= 'a' && code[x] <= 'z') {
let[code[x]-'a']++;
}
}
-
February 27th, 2008, 10:19 AM
Oh lol, sorry i was always told to do it like that
-
February 27th, 2008, 09:46 AM
Thanks for your help, ill make the changes now.
Btw my let[25] array is 25 because an array starts from 0
-
February 27th, 2008, 09:04 AM
Hi, im new to c++ and im trying to make a codebreaking program which works by reading a text file, working out which letter has the highest frequency and swapping it with e, etc.
Except i cant...
|
Click Here to Expand Forum to Full Width
|