Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   c++ converter (http://www.go4expert.com/forums/cpp-converter-t10967/)

unmounted 31May2008 22:23

c++ converter
 
Hello,

I want to change the Java code into C++. I have tried it but its not that easy for me as a Java newbie.
Pls. help me out. Thanks!
I am sorry for posting in the wrong Forum.
Code:

public class Ringing {
 
  private Nextdoor door;
 
  public Ringing(Nextdoor door) {
    this.door = door;
  }
 
  public void findout(Bite bite) {
    System.out.println("  Ringing: " +
      bite.getMusic() + " hearing");
    List leftBite = door.getLeftBite();
    for (Iterator i = leftBite.iterator(); i.hasNext(); ) {
      Bite allowedBite = (Bite)i.next();
      if (allowedBite.equals(bite)) {
        door.opened();
        return;
      }
    }
    System.out.println("You are not allowed inside.");
  }
}



All times are GMT +5.5. The time now is 02:22.