This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
New to C++, help me get started
I'm trying to start learning c++, because I'd like to write a simple graphical game (like Missile Command for example). I have had absolutely no luck finding a development environment that I can work with. I tried Qt, Visual C++ Studio Express, and Code::Blocks with no success, can't even get to the Hello World level with any of them. Qt was just way too complicated. Visual C++ is giving me "Cannot find or open the PDB file" and Code::Blocks says "couldn't create the project directory" even when I run them as administrator.
I know how to code, a little: I've done a lot of scripting work with AutoIt using the SciTE environment, and written a bunch of VBA code. I just want to get started learning C++ so I can start doing some real graphics gaming stuff. But it seems like it's impossible to get set up for even the most basic programming. What am I doing wrong?
Sorry if this doesn't belong on Stackoverflow, if I should take it elsewhere please tell me where.
If you're really serious about learning C++ I would recommend C++ Primer Plus by Stephen Prata (link) It is by far the best introduction to standard C++ I've seen but note that it will only go over STANDARD C++. No graphics or game programming.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I want to program in C ++ what program do I use and how to load it?
I'm new to programming and I want to know which program is used to program it. I expect this is the first step for every programmer
I you have lack of Bandwidth you can go with the Microsoft Visual Code.
this is very good alternative of lots of the editor.
for compiling your code use minGW C++ compiler
And a good tutorial reference.
You need a text editor (notepad or notepad++) and a compiler.
I use Visual Studio 2017 (an IDE which has all this plus more built-in).
If you are using windows then you can download code blocks or you can download Ubuntu terminal from Microsoft store.
If you are using Mac OS try with Xcode, it’s free and allows you to access a huge trough of tools. Personally C++ is an insane language to jump into immediately. To learn programming I suggest python until you grasp OOP, then move on into reading about what code actually is. Look into how hardware from cpu(registers and words) builds into psuedo software level like assembly, and eventually jump into the abstract principles. After this start simple with C, libraries and then move to C++. If you want to dive into C++ immediately then I suggest you look into memory management and pointer referencing, diff between stack and heap and ignore network level stuff until you have a good grasp on this. It is easier for you to have an end goal other than “ I want to learn to program”, especially for tailored advice.
Without a doubt use visual studio 2017 community
https://visualstudio.microsoft.com/downloads/
Check out this video tutorial for windows
https://youtu.be/1OsGXuNA5cc (highly recommend)
Choose file -> new project -> empty cpp project. Create a new .cpp file in the solution explorer on your right.
And use this code to get you going :
#include <iostream>
int main(){
std::cout << "hello , world !" << std::endl;
}
}
For windows i would suggest a Microsoft product like Visual Studio Code or Visual Studio Community. Both are very good. If u want to have a nice and smooth start, I would prefer Visual Studio Community.
In my opinion there are countless other options for windows. Like
Eclipse
OR
Netbeans
All of them have a very active community.
From a starters point of view, I would suggest a product from Microsoft... Even if most people here would crucify me for that answer^^ But it is simple and easy to start. As beginner you should not worry about setting things up. You want to start smoothly and fast, so you can concentrate on learning C++, which is a hard task anyway.
There is also a hard way... you can use a plain text editor. Here I would suggest Notepad++, which is the a kind of standard program. Then you have to get a compiler like Cygwin. If you have this working, you have to compile on console, which is not very starter friendly, so I would avoid that, if i were you.
For learning C++ I would suggest something like Tutorialspoint. The online course is free and very well structured and explained. With the knowledge from there, you can take of in any direction =)
To understand what lies behind all that fancy nicely readable code, you can read through this Tutorialspoint Assembly.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am beginning to learn C++ after ages of not programming in any language (last thing I did were a few lines in Python). I know a little bit about programming, object oriented programming, but all theoretical. Not in any particular programming language.
I am following a few books about the language itself but I don't know where to test a few lines of code.
What could be a convenient workplace to do this? I tried installing Visual Studio but it isn't straightforward for me to see how to (or where in it to) write/compile and run small pieces of code.
Perhaps there are simpler environments that are more convenient for just beginning learning the language.
What simpler working environments can I use?
Is Visual Studio a good choice for beginning (testing my first lines of code in C++) and I just should study more how it works?
The simplest environment I found for starting to develop in C or C++ is Code::Blocks:
www.codeblocks.org
Or, directly, the download link with everything you need:
http://prdownload.berlios.de/codeblocks/codeblocks-13.12mingw-setup.exe
In there, just do "new Project", select "Console application", then "C++", and it will creates an "Hello World" Project for you.
Although Visual Studio is very good, the huge numbers of features immediately available can be intimidating for the beginner.
I would prefer visual studio IDE any day. And you have it available with you. It could be learning initially but worth it.
If you have questions / doubts about it some one here will help you.
Maybe just drop into Coliru and play around in there. No installation or set-up required, and immediate feedback on your snippets.
Alternatively, if you're on IRC, head to Freenode and send snippets to geordi prime.
I started with Dev-C++. It is a IDE which makes it easier.
Even if you don't know hello world in c++ or C you can make a new project at the top left and click on Console Application. Dev-C++ has a C++ tutorial which makes it a lot easier.
But I also suggest Microsoft Visual Studio for Windows 7 and up.
Just use a simple editor like Notepad++ and hand compile your sources with the compiler (VC++ or MinGW). It'd give you a lot of exposure on understanding build scripts which you'd later require for doing something serious. As for the compiler, I'd recommend MinGW since it's (almost) complete in its support for C++11; use a pre-packaged binary setup like TDM GCC.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Is it possible to program iPhone in C++
I'm very familiar with C++ and Java. I know iOS doesn't support Java. But I really don't want to learn another new language Objective-C. So is it possible to develop iPhone/iPad apps all in C++ without writing any Objective-C code? Android development gives you NDK as an option for C++ developers. I don't know if Apple gives a similar C++ SDK completely in C++ only.
Look at the JUCE library.
https://www.juce.com/get-juce/
I build my apps using it, but then I'm mostly interested in audio. Even so, the library is very rich in features and mature. The licenses are reasonably priced too. I am useless with Objective-C, but am able to make highly functional apps purely in C++. Check out the forum on the website and navigate to the iOS section.
Also check out the JUCE tag on stackoverflow
https://stackoverflow.com/questions/tagged/juce
..it is a little quiet here, but the main juce forum is quite busy.
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
The Definitive C++ Book Guide and List
Learning C++ Language
Hello I am just starting to learn C++, does anyone have any suggestions for C++ learning resources, for example books and web sites. In addition, does anyone have any suggestions for IDEs?
Many years ago I used Bruce Eckel's books - they were not a 100% perfect but they explained things well. And probably the best thing about them now is they are available online for free. http://www.ibiblio.org/pub/docs/books/eckel/
Are you familiar with any other programming language (like C etc)?
if you are, you should straight away start to get your hands dirty. no use investing more time reading. You can learn more by doing. All you need is to search for "c++ hello world" in google, I do it whenever I want to code in any language.
Websites:
http://www.cplusplus.com/doc/tutorial/
http://www.learncpp.com/
IDE:
I am not sure if you need an IDE. Visual Studio is the only IDE I have seen being used for C++ in industry. Eclipse has plugins for all popular languages.
Since you are just learning the language (I am assuming you are using Windows), I would suggested DevCpp.
Other tools:
If Windows: notepad++
If Linux: gedit & g++
Pitfalls:
learning C++ or java doesnt automatically make you good at object oriented programming (OOP). So please try to learn OOP concepts and apply them in these languages.
Hi I did A Google search and couldn't find anything,
so I wanna learn Qt/C++ my University (I'm a first year CompSci Student) won't be teaching C++ next year which is a big disappointment
I already know Python
and dabbled in LaTeX, Javascript, C++
I'm currently helping out a free software project Clementine but it's programmed in Qt/C++ and I don't know enough of both to help out enough.
Is there any tips, Tutorial, howtos out there?
Don't learn both at the same time. Learn C++, then learn Qt. Grab a book about C++, then a book about Qt; there is no substitute for a good book.
Trying to learn C++ and Qt at the same time is like trying to learn the alphabet while reading Shakespeare.
I don't think it's an impossible thought learning both at the same time. Since you already know Python, try learning some basic Qt concepts by implementing something simple in PyQt or PySide. Learn C++ by writing simple console programs. Once you've mastered C++, try doing the same stuff with Qt using C++. It's a fact that you'll get a lot more help and code examples from people using C++, so you shouldn't just be satisfied with using Python to implement Qt programs.
From Qt's website: How to learn Qt and Qt tutorials.
Since you're familiar with programming already, the Best Practices might be of interest too.