Has it? I'll see if I can't sort that out :)
Edit: replaced with another link :)
Printable View
Has it? I'll see if I can't sort that out :)
Edit: replaced with another link :)
Been doing some "semi-programming" on my Ufouria ROM editor. only semi-programming because I'm making the editor in Multimedia Fusion, which really isn't a programming language but an event/action based environment.
I've done some really heavy optimization today and yesterday. For example, I changed this:
to this:Code:Val( "0b" + Right$( Right$( "00000000", 8 - Len( Right$( Bin$( byte( "Binary object", P_Properties + Alterable Value A( "CurMicro" ) ) ), Len( Bin$( byte( "Binary object", P_Properties + Alterable Value A( "CurMicro" ) ) ) ) - 2 ) ) ) + Right$( Bin$( byte( "Binary object", P_Properties + Alterable Value A( "CurMicro" ) ) ), Len( Bin$( byte( "Binary object", P_Properties + Alterable Value A( "CurMicro" ) ) ) ) - 2 ), 2 ) )
And it does the exact same thing. Yay! :lolCode:byte( "Binary object", P_Properties + Alterable Value A( "CurMicro" ) ) and 3
Hi all, n00b here, I was wondering how you would make text right alligned in HTML? I ask because I wish to do something in java that would create a letter to a customer and I was just wondering how to right allign the text for the address? Thanks :)
I decided to start making my first game tonight, with the old turbo c graphics library. I was thinking snake but i thought pong might be a bit easier.
I've got the first paddle working so far, without out it flying off the screen, lol
Edit; whoops, the attached exe isn't working, I must have attached the wrong one.Code:#include <graphics.h>
int main(void)
{
int left=0,top=240,right=10,bot=270;
int driver=DETECT,mode;
char c;
initgraph(&driver, &mode, "");
outtextxy(280,180,"Pong in the making");
outtextxy(280,200, "PRESS Q TO QUIT");
outtextxy(280,220, "2 - UP 8 -DOWN");
bar(left,top,right,bot);
c=getche();
while(1)
{
switch(c)
{
case '2': if(top != 450)
{
top+=30;
bot+=30;
cleardevice();
bar(left,top,right,bot);
c=getche();
}
break;
case '8': if(top != 0)
{
top-=30;
bot-=30;
cleardevice();
bar(left,top,right,bot);
c=getche();
}
break;
case'q': break;
default: c=getche();
break;
}
if (c== 'q') break;
if (c=='2' && top==450)
c=getche();
if(c=='8' && top==0)
c=getche();
}
closegraph();
return 0;
}
edit 2, actually, i needed to put the graphics drivers in the zip to make this program run on other pcs :o
Nice, I will have to try that out :)
Also I have a Java Inquiry, I am wondering how you would put it so that when a Jbutton is pressed, it will act upon what is contained in a JComboBox? Its a silly little thing that is holding me back on something :S
Hello everybody. It's been a while...
Theo, do you have ActionListener and all that stuff, so that you actually have a method called when the JButton is pressed?
I suppose you do.
For JComboBox, you could use either getSelectedIndex or getSelectedObjects method, depending on which one suits you better.
Don't worry about it, I just made a most silly mistake, I just am not with it at the moment lol :S I got by that problem anyway :)
Align? :PP
How 'bout
AnywaysCode:<p style="text-align: right">text here</p>
Has anybody ran into this problem?
I have links on my page to .php (contains php and xhtml) files for example:
If I got .php file linked instead of html one it changes font size, why?Code:<a href="/any.php">link</a>
Hmm could someone post a standard java program that will write a specific amount of text to a file and create that file? I'm doing it at the moment (Though the bloody latest one I have is at the university :S) and I was wondering (though someone will probably have) if someone could do a better job :wacko:
This overwrites the text if the file exists, or creates a file if it doesn't.
Code:import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintStream;
public class DiskWrite {
public static void main(String args[])
throws FileNotFoundException {
PrintStream diskWrite =
new PrintStream(new File("test.txt"));
diskWrite.println("Some text here");
}
}