In my school, they only teach on Tubro C++. I can program well in the DosBox but I want to develop my own applications, algorithms, etc. The problem is that I don’t know where to start. The spectrum is so broad, I don’t know what gcc or g++ are other than the fact that they are compilers.
I don’t know how to use VS Code (mac) to compile & run. I don’t know anything about the modern C++.
Where should I start?
I wanna do Machine Learning related stuff and GUI.
I actually have a browser based application in mind where I’d be needing Artificial Intelligence, cool GUI, etc.
3
Answers
Since TurboC++ was just a compiler, maybe you’d be happiest just moving into a full blown IDE(Integrated Development Environment)!
For Mac, I might recommend Eclipse. It’s a very popular IDE and can be used for C++.
However, you’ll need a compiler. GCC is a good compiler for Mac, but as far as I know you need Apple’s “XCode” IDE to install GCC in the first place. So if you were to go through all of that effort you may just want to stick with XCode.
You’d need an Apple Developer login, but here’s a tutorial on getting GCC up and running.
https://www.mkyong.com/mac/how-to-install-gcc-compiler-on-mac-os-x/
Of course, nothing is keeping you from sleeping around with some new languages, but if you want to stick to C++ I’d say get your compiler, find an IDE you like and get to learning.
That is a very good question. I think these steps would be the easiest for you –
ls
,cd
,pwd
. You can find lots of content for this easily.vim
text editor.HelloWorld
program on C++ using vim, you should learn how to use the g++ command to compile and run your code.These were my initial steps in the world of programming. I would also recommend you create an account on Github and browse other open source community projects, also learn
git
. Lastly explore also other domains and languages like web development, machine learning, python etc. Otherwise, if you are into competitive coding, C++ is indeed an excellent choice. For this, you can visit platforms like CodeChef, Hackerrank, SPOJ etc.For tutorials, you can find many sites like Udacity, Coursera, edX. MIT OCW is a popular resource on YouTube for formal courses like Algorithms and Data Structures.
PS. Do not waste your time learning everything about everything. Instead, you should keep on experimenting and look up on the web whenever some error or a bug pops up.
First of all you need to know How compiler works and the program structure.
I recomend you an excelent course called “Programming Paradigms“, from Stanford University. You can find it in ITunes University and it is free.