#1
|
|||
|
|||
![]() I been trying to motivate users to get involve in getting them self on solutions, instead of just asking for help. For example I started Encryption Learning at https://www.sat-universe.com/showthread.php?t=318003
At one point or another we will need to create programs. Now there are many languages. But I will focus in C. C is the basic language. It is been use everywhere. In fact Unix, Linux, Windows and Mac OS where initially develop in C. Not to forget the routers and Receives you used. In the future you may like to do Cuda or OpenCl they too use a basic form of C. In general you use a PC and requires you to use a Text editor to write your programming. Then you need a Compiler. This compiler transform your human readable code in to an executable file. Well all tools and resources needed are combine in a development tool called IDE. Just as programs there many IDE. I strongly recommend one that can be use under any OS. The one I use is FREE and is called Codeblocks. To install on any Debian OS is as simple as Code:
sudo apt update sudo apt install codeblocks Compiling Your First C++ Program in CodeBlocks (Linux) Code:
https://www.youtube.com/watch?v=Envlo4iH9sU How to Install CodeBlocks ( IDE 20.03 ) with MinGW for C and C++ Programming on Windows 10 Code:
https://www.youtube.com/watch?v=GWJqsmitR2I Now C Programing Youtube have many channels. One I like and used to watch was mybringback Code:
https://www.youtube.com/c/mybringback Code:
https://www.youtube.com/watch?v=QI7NZxZ4VsE&list=PL1D2BCBAABE5ED1A4&index=1 Hope it helps. |
The Following User Says Thank You to cayoenrique For This Useful Post: | ||
Me2019H (27-12-2021) |
#2
|
|||
|
|||
![]() As I am to start my first programming lab I found that I mos to the first lesson any way with hellow word.
Code:
#: mkdir -p $HOME/cryptodir/Labs/006 #: cd $HOME/cryptodir/Labs/006 sudo apt update sudo apt install codeblocks Once up we click on [Create a new project] and in new windows select [Console Application]. Next Window click on C. Please notice not C++. And hit [Next]. Next Window type in Project title: csa_core In folder use [***] to browse your working folder, mine is /enrique/cryptodir/Labs/006/ As you may notice the other 2 inputs are filed automatic with the info you just enter previously. So Hit [Next]. In this new window you do not need to do anything just leave compiler as GNU GCC Compiler. As this is 1rst time lets to some arrangement. Hit Maximize so that codeblocks use whole screen. Now go and select Menu>View>Toolbars>Optimize toolbars Finally lets add a check mark in Menu>View>Logs Your screen should look like this: ![]() Lets do a quick description. AT the top as most GUI programs we have the Menu and the Toolbar with short cuts. Below on the left is the Management. At th moment it has 2 tabs. Projects and Resources. Leave it in Projects as it shows your files. You should see Workspace>csa_core>sources. In the right up we have the editor, below it the Log window. Now every time you create a project codeblocks will add a main.c with Hellow word sample project. Just basic skeleton to get you started. Lest edit it. In the left the file structure have small black triangle. The top one point down meaning the are maximized. But Source is pointing Right. Lets click on the Sources black triangle. It will point down and maximize reveling main.c Now Double Click on main.c and you should see in the right its content. It should look like ![]() Now lets build and execute it. Click on Menu>Build>Run. It will ask us if we what to build it 1rst. Click on [YES] The program will build, you can see now that Log windows is in TAB Build Log and you should see Code:
Output file is bin/Debug/csa_core with size 18.63 KB Process terminated with status 0 (0 minute(s), 0 second(s)) 0 error(s), 0 warning(s) (0 minute(s), 0 second(s)) But to allow you to read its output the program at the end waits for you to hit [Enter]. Hit Enter and the windows closes. This is how it looks ![]() To & quit you just do Menu>File>Save Workspace Menu>File>Quit. If you do just Quit it should as you if you want to save any unsaved file. |
The Following 2 Users Say Thank You to cayoenrique For This Useful Post: | ||
dijitalxyz (04-08-2021), Me2019H (27-12-2021) |
#3
|
|||
|
|||
![]() I been ask to offer a Codeblock Windows 10 installation alternative. I know this is Linux Area. But what I will present is so small that I know no one will complaying. In this way All IDE info is on only one place. As I said, I am sure no one will complain if you ask one small question. Nut If you think you really need help please then open a new thread in
Sat Universe > Off Topic > PC Section > Chat > Windows Chat https://www.sat-universe.com/forumdisplay.php?f=142 CodeBlocks IDE Installation on Windows 11 [2021 Update] MinGW GCC Compiler for C & C++ Programming ![]() Link for download Code:
https://www.codeblocks.org/downloads/ Code:
https://www.geeksforgeeks.org/how-to-install-code-blocks-for-c-on-windows/ |
![]() |
Thread Tools | |
Display Modes | |
|
|