- Upvotes Received
- 2
- Posts with Upvotes
- 1
- Upvoting Members
- 2
- Downvotes Received
- 5
- Posts with Downvotes
- 1
- Downvoting Members
- 5
19 Posted Topics
Re: projecteuler.net for the math freaks! | |
Re: Hmm whats str1? You have to compare the first letter and the last letter, then the second letter and the last but one letter and so on. So...think how we could go about doing that. | |
Hello, I have a database with about 25 tables and almost every table having a foreign key on some other table. They system needs to deal with a large number of reads and writes. I'm concerned if having too many foreign keys and relationships between tables will lock the tables … | |
I'm using sIFR ([url]http://www.mikeindustries.com/blog/sifr/[/url]) in a website along with some javascript. The javascript makes the sizes of the two divs equal. And the javascript is run on window.onload. The problem is the sIFR seems to get rendered AFTER the scripts specified by window.onload. This means that the divs are made … | |
Hey, I'm working on a Paint program. I've never built a proper program before so I was wondering how I should go about structuring an actual piece of software. I'm trying to a make a simple paint application (like MS paint) using C++ and the SDL library. Right now, I'm … | |
Hey, I just started learning OpenGL. I have a problem understanding the coordinate system. [code] glVertex2d(1,2); [/code] Now obviously, the coordinates aren't in pixels. The problem is I want to mark pixels on my windows and I can't figure how to do this. How big is one unit? I tried … | |
Re: Ya i agree, this is really hard! Wish the whole world used Gecko! Anyway, you could try using the conditional tags Google it up. [QUOTE] <!--[if IE 6]> Special instructions for IE 6 here <![endif]-->[/QUOTE] | |
I developed a theme for Drupal. Its my first proper theme ever. But I feel its not so good. For some reason it doesn't look 'professional'. Could you criticize it please? I've included a screenshot...I'll put up a working model if required. Thanks. | |
Re: width:auto or something like that? and also float:right. | |
I have two divs which both have backgrounds in my CSS properties. Unfortunately, div2's background overlaps div1's background. But I want it the other way around. In other words, I want div1's background over div2's. I've tried z-index but it didn't work. How do i solve this? | |
I have empty space div that goes like this: [code]<div id="space"><!-- IE fix--></div> [/code] and the CSS for this is: [code] #space{font-size:0; background-color:transparent; height:15px; display:block; } [/code] This should just make an empty box. And its fine in firefox. But in IE I get no space at all! Whats wrong? | |
Any channels/servers on IRC for programming? can't seem to find any :S | |
Its pretty standard, why the hell isnt the window showing?? Cant figure it out :( [code] import javax.swing.*; import javax.swing.text.*; import java.awt.*; import java.awt.event.*; public class GUIpart { //All ze variables required int tempboard[][]=new int[9][9]; SudokuBoard fresh= new SudokuBoard(); JFrame sudoku = new JFrame("Srik Sudoku"); JFormattedTextField guiboard[][] = new JFormattedTextField[9][9]; … | |
How would I go about making JTextField allow the user to input only numbers 0 - 9? I looked into JFormattedTextField but it doesnt seem to be what I need. Would I have to code it to check the users' input everytime? Is there a simpler way? | |
Re: I suppose that generating a webpage means just putting stuff into a html file, just like any other file. You put HTML code in it. ![]() | |
Re: [url]http://bloodshed.net/devcpp.html[/url] [url]http://www.codeblocks.org/downloads.shtml[/url] Go for the first one. You don't need to make those stupid projects for single file programs. | |
Re: Yes. You CAN read and wrte in the same file. You will have to use fstream to declare your stream. [url]http://www.daniweb.com/tutorials/tutorial6542.html[/url] You will have to read the file into memory, change it there and then write it back if you want the read character to be deleted. | |
Re: You can get the parts by doing this [code] float a=12.5678; int whole_part=a; float dec_part=a-whole_part; [/code] If you want only one decimal part try this [code] float dec_part_1=((int)(dec_part*10))/10; [/code] If you want two, replace the 10 with 100 and so on. | |
Re: I don't think this code works because once the cursor in inIgnoreFile goes to EOF, you aren't resetting it to the beginning of the file for the next loop. Try using the seekg() function(Google for info). To get the proper text in the output, you'll have to make some changes. … |
The End.