Achri, on 10 March 2012 - 08:26 PM, said:
To change your C++ function over to Java, I would basically copy it all into your Java class, below your main method.
Then I would convert
into
I very quickly looked over the C++ function. So I would just see what other errors there are from that and fix them.
Then I would convert
string numberToBarcode(int num)
{ ... Do something }
into
public static String numberToBarcode(int num)
{...Do something}
I very quickly looked over the C++ function. So I would just see what other errors there are from that and fix them.
I dont think everything will work though because dont you use scanner for user input and not
cout << "Please enter a 5 digit zip code.\n"
<< " --> ";

New Topic/Question
Reply




MultiQuote



|