Forum: Assembly 18 Days Ago |
| Replies: 3 Views: 324 Hello,
I was just wondering if the hlt instruction would produce a blinking cursor at the command line until enter is pressed or if its use is not noticeable to the user. Google wasn't too helpful... |
Forum: Java Jun 24th, 2009 |
| Replies: 5 Views: 323 The exception stack trace said it was throwing an EOFException. Thanks JC I'll have to try that. I know its very weird error to have when opening a file but that's what it's telling me. I'll try to... |
Forum: Java Jun 24th, 2009 |
| Replies: 5 Views: 323 It's throwing an EOFException when attempting to open the file. The initial contents of the file is only an int, specifically '0'. I'm not really sure what to make of it. I tested the code with debug... |
Forum: Java Jun 23rd, 2009 |
| Replies: 5 Views: 323 Hello,
I am writing a method which must open a file, read its contents, close the file, open it later, write to the file, and close it again. The method is failing at the first step and throwing an... |
Forum: Java May 27th, 2009 |
| Replies: 2 Views: 448 It already does but thanks! I'm assuming that integers can be mixed in the same file as other objects. Is there another way to save that I could try? |
Forum: Java May 27th, 2009 |
| Replies: 2 Views: 448 Hello,
I am having problems using an ObjectInputStream to read from a file. My program uses a File to check whether or not a specific file exists. If it exists my program will attempt to create a... |
Forum: Java May 24th, 2009 |
| Replies: 2 Views: 168 Thanks for reminding me. It's been awhile since I tried it and one can only research on dial up can only go so long until the patience runs out ha! |
Forum: Java May 23rd, 2009 |
| Replies: 2 Views: 168 Hello,
I am trying to do something very simple but my dial up connection is making it hard to research so I'd like some help! I'm trying to store instances of classes I created in a file. Something... |
Forum: C++ Apr 15th, 2009 |
| Replies: 9 Views: 465 Where would a good place be to learn more about multithreading? I don't think there is much at www.cpluplus.com. Any suggestions on libraries/tutorials? Thanks! |
Forum: PHP Mar 31st, 2009 |
| Replies: 4 Views: 368 Thanks darkagn. I guess a better way to phrase my question would be is it possible to only select one row at a time based on something like the primary key? Something along the lines of:
$result =... |
Forum: PHP Mar 31st, 2009 |
| Replies: 4 Views: 368 Hello,
I'm pretty new to PHP and MySQL. I was wondering what the most efficient way to access a large database would be. All the tutorials I've seen show something along the lines of:
$database =... |
Forum: HTML and CSS Mar 30th, 2009 |
| Replies: 2 Views: 775 Thanks! That will work for what I'm doing. I appreciate your help! |
Forum: HTML and CSS Mar 30th, 2009 |
| Replies: 2 Views: 775 Hello,
I was wondering if there's a way to use the meta tag to go back. I know you can refresh to a new page but I would like to have the user go back instead. Is this possible? Thanks! |
Forum: PHP Mar 25th, 2009 |
| Replies: 1 Views: 255 Hello,
I am very new to PHP and have been working with it now for about a month. My site uses a script to process a POST and generates a new page. The page it generates is saved with the same name... |
Forum: C++ Mar 19th, 2009 |
| Replies: 1 Views: 483 Start by looking at the fstream library. It will let you write files to disk. It also allows reading from disk. |
Forum: HTML and CSS Mar 2nd, 2009 |
| Replies: 1 Views: 409 Hello,
I am just starting to work with CSS and wondered if there was a good way to make boxes. I found this tutorial (http://modxcms.com/simple-rounded-corner-css-boxes.html) but there are also a... |
Forum: PHP Feb 20th, 2009 |
| Replies: 6 Views: 531 Thanks! Yeah that does make sense. I just thought it might be checking for a value instead of assigning. Thanks for clearing it up! |
Forum: PHP Feb 20th, 2009 |
| Replies: 6 Views: 531 Hello,
I am new to php and enjoy the fact that it is very similar to languages that I'm much stronger with (mainly C++ and Java). While working through the w3 school's tutorials I noticed a... |
Forum: C++ Feb 18th, 2009 |
| Replies: 7 Views: 1,063 You need to put the return 0; at the end of your main() function. The padBlanks() function will return the string. |
Forum: C++ Feb 18th, 2009 |
| Replies: 5 Views: 359 Since you assign the value in "a" to "b" you effectively lose the address of the char [] pointed to by "b." You can delete the value pointed to by "b," which will be the same char [] pointed to by... |
Forum: C++ Feb 17th, 2009 |
| Replies: 2 Views: 450 Idk for sure I didn't try this but there is a function button1_click(). Perhaps that is where the action for the click should go. Sorry but I don't have a compiler right now to check that with. |
Forum: Java Feb 15th, 2009 |
| Replies: 2 Views: 273 Thanks ~s.o.s~! I incorrectly stated insertion sort whenever it is actually selections sort I believe. Either way I discovered that the reason it isn't working is simply because I never change... |
Forum: Java Feb 15th, 2009 |
| Replies: 2 Views: 273 Hello,
I am working on a project that requires a set of points to be sorted by their angles in relation to the x-axis. The angles, which are in radians, store their angle as a double value. My... |
Forum: JavaScript / DHTML / AJAX Feb 12th, 2009 |
| Replies: 3 Views: 700 Thank you almostbob! I will look into those solutions. Ha I just figure secure passwords are a common courtesy for users. |
Forum: JavaScript / DHTML / AJAX Feb 12th, 2009 |
| Replies: 3 Views: 700 Hello! I'm just learning JavaScript and I was wondering if clients can view external JavaScript files? I would like to (potentially) use JavaScript to validate passwords to log into my site. Would... |
Forum: Java Jan 30th, 2009 |
| Replies: 5 Views: 788 Sorry I found out the method is working and another method is distorting the data. Thanks! |
Forum: Java Jan 30th, 2009 |
| Replies: 5 Views: 788 Right I've only included the bit of code that writes the arrays... there is other code that handles each array separately. But for some reason when I print out the results the first 3 elements of the... |
Forum: Java Jan 29th, 2009 |
| Replies: 5 Views: 788 Sorry! It's supposed to recursively fill an array with all permutations of 0-3. I have other code that handles different situations but this is supposed to produce areas such as:
0 0 0 0
0 0 0 1... |
Forum: Java Jan 29th, 2009 |
| Replies: 5 Views: 788 I'm having a pretty weird logic error. It seems that this code is always ending my arrays with 3. It should (being a recursive function) iterate through 0, 1, 2, 3. My test array is of length 4 but I... |
Forum: C++ Jan 21st, 2009 |
| Replies: 9 Views: 591 If you compile it and it won't run maybe try adding system("PAUSE"); at the end of your code (right before return 0;). This will only work on Windows and isn't portable. |
Forum: C++ Jan 12th, 2009 |
| Replies: 4 Views: 340 You should be able to download the graphics.h library or perhaps copy it from your school's compiler and install it in your home machine. |
Forum: C++ Jan 5th, 2009 |
| Replies: 2 Views: 384 Thanks Comatose! I think this should work beautifully :) |
Forum: C++ Jan 5th, 2009 |
| Replies: 2 Views: 384 I tried Googling this to no avail: how can I request the used space/ total size of the hard drive? In this case it is safe to assume that the machine will be running Windows. |
Forum: C++ Dec 12th, 2008 |
| Replies: 1 Views: 468 I always wondered if it is possible in Windows to read in general file information (size, created date, modified date, etc) and then modify that data? If it's possible, how can it be done? |
Forum: C++ Dec 12th, 2008 |
| Replies: 3 Views: 240 No he means try system("path\to\file\updater.exe"); This would work if your update program is packaged separately from your actual executable and if you're planning to only distribute on Windows. |
Forum: C++ Dec 10th, 2008 |
| Replies: 2 Views: 431 I was trying to find ways to improve the loading time of an application that I'm working on. It uses SDL to handle graphics and sound which brought up a question: which takes longer to load? If I... |
Forum: C++ Dec 10th, 2008 |
| Replies: 9 Views: 743 Why not use numbers (1-13) and convert 1, 11, 12, 13 to Ace, Jack, Queen, King when you output? |
Forum: C++ Dec 10th, 2008 |
| Replies: 12 Views: 573 I just quickly glanced at your code so please forgive me if this is wrong but don't you initialize the game[] with the values {1,2,3,4,5,6,7,8,9} but then to tell if there is a move there you compare... |
Forum: C++ Dec 10th, 2008 |
| Replies: 1 Views: 623 Forgot that I need time between playing the music and ending it haha! |
Forum: C++ Dec 9th, 2008 |
| Replies: 1 Views: 623 I'm learning how to use the SDL libraries but I'm having a small problem playing the sound. The program appears to load the sound but either not play it or play it too low for me to hear. Here's my... |