Forum: C++ 14 Days Ago |
| Replies: 5 Views: 289 I knew I forgot something
Thanks XD |
Forum: C++ 14 Days Ago |
| Replies: 5 Views: 289 It works wonderfully =) So far it appears that no errors have been introduced. You really are amazing.
Thank you very much for you help with that. |
Forum: C++ 16 Days Ago |
| Replies: 5 Views: 289 Can Someone tell me why these files won't compile on unix but work fine (mostly) in windows?
It looks like unix-land doesn't load the variables from the inherited class QueueArray into the proper... |
Forum: Java Sep 17th, 2009 |
| Replies: 8 Views: 726 The class that contians 'public static void main' must have static declared for all methods contained.
so your code should look like this...
public class Pay
{public static void main(String[]... |
Forum: Java Sep 16th, 2009 |
| Replies: 3 Views: 364 I have used "\t" to tab over to a lined up position. That could be an option for you. |
Forum: C++ Sep 1st, 2009 |
| Replies: 3 Views: 482 Is it possible to compile a single .cpp (not a project) in visual studio 2008? Also will using visual studio cause problems executing code on a unix system?
I am making my first c++ "hello world"... |
Forum: Java Aug 21st, 2009 |
| Replies: 3 Views: 337 char first = myString.charAt(0);
char newFirst;
if ('first' >='a' && <= 'z'){ //if is a lowercase char
newFirst = first-32;//32 is the difference from lowercase to capital
}
else{//*maybe... |
Forum: Java Aug 20th, 2009 |
| Replies: 5 Views: 213 A second option would be to just have a item count variable which increments every time an object is added to an array. Then if the count is > 10 give appropriate responce. |
Forum: HTML and CSS Aug 12th, 2009 |
| Replies: 1 Views: 242 I have been looking into a few things...
Right now it feels like it may be easiest to use blogger and incorporate RSS feeds into the page. |
Forum: HTML and CSS Aug 12th, 2009 |
| Replies: 1 Views: 242 I am trying to find a way to add a something similar to a blog on my site.
What I would like is to be able to post updates, include pictures if desired, and have the content dynamically added to... |
Forum: Java Jul 30th, 2009 |
| Replies: 8 Views: 488 This doesn't address the lack of a method or correct the syntax of the switch statement.
Also there are no classes from java.util.* to be imported. |
Forum: Java Jul 30th, 2009 |
| Replies: 8 Views: 488 This should work for you.
class t {
public static void main (String [] args){
//do stuff
char s = 'Y';
displayStuff(s);
}//end main
public static void displayStuff(char s){ |
Forum: HTML and CSS Jul 30th, 2009 |
| Replies: 6 Views: 565 I don't know if this is related but, once several Google bots were constantly ambushing my site and were the cause of it going down.
Do you guys think that could be a possible cause. All we had to... |
Forum: PHP Jul 30th, 2009 |
| Replies: 4 Views: 255 From what I was reading it doesn't seem that method overloading is possible in php. "However, PHP 5 provides a way to imitate overloading by catching calls to “inaccessible methods” with magic method... |
Forum: HTML and CSS Jul 23rd, 2009 |
| Replies: 3 Views: 1,029 You can use a javascript in the header to cache the images before the page starts to display.
<SCRIPT LANGUAGE="JavaScript">
<!-- hide from non JavaScript Browsers
Image1= new Image(50,60)... |
Forum: Java Jul 13th, 2009 |
| Replies: 6 Views: 541 If you want to do a switch using a String then you have to use an enum
Here is a link for how enums work and how to use them.
http://www.xefer.com/2006/12/switchonstring |
Forum: Java Jul 9th, 2009 |
| Replies: 1 Views: 377 your java file should be named the same as your class (in this case AverageNumbers.java should contain class AverageNumbers)
Also your main method should always be "public static void.main(String... |
Forum: HTML and CSS Jul 2nd, 2009 |
| Replies: 10 Views: 972 Thanks ingeva =)
This works wonderfuly. Too bad there isn't a simpler soultion. (that is concidered "kosher")
Maybe it can be easier once css3 comes out =) |
Forum: Java Jun 30th, 2009 |
| Replies: 13 Views: 919 At this point I am probably as confused as you. =(
Do you think it makes a difference if the applet is run on your pc or on a web server? The getCodeBase() method may give an error from the folder... |
Forum: Java Jun 30th, 2009 |
| Replies: 13 Views: 919 The error is being thrown at line 26 of readFileApplet.java by the method getCodeBase().
I don't know for sure why. I haven't used URL or getCodeBase() before. Sun's documentation states that it get... |
Forum: Java Jun 30th, 2009 |
| Replies: 13 Views: 919 You are probably getting this error because you are trying to do an action on an object that is 'null'. I would add an if statement saying
if (myObjects == null){
System.out.println("this was... |
Forum: HTML and CSS Jun 30th, 2009 |
| Replies: 10 Views: 972 I think I have come up with a small hackjob of a solution. If I add
.linkBlock p{
margin-left:80px;
}
Then the text is lined up with their above headers, and nothing strange is happening... |
Forum: HTML and CSS Jun 30th, 2009 |
| Replies: 10 Views: 972 That was my first attempt, but using text-align:center made the text center but with out a left justified look
ex
------
------------
... |
Forum: Java Jun 26th, 2009 |
| Replies: 4 Views: 232 What would you like an example of? Just let me know and can explain anything you need to know (hopefuly). =)
When I compile/run the program the method returns 84 as the value of area. Are you... |
Forum: Java Jun 26th, 2009 |
| Replies: 4 Views: 232 I would try
import java.lang.Math;
public class CalcDrive {
public static void main(String[] arguments) {
CalcTest one = new CalcTest(); |
Forum: HTML and CSS Jun 26th, 2009 |
| Replies: 10 Views: 972 I am working on a page that has 3 columns of text. I am trying to center the text in each column while maintaining the left justification for the text.
When I try to use margin-left:auto;... |
Forum: Java Jun 23rd, 2009 |
| Replies: 4 Views: 288 |
Forum: Java Jun 23rd, 2009 |
| Replies: 2 Views: 866 I have used this to write files...
DataOutputStream output=
new DataOutputStream ( new FileOutputStream(txtFile + ".txt"));
output.writeUTF(text); |