Search:
Type: Posts; User: Judas1012
Search:
Search took 0.09 seconds.
-
September 8th, 2008, 12:43 PM
FILE * infile;
infile = fopen ("cels.txt","r");
if (infile!=NULL)
{
fputs ("fopen example",infile);
fclose (infile);
}
Did you just "grab" this sample fopen code from somewhere and...
-
April 20th, 2006, 09:47 PM
What is "evenly"? Why not insert the items in the first two spaces? Can you explain with a little more detail?
-
February 19th, 2006, 06:57 PM
Look at the code: that's exactly what you're telling it to do most of the time.
Specifically, if motor == 0 coming in to that function, then the first thing that gets evaluated is "is motor == 0?"...
-
December 4th, 2005, 11:52 PM
Hmm... I don't know why it's giving you that error, but Integer.parseInt returns type "static int", not type "IntegerCalculator" as you have in your code:
...
-
November 27th, 2005, 11:01 PM
It looks good to me... how are you calling this function? Can you post the bit of code where you actually call this?
Also, in Java, don't you have to enclose all conditionals with curly-braces...
-
November 17th, 2005, 10:38 PM
Just making sure! You didn't specify that step in your last post... hehe... wouldn't it have been nice if that were the problem? ;)
Anyway... I'm thinking it may have something to do with your...
-
November 17th, 2005, 10:35 PM
If this may clarify things a little more:
Think of a class as a blueprint. That's the perfect thing to think of it as, like GuOddian said.
You don't have any objects until you create an object...
-
November 17th, 2005, 10:19 PM
Are you compiling the program before you try and run it?
> javac MyProgram.java
> java MyProgram
-
September 17th, 2005, 08:54 PM
We ran into a problem similar to this and ended up using a "quadrant" test for both X and Y: which quadrant the rotated point would lie in, then we adjusted "New X" and "New Y" by negating the sign...
-
July 22nd, 2005, 02:29 PM
Can you post the code you've written so far?
We usually don't write code for people, but will gladly help with code you've already written. If you've got a specific question about the execution,...
-
July 11th, 2005, 06:23 PM
Splint is a re-write of the original lint UNIX application, and should be the same in most respects.
-
June 30th, 2005, 05:30 PM
You need the help of Djikstra's algorithm:
http://en.wikipedia.org/wiki/Dijkstra's_algorithm
-
June 23rd, 2005, 03:37 PM
What do you want to do? Split the address into "number" and "street", like 504 American St. would be "504" and "American St." and store those in variables or something?
I don't quite understand...
-
June 20th, 2005, 10:31 PM
Just a follow-up to our final algorithm.
We found major problems using the slope of the line to see if two lines were parallel -- first was considering infinite slopes, and the next took a bit of...
-
June 14th, 2005, 08:48 AM
In the United States, there are approximately 212,000 different blockgroups, each with between 4 and 500 edges (depending on the complexity/population of the blockgroup).
The slowdown, I...
-
June 13th, 2005, 10:55 PM
Wow -- that worked absolutely great with a few tweaks. With a little pre-processing (computing all slopes of all edges of all polygons of blockgroups in the US took a little over 15 minutes), now we...
-
Yep, I took care of the vertical line problem by assigning a "hival" value to any slope that is 0... so, the slope of a vertical line is 2,000,000,000 -- an improbable slope. I know this isn't the...
-
Good day, gurus... I'd like to pick some brains for a moment and see if anyone has a better algorithm than the one I've come up with.
In a nutshell, I'm trying to determine whether two polygons...
-
April 24th, 2005, 07:11 PM
Yep, using TCP/IP, and I finally figured it out... I was writing 2 more bytes than I needed to due to some crappy math in the program... easy fix, tough hunting it down, though... strange that it...
-
April 24th, 2005, 03:43 PM
I've got a little client-server program written and am having trouble copying files from the server to the client. It appears that the server writes the correct amount of bytes, and the client reads...
-
March 26th, 2005, 10:43 PM
Warning: this is academic in nature... ;)
I'm trying to write a simple client-server program using named pipes (FIFOs) to compare files and what-not. It seems that the code executes perfectly for...
-
February 3rd, 2005, 09:59 PM
For c, think about how many spaces are at the beginning of the line... and what your current iterative position in the loop is... for example, iteration 0 (the first one) has 0 spaces at the front. ...
-
November 28th, 2004, 03:37 PM
Well, it's not in the fixHeap method -- almost 100% positive it's with the findLastParent() method.
-
November 28th, 2004, 01:53 PM
Got a little trouble writing this one last function for an academic assignment. We're implementing a binary tree max heap with binary tree nodes (not an array, as would be a lot easier!) and am...
-
November 22nd, 2004, 07:05 PM
It would be helpful if you put only your code inside the code tags and your actual question/query as normal text.
|
Click Here to Expand Forum to Full Width
|