User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 456,477 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,804 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting

translate c into java

Join Date: Jun 2007
Posts: 26
Reputation: sj87 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
sj87 sj87 is offline Offline
Light Poster

Re: translate c into java

  #2  
Aug 30th, 2007
Originally Posted by taconator View Post
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 )
Reply With Quote  
All times are GMT -4. The time now is 2:39 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC