Originally Posted by
taconator
I need some help. I have to translate a c app into java. Which would be no problem if I knew c. Is there a good uber begginers level tutorial somewhere, that i might be able to figure out what this c code is doing? I mean, i am seeing things like "struct" which I have no idea what that is and pointers which java doesnt use. Anyone have an idea of where i should look.
I think you'll have a big problem there. Most probably you will be able to make the same program done in C, but in Java. The problem is that it won't be like "translating" english to spanish. Firs of all, C is an imperative language, while Java is an object oriented one. Like you've said, you dont have pointers in java, and thats only one of the "heavy" differences if you've never used them. For instance, in C you don't have objects ( you can try to simulate this concept using ADT's, but thats another subject ), you dont have classes, inheritance or polymorfism and another bunch of difs. So, as you can see, its a very different languaje, from several points of view. I don't know how complex its the code you have to "translate" but you could start by researching a bit about C using your best friend Google. Then you can ask whatever you don't understand about it and if you still cant figure what the purpose of that code is, you can send it to me and I'll try to do my best to help you. Good Luck!
PS: I skipped the explanation about structs because you need to know some previous stuff before getting there. Look for tutorials!! You'll find a lot!
"And often enough, our faith beforehand in a certain result is the only thing that makes the result come true." ( William James )