User Profile
Collapse
-
Assuming JGrasp is an IDE, go find the actual executable on your hard drive and look at what it says by 'Open With'. You want it to be java.exe, it looks like. Or just run it from the command line directly. -
If you mean to run a Perl script from the prompt, type 'perl scriptname' where scriptname is the name of the script and you're in the folder where the script is located. To change file names from the prompt...I think that it's rename oldname newname, but I'm not sure.Leave a comment:
-
Look at the documentation for ps (you'll definitely need -e, probably others as well).Leave a comment:
-
When using string formatting, the syntax isCode:"string with % signs" % (values to replace the format specifiers)
Leave a comment:
-
It is possible to have an X implementation with cygwin, but, frankly, it's a buggy mess. You can get gcov because there are gcc ports to windows (install it in a cygwin environment, for example).Leave a comment:
-
Have you read the man page for chdir? As for an environment variable, I believe that one such variable is the current working directory of your program. You may need to save it if temporary changes are required.Leave a comment:
-
Look at the xml.dom.minidom .Element's getAttribute method...(Node is a subclass of Element, don't worry).Leave a comment:
-
Please wrap your code in CODE tags so that the indentation doesn't get stripped out.
It looks like you only update tries when it's greater than three. Your idea would work, but you also can't have
Code:if: code code else: code
Leave a comment:
-
If he doesn't, we'll all pitch in.
Is there a wired port you can connect to? You'd mentioned you were on a laptop, so you may be able to find wired internet someplace (run an ethernet cord into your wireless router or if you're at college, perhaps your computer lab has wired ports available?). You can also find many packages available online for direct download (Google, you'll likely get the Debian sites, but there shouldn't be any...Leave a comment:
-
Is the file path in each case correct? Remember, Windows uses \ as its separator (don't forget to escape it!) and Linux/Unix use /.Leave a comment:
-
Honestly, what I use Python for the most is the interactive shell, generally as a calculator.Leave a comment:
-
The problem is in line 41. When C++ does integer division, it returns an integer. Thus, when you do 100/180, you get 0. To fix this, declare Celsius as a double or float and make one (or both) of the constants .0 so that the compiler knows you mean a decimal value.Leave a comment:
-
It will not work, no. If he's using Windows, look at py2exe (Google) and try that.Leave a comment:
-
I'm fairly familiar with C99 (and C++0x), but VS does not support C99, nor is there (AFAIK) a way to enable C99 compliance in VS the way -std=c99 does in gcc....Leave a comment:
-
If you want to see what it outputs, I recommend compiling and running this code. For the code itself, I recommend printing the address in hexadecimal and add some whitespace in between the two numbers so you can tell them apart.Leave a comment:
-
Because the compiler doesn't know how much memory to allocate when you don't use a constant expression, it throws an error. To rectify this, use 'new', like this:
Code:int *arr = new int[10]; //... delete arr;
Leave a comment:
-
We won't do your homework for you. We will, however, help you with questions you have about code you've written yourself.Leave a comment:
-
You just asked this about C over on C/C++ and I'll give you the same response here I did there: We won't do your work for you, but we will answer specific questions about code you've written yourself.Leave a comment:
-
We won't do your work for you. We will, however, help with specific questions you have about code you've written yourself.Leave a comment:
-
It looks like you're storing the fractions in lowest terms. This is good. Then, two fractions F1 and F2 are equal if and only if the numerators of F1 and F2 are equal and the denominators of F1 and F2 are equal. Do you know how to implement this in code?
(For a quick hint, the signature of the equals() method is public boolean equals(Object). You will need to cast the Object to an object of your class.)Leave a comment:
No activity results to display
Show More
Leave a comment: