In order to get started programming with C, we need to have an operating system to work on.
Now, in order to be on the same page, I highly recommend being on a UNIX or Linux operating system. An operating system is a big piece of software that is always running on your computer. It’s what allows you to open apps, type, print, and use anything on your computer.
Mac is an example of a UNIX operating system. Windows on the other hand, is not. If you are in Microsoft Windows, you can actually get a copy of a Linux operating system to install absolutely free. Here is a video I made on how to install Linux as a virtual machine:
Now, don’t get me wrong, if you want to use windows, that’s fine. You can use windows, but it is a bit more work to get everything set up and not everything is the same as will be in these tutorials. Personally, I think it is helpful to familiarize yourself with Linux.
Open the terminal. We are going to try to get comfortable using the terminal. That’s because it is very universal. Every UNIX operating system will use the same commands. Another reason is that you’re not always going to be able to do everything visually. For example, if you access a computer remotely or if you are writing scripts.
Now, the very first thing we need to install is a compiler. The compiler we are going to be using is called GCC.
To do this all we have to do is type gcc in the terminal. Mac is going to prompt us if we would like to install Developer Tools. Select Install. This is going to install GCC. GCC is the tool that will take our C code and compile that down to the appropriate machine code that can then be ran by the computer.
Now, another tool we are going to use is called VIM. This is a text editor that we are going to familiarize ourselves with. You guys are more than welcome to use another text editor, but once again the benefits of VIM is that you are going to be able to find it everywhere.
To use VIM, type vim followed by a file that you want to create.
Now, VIM is going to seem a bit strange at first and honestly it might cause some frustration, so take it easy. The first thing that is probably going to drive you crazy is “how the crap do you close this program?” The trick to closing the program is to type :q.
Now we have all of the tools we are going to need to get started working with C. That was simple! In the next video we are going to be writing our first program.
Subscribe to my newsletter:
Amazing Web Hosting – (The best web hosting for a cheap price!)
Xem thêm bài viết khác: https://ftlinuxcourse.com/lap-trinh-linux
Xem thêm Bài Viết:
- Trải nghiệm mới hay ho với hướng dẫn cài Mac Os trên vmware
- Bật mí cách cài đặt ssl miễn phí lên Let’s Encrypt
- Tuyệt chiêu tạo usb boot kali linux đơn giản dành cho bạn
- Hướng dẫn chi tiết từ A – Z các bước cài đặt Python trên Windows 10
- Bật mí quy trình cài đặt Kali Linux trên Vmware đúng chuẩn và chi tiết
Learn Java – http://bit.ly/JavaPlaylist
Learn C# – http://bit.ly/CSharpTutorialsPlaylist
Learn C++ – http://bit.ly/CPlusPlusPlaylist
Learn C – http://bit.ly/CTutorialsPlaylist
does virtual box harm my computer
Use a mac to code it will make it easier… facepalm
just watched a few of your vids and am already in love with code.
if you are doing this on a linux/unix environment and dont have gcc go ahead and type sudo apt-get install gcc than when it prompts you to type y or n type y than hit enter and it should install..
people learning to code do not need an explanation of what an operating system is SFB
Just leaving a like and a comment to show that I have watched the particular video. You're awesome teacher _ ./. _
Heavy breaths though
My complila is dev😭
hey Caleb my name is Omid, i'm from Iran i love and one more thing my English is not good but i undrestand what are you say.
are you sure windows are not user friendly to c? Just open Dev C++ then click compile plus it have some fancy UI thats user friendly enough especially for beginners
Perfect! Computer science minor student, I haven't coded in 2 years and this is just what I needed to help me get back in the loop
alright alright, time to reboot my pc, to the linux hard drive…
Thank you in advance.
Hi Caleb am finding it had to go back from vim the :q. is not working is showing e488: trailling characters and then recording I really want to learn this 😭😭 I believe you’re a great teacher 👨🏫
Can I use visual studio
If you're on windows don't install virtual box; just use windows subsystem for Linux.
Honestly, just dual boot.
I use arch btw
I call you the best teacher on the entire Internet💕💕
Disclaimer: I am not a guy
Why would you quit vim?
Vi vi vi
Im using a Microsoft pc
Lol, always funny to see that the 2nd video has like half of the views of the first one. Don't be the one to quit just because it gets tough sometimes!!
If you need something to tune out distractions, my channel has got you covered! 😉
I just subscribed this channel… I think its very useful
which app do you use to run the above tutorial? code blocks or…?
gcc givs me an error
go where you fucker ,expalin it fucking seriously , not like a a faggin
His "Hehs" are creepy. 😬
They are using Mac everywhere and every time I watch how to learn coding.
"or windows 8!…. hehe…"
What systems do I Pads use?
You’re an awesome teacher, thanks for these!