FTLinuxCourse - Tin tổng hợp mới nhất không thể bỏ lỡ
  • Home
  • Lập Trình Linux
  • Công Nghệ
  • Máy Tính
No Result
View All Result
  • Home
  • Lập Trình Linux
  • Công Nghệ
  • Máy Tính
No Result
View All Result
FTLinuxCourse - Tin tổng hợp mới nhất không thể bỏ lỡ
No Result
View All Result

C Programming Tutorial 2 – Installing GCC

admin by admin
April 29, 2020
in Lập Trình Linux
34
C Programming Tutorial 2 – Installing GCC



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.

vim hello.c

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.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Support me!

Subscribe to my newsletter:

Donate!:

~~~~~~~~~~~~~~~Additional Links~~~~~~~~~~~~~~~

More content:
Facebook:
Google+:
Twitter:

Amazing Web Hosting – (The best web hosting for a cheap price!)

Nguồn: https://ftlinuxcourse.com

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
Tags: Youtube
Previous Post

XMI X-Mini MAX Duo Stereo Capsule Speaker Review - By TotallydubbedHD

Next Post

Cách nghe nhạc trên YouTube khi tắt màn hình iPhone, iPad IOS 13

Next Post
Cách nghe nhạc trên YouTube khi tắt màn hình iPhone, iPad IOS 13

Cách nghe nhạc trên YouTube khi tắt màn hình iPhone, iPad IOS 13

Comments 34

  1. Caleb Curry says:
    3 years ago

    Learn Javascript – http://bit.ly/JavaScriptPlaylist
    Learn Java – http://bit.ly/JavaPlaylist
    Learn C# – http://bit.ly/CSharpTutorialsPlaylist
    Learn C++ – http://bit.ly/CPlusPlusPlaylist
    Learn C – http://bit.ly/CTutorialsPlaylist

    Reply
  2. Linden_DavidJ says:
    3 years ago

    does virtual box harm my computer

    Reply
  3. Stuart Brown says:
    3 years ago

    Use a mac to code it will make it easier… facepalm

    Reply
  4. MosesChuka says:
    3 years ago

    just watched a few of your vids and am already in love with code.

    Reply
  5. Idubbz I’m fake says:
    3 years ago

    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..

    Reply
  6. Jon Bain says:
    3 years ago

    people learning to code do not need an explanation of what an operating system is SFB

    Reply
  7. Roshan Tamang says:
    3 years ago

    Just leaving a like and a comment to show that I have watched the particular video. You're awesome teacher _ ./. _

    Reply
  8. Clent Davy Leonen says:
    3 years ago

    Heavy breaths though

    Reply
  9. Toyo Ekpenyong says:
    3 years ago

    My complila is dev😭

    Reply
  10. omid mohamadi says:
    3 years ago

    you-are-great

    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.

    Reply
  11. Aemi Rose says:
    3 years ago

    Woo Ubuntu!!!

    Reply
  12. Patrick Oliver Bustamante says:
    3 years ago

    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

    Reply
  13. tangerine11 says:
    3 years ago

    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

    Reply
  14. Trez Spre says:
    3 years ago

    alright alright, time to reboot my pc, to the linux hard drive…

    Reply
  15. Shadon_official says:
    3 years ago

    Thank you in advance.

    Reply
  16. favikeey Tutorials says:
    3 years ago

    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 👨‍🏫

    Reply
  17. Nick Djerfi says:
    3 years ago

    Can I use visual studio

    Reply
  18. BasedWorldsk8 says:
    3 years ago

    If you're on windows don't install virtual box; just use windows subsystem for Linux.

    Reply
  19. keiichiiownsu12 says:
    3 years ago

    Honestly, just dual boot.

    I use arch btw

    Reply
  20. Kainan Sugal says:
    3 years ago

    I call you the best teacher on the entire Internet💕💕
    Disclaimer: I am not a guy

    Reply
  21. TimelessTrance says:
    3 years ago

    Why would you quit vim?

    Reply
  22. TimelessTrance says:
    3 years ago

    Vi vi vi

    Reply
  23. TheKAnimeOP says:
    3 years ago

    But….

    Im using a Microsoft pc

    Reply
  24. Virtual Crickets says:
    3 years ago

    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! 😉

    Reply
  25. Christian Paul Abas says:
    3 years ago

    I just subscribed this channel… I think its very useful

    Reply
  26. Ahmed Tawane says:
    3 years ago

    which app do you use to run the above tutorial? code blocks or…?

    Reply
  27. Ethan Ungar says:
    3 years ago

    gcc givs me an error

    Reply
  28. Loseinment says:
    3 years ago

    go where you fucker ,expalin it fucking seriously , not like a a faggin

    Reply
  29. Ariz Rai says:
    3 years ago

    His "Hehs" are creepy. 😬

    Reply
  30. PHOTON says:
    3 years ago

    i thought u could just go to any text editor and start coding….i gotta download a virtual system, another operating system, and setup gcc….why could it not be like javascript.

    Reply
  31. Night Ranger says:
    3 years ago

    They are using Mac everywhere and every time I watch how to learn coding.

    Reply
  32. Tuck says:
    3 years ago

    "or windows 8!…. hehe…"

    Reply
  33. Terry Dearing says:
    3 years ago

    What systems do I Pads use?

    Reply
  34. Jeremy Henson says:
    3 years ago

    You’re an awesome teacher, thanks for these!

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Xem Thêm

Những điều bạn có thể chưa biết về Thánh sim Hi Vietnamobile

Những điều bạn có thể chưa biết về Thánh sim Hi Vietnamobile

January 17, 2021
Xiaomi Mi 10 Pro thiết kế thời thương, màn hình cong ấn tượng

Xiaomi Mi 10 Pro thiết kế thời thương, màn hình cong ấn tượng

June 1, 2021
Địa chỉ in bao bì nhựa tại Đà Nẵng chiết khấu cao

Địa chỉ in bao bì nhựa tại Đà Nẵng chiết khấu cao

January 26, 2021
Địa chỉ bán đèn tuýp LED Philips uy tín và chất lượng trên thị trường?

Bán đèn tuýp led Philips – Skyled

July 27, 2020
Lựa chọn chủ đề in áo thun phù hợp

Lựa chọn dịch vụ in áo thun cotton cần lưu ý gì?

August 2, 2020
Cần xác định được điểm đặt pallet cao nhất để mua xe

Bí quyết chọn mua xe nâng điện đẩy tay

August 3, 2020

Về Chúng Tôi

Báo ftlinuxcourse.com 24h – Đón xem những tin tức mới nhất về tình hình chính trị, xã hội, an ninh trật tự, văn hóa – giải trí, thể thao, thông tin trong ngày.

  • Liên Hệ
  • Chính Sách Bảo Mật

© 2023 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Lập Trình Linux
  • Công Nghệ
  • Máy Tính

© 2023 JNews - Premium WordPress news & magazine theme by Jegtheme.