It's alright, I guess I can close this. I had to write some TCP socket layer stuff in Java, so I just completely re-wrote everything in Java (nightmare).
Thanks for the suggestion, I'll look into that the next time.
User Profile
Collapse
-
Reading a file into an INT array?
So I'm trying to read a file into an INT array with no luck. I don't want to use a char array because I'm actually performing math operations. Any help would be GREATLY appreciated. I'll post the section I need.
And I know there's some conversion warnings, but those are the least of my worries. The text file is simply numbers with spaces, example:
37 181 201 89 64
Code:int decrypt() {
-
Found answer. Thanks!Leave a comment:
-
Trying for find a minimum from maximum selection
I'm querying a university database and trying to find a minimum of a maximum list.
Code:> select name,dept_name,max(salary) as max_salary from instructor group by dept_name;
Code:+------------+------------+------------+ | name | dept_name | max_salary | +------------+------------+------------+ | Crick | Biology | 72000.00 | | Srinivasan | Comp.
-
I kinda had that going for a minute after I posted this and just searched through the root directory in /bin and /sbin, but yours seems more thorough, lol.
One of my friends pointed out that the question actually says "Write a shell script that prints the NUMBER of command line arguments." That threw me off because now we don't know if he wants COMMANDS or COMMAND [argument]. I appreciate the help though!Leave a comment:
-
Count Number of Commands
So I've been trying to print all of the commands to one file on new lines, and then count them. The problem I'm getting is that I can't get all the commands into a file. I've tried assigning <TAB> to a value to do tab twice and list all commands, but to no avail.
Does anyone have any suggestions? -
Wow this was old.
Just post the code you have and we can see what's going on....Leave a comment:
-
How to define a Grammar for a Language
The question I'm working on has to do with defining a grammar set for a language. There is no defined set to use, it just needs to be made up.
The language is { a*b^n*c | n = 0, 1, 2, 3...}.
I understand I need the start symbol S, with vocabulary of non-terminals and terminals. I just don't understand how to get down to the a*b^n*c part. Any help understanding this would be appreciated. :) -
How to find the source code of functions?
I want to understand why certain functions do certain things. Such as in a linked list, I'm looking for the source code behind the list.at(), or list.resize() functions.
cplusplus.com only gives references, but does anyone know where to find the behind the scenes work? Thanks. -
Ohhhhhhh.... I feel dumb. There was also some brackets missing in my code as well that contributed to that.Leave a comment:
-
Why does this simple for loop create multiple errors?
Code:public static void main(String[] args) { double modArray[]= new double[10]; for (int i =1, i < modArray.length(), i++){ modArray[i]= (26*i+7)%31; } //end for System.out.println(modArray); }//end main
-
(Hopefully) simple java question
If I'm using a command line argument using args[0] and trying to pass it to a method with 2 parameters, is there a special way to do so?
basically it's
Code:public static void main(string[] args) { methodName("where i need args[0] to pass to", "C:\\testdoc.txt"); } public static void methodName(string[] args, copyDocName){ code
-
Tic Tac Toe issue
So I'm working on my final lab, and I'm fixing a few errors. But the one I can't get right now is how to return who is the winner. Everytime I try to write the code for findWinner, it says missing return value, despite it being (what I think is) correct. There's two classes. And yes, there's an Infinite loop I'm trying to find, but I'll get to that next.
Code:public class TicTacToeGameFirstLast { public
-
Hm. I don't think they would actually do anything. There is a webCompiler on the CSE website, as if you were looking at notepad or somthing, then you can run it and see if it works.
I think it's because they want a high rate of passing for students, since not everyone in Computer Science will be programming/software engineering, etc. (I would actually be one of those people).Leave a comment:
-
It's alright. I got it. I actually had some problems with my switch statement, but I just couldn't get returnGPA to print, but then I fixed it. Thanks again though.
Oh, and our school requires us to use Netbeans or Eclipse.Leave a comment:
-
Trouble with output.
This program is used to calculate GPA. I'm having trouble actually getting an output. Alright, I KNOW that I don't have an output statement, but I don't know where to put it... heh. Netbeans keeps telling me it's wrong. So, here's my two classes.
Code:package KyleTaylorGPA; public class GPA { private double theGPA; private int gradePointsSum; private int numHours;
-
Nevermind, fixed it.
Code:import java.io.*; public class KyleTaylorToolBox { public static void printEveryXtoY (int x, int y) { // this method prints every xth integer from 0 to y that is less than or equal to y. // example output when passed (4,14): 0 4 8 12 // example output when passed (2, 14): 0 2 4 6 8 10 12 14 int count = 0; while (count
Leave a comment:
-
Wait, found something.
Code:URLDisplayer.getDefault().showURL(URL url);
Leave a comment:
-
General Java Help
Heyyy, I'm back. Getting the hang of this java thing. Anyways, I have a few questions, I'll leave my hardest for last.
So, I believe I'm having an overloading method issue here.
Code:public static boolean closeAccount (double acctBalance, int checksLeft) { // returns true if acctBalance is less than zero or checksLeft is less than or equal to zero. if (acctBalance < 0 || checksLeft <= 0){
-
For instance if I run the program twice so the jet will "run out of fuel". When I place xOffset = distanceX after running the math portion, the next time I run the program, it'll be the "new" distanceX subtracting the previous distance as a "point"... man, this is hard to describe.Leave a comment:
No activity results to display
Show More
Leave a comment: