Search:

Type: Posts; User: cristianll

Search: Search took 0.20 seconds.

  1. Replies
    13
    Views
    3,106

    Re: Convert C/C++ code to Java

    Hey, I was out last days and now I come back to this Code, and I have problems, I use prints to control:


    package messagedecoding;

    import java.io.IOException;

    public class Main {

    ...
  2. Replies
    13
    Views
    3,106

    Re: Convert C/C++ code to Java

    Method Bit() gets an input of 0/1 and,i.e. 10101000, the first call to Bit () will return 1, the 2nd call to Bit() will return 0, the 3rd call to Bit() will return 1, each time that use method Bit()...
  3. Replies
    13
    Views
    3,106

    Re: Convert C/C++ code to Java

    Oh yes!, you are right, sry all the questions,Im new in Java and don't remember all functions, so the class Main now is


    package messagedecoding;

    import java.util.Scanner;
    import...
  4. Replies
    13
    Views
    3,106

    Re: Convert C/C++ code to Java

    Thanks!, I didn't know about Scanner, I have a question, I want use char by char of the read line ,i.e.



    ...while(header[i]!='\n'){
    while(code1.Code(code1.Len())!=u){
    ...
  5. Replies
    13
    Views
    3,106

    Convert C/C++ code to Java

    Hi guys, I have to convert C/C++ code to Java, I did something:

    *C CODE:



    #include <stdio.h>

    int Bit() {
    char c;
Results 1 to 5 of 5