C++/VB - do C++ the Java way

Asked By Carmen Sei
08-Mar-08 01:34 AM
I need to write a C++ application prototype that uses a graphics
engine in 2 weeks.

http://openframeworks.cc/about

I know Java pretty well, but I don't know C++.

Can i write the C++ prototype using only Java equivalent features?

I only use Class objects, static variable, single inheritance
(extends), new+free()/delete(), #define

C++ features that I don't use - no struct, no enum, no extern, no
non-OO, no multiple inheritance,  no template ... etc

I think if I do that way, I will be able to finish my C++ prototype
quickly, all I need to do is translate the Java program (.java) file
into .cpp and .h file.

Is it a good idea for a person need to finish a C++ app (about 8 - 10
cpp files) in 2 weeks and don' t know C++?

the app need to call some Class / Library from the graphics framework
above and do some internet XML parsing and render data into cool
graphics ... etc.
Java
(1)
Inheritance
(1)
Prototype
(1)
Sematics
(1)
Graphics
(1)
Extends
(1)
Struct
(1)
Extern
(1)
  Bo Persson replied...
08-Mar-08 03:55 AM
There is a problem here that some features that look "equivalent",
might not really be that. Even if the syntax is similar, the sematics
can be different.


A guess is that it might take considerately longer than 2 weeks before
it actually works. What about hiring someone that already knows C++?

Bo Persson
  Alex Blekhman replied...
08-Mar-08 04:17 AM
You can accomplish that if you're quick learner and not afraid to
try things. However, the code will be of such low quality and with
so many beginner's mistakes that it will be hardly usable for
anything other than prototype illustration. So you better ditch it
right away after the demonstration.

Alex
Create New Account
help
Who gets higher salary a Java Programmer or a C++ Programmer? C++ / VB I have little experience in both Java and C++. I have designed a few programs in both languages. I get a lot confused as many times I use Java code in C++ and C++ code in Java. So I have descided to only work in one Language. Both C++ and Java has their importance. What language should I master. I just want to know who gets higher salary a Java Programmer or a C++ Programmer? Because Learning both creates confusions So I have to Choose the best among them. Whose future is better a Java Programmer or a C++ Programmer? What else should I learn for a good Career. Should Expert. and How much max salary per Annum I can get If I become a Java Expert. Experts in fields, Please Advice. Bye Sanny. VC Language Discussions Pine.LNX.4.64
known by older programmers but not by the younger who are being taught C# and java instead. What I have started to see is that a project gets started that a about ] [ comp.lang.c++.moderated. First time posters: Do this! ] Depends on the universities. C + Java is indeed a more popular choice in universities these days. Which is understandable, since they are much simpler. But then if you know C and you know Java, you know a bit of C++ (even if the C way and the Java way are the two worst ways to code in C++). Talented young C++ programmers have languages. Tool support of that kind is harder to achieve in C++ than in, say, Java or C# because the language is harder to parse, but if tool support for C luxury of choosing the language I am working with, I'd also choose C# or Java over C++. C++ simply is not human-friendly (it is bearable when TMP is not involved). [An anecdote: I was making a toy project in Java using Eclipse, just to get a taste of the technology. At first I was amazed not be hot-swapped because its signature (methods added / removed) changed. In short, technology behind Java and C# is light-years ahead of that for C++. The only thing that C
embedded stuff, but also when I look at desktop OSes I cannot see C# (or Java, or Python) replacing it. Also it may actually gain some strength due to more mobile e.g. C++ well, you will be able to pick up e.g. C# (or Java) quickly. Don't forget: language = 1% (or, 10%, top), libraries, programming approaches and methodologies, tools profitable not to know just the same languages as everybody else. Being very popular (C#, Java) also means that there is more people competing for the jobs. If you have your what they know). But further out from the quant libs people are using other languages. Java is probably the most popular but erlang is very up and coming. Regards, Andrew Marlow Pascal became the language of choice for introducing students to programming, and then C++. Now JAVA and JAVAScript are being utilized. My point being is that programing logic does not change to match the way they solve problems in a language such as C, C++ or Java. But that is exactly why getting some mastery of Lisp (Prolog, Forth, Haskell etc) is that helpful when you come to learn Forth or Lisp though it might make learning Java or C# rather easier. C++ is an exceptionally large language that allows you to express untruth that is told by every person who compares without qualification C++ to languages like Java / C# / Python : Programmers who rightly call themselves proficient in C++, generally speaking, are more competent
http: / / preciseinfo.org Code examples and expert discussions on C++, MFC, VC, ATL, STL, templates, Java, Python, Javascript Anyone can file Firefox bugs. You just have to create an account on of thousands of code examples and expert discussions on C++, MFC, VC, ATL, STL, templates, Java, Python, Javascript, organized by major topics of language, tools, methods, techniques. If you can easily of thousands of code examples and expert discussions on C++, MFC, VC, ATL, STL, templates, Java, Python, Javascript, organized by major topics of language, tools, methods, techniques. Well, I tried to of thousands of code examples and expert discussions on C++, MFC, VC, ATL, STL, templates, Java, Python, Javascript, organized by major topics of language, tools, methods, techniques. If you run the am forced to stay with win for now is very poor performance of the JVM (Java Virtual Machine), which translates in my case in doubling the time of processing some big of thousands of code examples and expert discussions on C++, MFC, VC, ATL, STL, templates, Java, Python, Javascript, organized by major topics of language, tools, methods, techniques. I am glad that hard that even mouse and keyboard stop. The likely issues are (1) RAM problem, (2) graphics driver problem, or (3) USB controller problem (if you have USB mouse). - - Tim Roberts, timr problem. I did flash the bios with the latest version. I did install the latest graphics drivers as far as I recall. The bottom line. After I disabled all the addons
Strongly checked exceptions: what we can learn from java experiences C++ / VB Just came across an interesting article in the java lobby: http: / / java.dzone.com / articles / tragedy-checked-exceptions This is not the only article that basically says "java tried to implement checked exceptions but the experiment failed". I think this should tell us linker, and it break backwards binary compatibility, so meh. The foil of checked exceptions ala Java is that every single little minor function must specify which exceptions it can throw. No posters: Do this! ] That is much harder than it sounds. It can be done in java because of the JVM but all sorts of other factors come into play with C certain operations safely that are difficult to do in an exception safe manner. The way Java did it, forcing the immediate caller to catch the exception effectively makes the exception a resources / clcm.htm for info about ] [ comp.lang.c++.moderated. First time posters: Do this! ] Java's checked exception had a good intention. Unfortunately it was slightly misdesigned hence placed such