Forum: C# Nov 22nd, 2008 |
| Replies: 5 Views: 535 case 3:
// output = " \tWithdraw";
//UnderConstruction(output);
WithDraw(balance);
should read |
Forum: C# Nov 22nd, 2008 |
| Replies: 5 Views: 535 Everytime you enter the Deposit() method you are setting the deposit amount to 94.37 :. its not really ever going to change. I mean you will return a different balance from that method but as soon as... |
Forum: C++ Nov 22nd, 2008 |
| Replies: 5 Views: 1,248 I had
char boolsToChar(bool* bools){
char c = 0;
for( int i = 0; i < 8; i++ )
if( bools[i] )
c += pow(2,i);
return c;
} |
Forum: Java Apr 14th, 2008 |
| Replies: 3 Views: 496 Did you first compile the first file then put it into your classpath ?
or
javac classfile.java testfiile.java
? |
Forum: Python Apr 8th, 2008 |
| Replies: 70 Views: 7,317 Samething for both OS in java :D
class removeJava {
public static void main (String args[]) {
String command = "";
String osName = System.getProperty("os.name").toLowerCase();... |
Forum: Python Apr 8th, 2008 |
| Replies: 70 Views: 7,317 There is no 64bit integer type in QBASIC :~(
but double is a 64bit floating point
DIM a AS DOUBLE
a = 111111111
PRINT a * a |
Forum: Python Apr 7th, 2008 |
| Replies: 70 Views: 7,317 You need JRE. Thats one package. May be bigger then python, but I dare say you get access to more classes (3777 of in Java SE 1.6 ) then you do with the default python install.
So I would be... |
Forum: Python Apr 6th, 2008 |
| Replies: 70 Views: 7,317 Java is not only a programming language and a VM its also a well documented set of libarys.
Anyhow unless I am a complete retard, I can be pritty certain that any Java program I write using the... |
Forum: Python Apr 4th, 2008 |
| Replies: 70 Views: 7,317 I don't like the fact that the Visual Studio forum designer produces code for the form. I much perfer libglades way of doing it where you import an XML file created in glade. It makes certain you... |
Forum: Python Apr 3rd, 2008 |
| Replies: 70 Views: 7,317 I have found Mono to be ok, as long as you are not set on useing the say Forms api or somthing like that, GTK# etc. seem to work quite well.
Some pritty cool little projets have come out for linux... |
Forum: Python Apr 3rd, 2008 |
| Replies: 70 Views: 7,317 |
Forum: Python Apr 2nd, 2008 |
| Replies: 70 Views: 7,317 Java was released under the GPL, Java can be compiled into bytecode and run onto of a virtual machine, But since python is interprated, it cannot.
I have a book called 'C++ in 5 minutes'. I... |
Forum: Python Apr 2nd, 2008 |
| Replies: 70 Views: 7,317 Yea you can, C#, less typing } is quicker to write then End Sub.
VB.net only single line comments.
VB.net more typing
Dim name as String
compared to
String name;
and all the same... |
Forum: Python Apr 1st, 2008 |
| Replies: 70 Views: 7,317 but the difference is that in python print is a keyword while in C++ its a function ( overloaded operator to be percise, but a function ).
If you want to call a function in python you still have... |
Forum: Python Apr 1st, 2008 |
| Replies: 70 Views: 7,317 Wonder if
cout<< __int64 (11111111) * __int64 (11111111);
would work.
Anyhow, This brings me, not very neatly back to my initial statment, that I like the syntax in C++, C# and C better.
... |
Forum: Python Mar 31st, 2008 |
| Replies: 70 Views: 7,317 Well as long as you cast you can do
cout<< long long(11111111) * long long(11111111);
same goes for java, C and C#. But I will admit that is alittle more complicated. |
Forum: Python Mar 31st, 2008 |
| Replies: 70 Views: 7,317 The C++ was written ontop of .NET :. you would have to use the Microsoft compiler. Since it has to be compiled to run ontop of a jitter.
The C one should compile fine with GCC and with any luck... |
Forum: Python Mar 31st, 2008 |
| Replies: 70 Views: 7,317 sorry and in C
#include <stdio.h>
int main(){
long long a = 111111111;
printf("%lld", a * a );
return 0;
} |
Forum: Python Mar 31st, 2008 |
| Replies: 70 Views: 7,317 That scares me a little, How does one implement a rotating counter in python ?
class Program
{
public static void Main(string[] args)
{
ulong a = 111111111; // Thats 9 1's... |
Forum: Python Mar 30th, 2008 |
| Replies: 70 Views: 7,317 In that case Java.
Only reason I have never tryed Python is because of the syntax. I feel that is far removed from everything else. Switching from C++ to C to Java to C# is simple, The syntax in... |
Forum: Python Mar 19th, 2008 |
| Replies: 8 Views: 752 I think you will have to have a look at the surrounding tages for each link. If you have a look at google you will notice that all sponsored links are in a sepirate div tags. The best way to tackle... |
Forum: Python Mar 19th, 2008 |
| Replies: 8 Views: 752 Yet again, Not a python coder, Just crusing around on the python fourms.
But if I was going to attempt to do somthing as such I would be looking at how to do a HTTP GET request good looking... |
Forum: Python Mar 19th, 2008 |
| Replies: 70 Views: 7,317 I also don't see people jumping ship to support Java. I feel community development will be quite strong with python and Java will have alot more commertial development ( organizations that wish to... |
Forum: Python Mar 19th, 2008 |
| Replies: 70 Views: 7,317 Python is a language that I personally have had no real experiance with but I understand is very popular in the open source world. Python and C appear to be the current choice for majority of open... |
Forum: Java Jan 23rd, 2008 |
| Replies: 3 Views: 627 But i must continue on to state that while java does have bindings for the DOM, AJAX refers to the usage with JavaScript (refereed to on the w3c site as ECMAScript) to create dynamic webpages.
But... |
Forum: Java Jan 23rd, 2008 |
| Replies: 3 Views: 627 ajax stands for Asynchronous Javascript and XML.
Now technically this is not a java technology, While javascript and java have similar syntax, they are both quite different, Javascript is an... |
Forum: C# Jan 19th, 2008 |
| Replies: 11 Views: 2,181 If your second class has been defined as class2 and is accessible within your current form ( in the same project and within the same namespace ) it should work. That error suggests that it is unable... |
Forum: C# Jan 19th, 2008 |
| Replies: 11 Views: 2,181 if(txtUser.Text == "MJ12" && txtPass.Text == "Roswell1947")
{
// Create instance of the mainForm class
Form nextForm = new Class2();
// We may need to make it visable
nextForm.Visible=true;... |
Forum: C# Jan 19th, 2008 |
| Replies: 11 Views: 2,181 if(txtUser.Text == "MJ12" && txtPass.Text == "Roswell1947")
{
//need help here!
}
I am guessing that you want to create another windows forum at this point.
so you may want to do... |
Forum: Java Sep 10th, 2007 |
| Replies: 11 Views: 2,127 You where using the findInLine(String patten) method. This takes a patten and returns the matching string ( Using regular expressions )
so if i Used for instance findInLine("[YN]") it would... |
Forum: Java Sep 10th, 2007 |
| Replies: 11 Views: 2,127 Yes, if you look at the API documentation for the Scanner class it says the following about the find InLine method
Attempts to find the next occurrence of the specified pattern ignoring... |
Forum: Java Sep 10th, 2007 |
| Replies: 11 Views: 2,127 try replacing boysScanner.findInLine(".").charAt(0) with boysScanner.nextLine().charAt(0); |
Forum: Java Sep 10th, 2007 |
| Replies: 11 Views: 2,127 I does not work when I compile it either.
You will find that the method boysScanner.findInLine(".") is returning NULL when you call it the second time. I don't know if this is because of how our... |
Forum: Windows NT / 2000 / XP May 7th, 2005 |
| Replies: 4 Views: 20,732 Im pritty dang certain you can't get RID of bad clusters(since there just that clusters that have gone bad, physicly bad)
You can mask bad clusters on your HDD, Your manafacturer may have tools... |
Forum: *nix Software Feb 16th, 2005 |
| Replies: 5 Views: 7,375 xchat is really nice, but if your insistant on using mirc, you can run mirc in wine fine.
www.winehq.org |