Search found 408 matches

by Herath
Tue Aug 10, 2010 11:55 pm
Forum: .Net & Other Programming
Topic: Calling C/C++ function from ASM code
Replies: 3
Views: 12943

Re: Calling C/C++ function from ASM code

Wow!. You seems to be great at asm. I like to learn that too. I know a bit. But I like to go further. There is no end to it!

Thank you for the explanation. I used to practice reverse engineering of software when I was home after A/Levels. I just had a memory of it. :)
by Herath
Tue Aug 10, 2010 11:25 pm
Forum: Java Programming
Topic: little code in java studies
Replies: 4
Views: 3809

Re: little code in java studies

Oh. It's good. :D I just wrote an explanation of the mistake. Glad that you have found the error. Anyway, I will attach my answer too. Just in case you like to have a look. :) for(x=1;x<5;x++); See that semi colon after then for loop declaration. That tells the compiler that the line has ended. Thus...
by Herath
Tue Aug 10, 2010 10:17 pm
Forum: .Net & Other Programming
Topic: Calling C/C++ function from ASM code
Replies: 3
Views: 12943

Re: Calling C/C++ function from ASM code

I have seen programs Pushing parameters in to the stack before calling a function. (While disassembling little executable files.) . I am taking about x86 assembly.
by Herath
Tue Aug 10, 2010 9:44 pm
Forum: Introductions
Topic: Herath
Replies: 0
Views: 2038

Herath

There is no much about me still. I am 24. Still studying for bachelors. And following another degree course towards an IT degree(currently postponed a bit). At the university, I am following a degree course with Chemistry, Mathematics and Statistics as subjects. And I like IT more than those applied...
by Herath
Tue Aug 10, 2010 9:23 pm
Forum: Java Programming
Topic: 18 errors in this OMG
Replies: 20
Views: 12889

Re: 18 errors in this OMG

Yes. Switch block is the best way to handle this kind of work. :idea:
And some exceptions should also be handled. I didn't bother mentioning. He might not know about exceptions yet. :)
by Herath
Tue Aug 10, 2010 9:12 pm
Forum: Java Programming
Topic: 18 errors in this OMG
Replies: 20
Views: 12889

Re: 18 errors in this OMG

import java.util.Scanner; /** made by gayan bandara. date 07.08.2010 to make a calc*/ public class Gayan_calculator{ static void list(){ System.out.println("1.Add numbers"); System.out.println("2.Substract numbers"); System.out.println("3.Multily numbers"); System.out.println("4.Divide numbers"); }...
by Herath
Tue Aug 10, 2010 9:03 pm
Forum: Java Programming
Topic: 18 errors in this OMG
Replies: 20
Views: 12889

Re: 18 errors in this OMG

Well, when you use "if" there should be a condition to check. The code inside the "if" block will only be evaluated only if the condition of the "if" block is true. I think you are aware of it. Let's see your "if" block. if(selection==+||selection==-||selection==*||selection==\) selection==+ This is...
by Herath
Tue Aug 10, 2010 8:39 pm
Forum: Java Programming
Topic: 18 errors in this OMG
Replies: 20
Views: 12889

Re: 18 errors in this OMG

import java.util.Scanner; /** made by gayan bandara. date 07.08.2010 to make a calc*/ public class Gayan_calculator{ static void list(){ System.out.println("pre+ss + for Add numbers"); System.out.println("press - for Substract numbers"); System.out.println("press * for Multily numbers"); System.out...
by Herath
Tue Aug 10, 2010 8:31 pm
Forum: Java Programming
Topic: 18 errors in this OMG
Replies: 20
Views: 12889

Re: 18 errors in this OMG

with input.nextInt(), the scanner is waiting for a integer value. But you enter an character (char ) . It is the cause for the inputMismatchException. There is no method for reading next character value. But there is a method named "next()". I think you will be able to use that and some casting ( co...
by Herath
Tue Aug 10, 2010 11:06 am
Forum: Java Programming
Topic: 18 errors in this OMG
Replies: 20
Views: 12889

Re: 18 errors in this OMG

Half means?.
Normally, the argument list is a parameter of the main method.
So,

Code: Select all

public static void main(String[] args)
{


}

Go to advanced search