• C++ or Java?
    61 replies, posted
Yeah, um, also, how would I go about replacing the compiler with something else? I think I heard in this thread that Microsoft's isn't too great.
[QUOTE=Zally13;23969919]Yeah, um, also, how would I go about replacing the compiler with something else? I think I heard in this thread that Microsoft's isn't too great.[/QUOTE] I think Code::Blocks uses GCC by default.
Oh, okay. What are the advantages to it? (Just curious)
It's free/open-source, cross-platform/architecture, and better complies with standards.
This is going to sound retarded, but I just made a new project in Code::Blocks and I'm not sure where to type on it. All I see is a big gray box in the center where I think I should be typing.
I have never tried NetBeans for C++, but I have been using NetBeans for PHP for months now and I must say it is fantastic. I will give it a try in the near future and let you know how it is.
Thanks, but I need my question solved if I can get work done. :frown:
I used to use Dev-C++, however, since it's so old and hasn't been updated anymore, weird shit happens, like my antivirus detecting compiled files as trojans, when it's just a Hello World (of course that could really be down to my AV), so I changed to Code::Blocks and it's pretty good. [editline]12:10AM[/editline] Actually I was also wondering, where do I go after I've learnt enough basic C++. Of course I'm going to keep on doing things in C++, but I want to know what the next step is if I want to just make little games with actual graphics.
[QUOTE=Zally13;23972280]Thanks, but I need my question solved if I can get work done. :frown:[/QUOTE] Get Visual C++ 2010 Express. Problem solved.
[QUOTE=efeX;23972884]Get Visual C++ 2010 Express. Problem solved.[/QUOTE] yes but if your going for multi-platforms your better off not being bound to microsoft
[QUOTE=Richy19;23973099]yes but if your going for multi-platforms your better off not being bound to microsoft[/QUOTE] It is possible to write cross-platform code with MSVC.
[QUOTE=Zally13;23970357]This is going to sound retarded, but I just made a new project in Code::Blocks and I'm not sure where to type on it. All I see is a big gray box in the center where I think I should be typing.[/QUOTE] Did you create a source file?
Source file? I would assume that meant I didn't.
[QUOTE=Zally13;23973999]Source file? I would assume that meant I didn't.[/QUOTE] File -> New -> Empty File Prompt "Do you want to add this new file to the active project?" answer yes. Enter the file name, add to both debug and release build profiles, start coding.
[QUOTE=Richy19;23973099]yes but if your going for multi-platforms your better off not being bound to microsoft[/QUOTE] Wrong. Besides the OP is just starting, I doubt that's an issue.
[QUOTE=ROBO_DONUT;23974946]File -> New -> Empty File Prompt "Do you want to add this new file to the active project?" answer yes. Enter the file name, add to both debug and release build profiles, start coding.[/QUOTE] Thank you, that's exactly what I needed. [editline]08:00AM[/editline] How do I compile in Code::Blocks?
[QUOTE=Zally13;23945461]What exactly are the advantages over Visual C++?[/QUOTE] IntelliSense :smug:
[QUOTE=Zally13;23985546]Thank you, that's exactly what I needed. [editline]08:00AM[/editline] How do I compile in Code::Blocks?[/QUOTE] One of the function-keys I suspect. There should be "Build" or something on the menu- or tool-bar.
[QUOTE=DeanWinchester;23986141]IntelliSense :smug:[/QUOTE] Intellisense isn't really all that useful.
[QUOTE=esalaka;23986644]Intellisense isn't really all that useful.[/QUOTE] Saves some typing, and I really like to use this-> when using stuff that belongs to the class :v:
[QUOTE=esalaka;23986644]Intellisense isn't really all that useful.[/QUOTE] Sure it is. Maybe not for speeding up typing since that might be considered bad but it's awesome for learning new APIs.
[QUOTE=Darwin226;23986785]it's awesome for learning new APIs.[/QUOTE] Documentation :saddowns:
[editline]13:37[/editline]c++ is more useful imo
[QUOTE=ZeekyHBomb;23986845]Documentation :saddowns:[/QUOTE] Well it obviously way more practical when you for example know a part of a method name (OpenGL for example) so you simply start typing and get the function with no delay, as opposed to knowing a part of the name and having to look it up in the documentation.
The problem with using intellisense instead of reading documentation is that (AFAIK) it blindly parses function prototypes from headers. This is bad because it provides you with no information about whether a function is actually part of the stable API and if it has been deprecated. The documentation should always be your primary source of information.
[QUOTE=Darwin226;23986946]Well it obviously way more practical when you for example know a part of a method name (OpenGL for example) so you simply start typing and get the function with no delay, as opposed to knowing a part of the name and having to look it up in the documentation.[/QUOTE] But what's the chances you know how to use a OGL function if you don't know its name? :smile:
Pretty big I would say.
[QUOTE=Darwin226;23992567]Pretty big I would say.[/QUOTE] Well, maybe if you're having a problem similar to mine... (Was constantly mistyping a certain function :D)
[QUOTE=Richy19;23973099]yes but if your going for multi-platforms your better off not being bound to microsoft[/QUOTE] Right. To the topic again: I'd go for Java first since you said you want to learn programming. Java is quite easy to understand for beginners. You (nearly) don't have to worry about data-sizes or type-sizes and you don't need to worry about cleaning up the memory. Anyway, once you got used to Java, the OOP usage and generics, you will find it easy to code c++ after a few days and you'll learn C++'s specialities.
If i had to choose i would go for C++ even though i hear alot about it being not all that easy to learn. Java just dosnt seem as cool as C++ heh.
Sorry, you need to Log In to post a reply to this thread.