-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.md.bak
291 lines (148 loc) · 16.1 KB
/
README.md.bak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
# C Language
Styding C language
Hi, This is all about C. :raising_hand:
Why C?
Linux will likely be written in C forever! [Marty Fouts](https://www.quora.com/How-long-will-Linux-be-written-in-C) - (June 6/20 - OS designer with 40 years of experience)
Which programming language was the [Brazil's electronic voting machines box](https://en.wikipedia.org/wiki/Electronic_voting_in_Brazil) developed in? Apparently it was written in C according to the TSE: [Presentation of the source codes](http://www.tse.jus.br/eleicoes/urna-eletronica/seguranca-da-urna/apresentacao-dos-codigos-fonte). Another document confirms: https://ic.unicamp.br/~tomasz/misc/rel_final_site_TSE.pdf. (source from [pt.quora.com/](https://pt.quora.com/A-urna-eletr%C3%B4nica-foi-desenvolvida-em-qual-linguagem-de-programa%C3%A7%C3%A3o))
C and C++ are among the most powerful languages you can find. Those are quite fast and stable, and thus are a good choice for microcontrollers. The compiler used to transform code into object files is avr-g++. Then, a program called avrdude is used to upload the program into the Arduino microcontroller.
The C programming language is one of the most powerful and efficient programming languages in the world. If you’re interested in learning programming or building applications, learning C should be the first step you take. Most of the modern-day programming languages have been inspired by it to some degree. C was developed back in the 1970s by Dennis M. Ritchie for a UNIX system. It is based on languages like B, CPL and BCPL. Unlike its predecessors, C is capable of both high level programming as well as low-level programming. C also does not take up much computer resources, so it can be used by small applications as well as large programs (like operating systems). (from https://blog.udemy.com/)
During my Computer Engineering Degrees I will make this repo as I learn more and more each day...
I thought I'd document what worked for me.
This is just for hobbyist fun. I did not expect anything more at a price of less than a cup of coffee :coffee:.
```
The most important audience
for your code is yourself,
six month after writing it
(ie after you forgotten
everything but needs
to fix something)
```
I´m using [Visual C++ 2019](https://visualstudio.microsoft.com/vs/community/).
I will also use [Dev-C++ download | SourceForge.net](https://sourceforge.net/projects/orwelldevcpp/) This is an amazing IDE! Try it yourself!
**EDITED (nov, 2021)**: From know on I will use **vscode** and recommend you too: [Visual Code is Awesome!](https://code.visualstudio.com/)
The solution will be numereded and divided into important computer subject:
Be Welcome to my website, where I explore Arduino, PIC & Rpi - [Jungletronics & KidTronics](https://medium.com/@J.3).
I'm J3, The Arduino Hobbyist! and I will be your host :blush:
Welcome!!!
### [VS] (https://code.visualstudio.com/) Visual Code Solutions list (from 2021 until now):
#[00 - HELLOWORLD.C - 2021](/VS/00_helloworld.c) - This is part of this post: [00 Episode#CSeries VS Code How to Run It Right Away!](https://medium.com/jungletronics/vs-code-how-to-run-it-right-away-6fc9e569099a)
#[01 - GETINPUT.C - 2021](/VS/01_getinput.c) - How to input data in vs interface?: [00 Episode#CSeries VS Code How to Run It Right Away!](https://medium.com/jungletronics/vs-code-how-to-run-it-right-away-6fc9e569099a)
#[02 - FOPEN.C - 2021](/VS/02_fopen.c) - This demostrate the use of fopen in C.
#[03 - MUSICALBUM_V0 - 2021](/VS/03_musicalbum_v0.c) - This is a college work using DOUBLY LINKED LIST. It aims Project #10.
#[04 - SINGLY_LINKED_LIST.C - 2021](/VS/04_singly_linked_list.c) - Gives me base for the Project #10 - Author: https://github.com/borinvini/
#[05 - DEQUE_V1.C - 2021](/VS/05_deque_v1.c) - This is a deque (en) - It transform the Project 04 code in English.
#[06 - MUSICALBUM_V1.C - 2021](/VS/06_musicalbum_v1.c) - It is a Deque or Double Ended Queue. J3 MUSIC ALBUM! It aims Project #10.
#[07 - SSCAN_PARSING.C - 2021](/VS/07_sscan_parsing.c) - This shows how to parse a line. It aims Project #10.
#[08 - FILEREADINCHUNK.C - 2021](/VS/08_filereadinchunk.c) - It shows HOW TO SAVE INTO A FILE (FOPEN). It aims Project #10.
#[09 - FILEREADPLUSPARSING.C - 2021](/VS/09_filereadplusparsing.c) - It shows How To Parse a File. It aims Project #10.
#[10 - MUSICALBUM_V2.C - 2021](/VS/10_musicalbum_v2.c) - [01 Episode#CSeries — MUSIC ALBUM_V2.C — Deque - Exercise 1](https://medium.com/jungletronics/music-album-v2-c-b54b42ef55bc)
#[11 - HASHTABLE_V0.C - 2021](/VS/11_hash_00.c) - [02 Episode#CSeries — Hash tables in C — This is a HashTable in C](https://medium.com/jungletronics/hash-tables-in-c-5293c2bf6061)
#[12 - UNIVERSITYCATALOG_V1.C - 2021](/VS/12_UniversityCatalog_v1.c) - [03 Episode#CSeries — University Catalog V1 - Exercise 2](https://medium.com/jungletronics/university-catalog-v1-9db8cfc526a2)
#[13 - BUBBLESORASC_V0.C - 2021](/VS/13_bubblesortasc_v0.c) - [04 Episode#CSeries — BUBBLE SORT (Ascendant Algorithm)](https://medium.com/jungletronics/bubble-sort-ascendant-algorithm-5a3cf7b530f7)
#[14 - QUICKSORTASC_V0.C - 2021](/VS/15_quicksortasc_v0.c) - [05 Episode#CSeries — QUICKSORT (Ascendant Algorithm)](https://medium.com/jungletronics/quicksort-ascendant-algorithm-c4809da6d7a7)
#[15 - LINEARSEARCHALG_V0.C - 2021](/VS/17_linearserchalg_v0.c) - [06 Episode#CSeries — LINEAR SORT](https://medium.com/jungletronics/linear-sort-e3c80c985381)
#[16 - DOUBLYLINKEDLIST_V0.C - 2021](/VS/18_doublylinkedlist_v0.c) - [07 Episode#CSeries — DOUBLY LINKED LIST](https://medium.com/jungletronics/double-linked-list-aa23836e0f41)
#[19 - GRAPHBREATHFIRST_V0.C - 2021](/VS/19_graphbreadthfirst_v0.c) - Breadth first search - BFS algorithm is recursive searching algorithm.
### [Visual C++ 2019] (https://visualstudio.microsoft.com/downloads/) Solutions list (from 2020 until now): :notebook_with_decorative_cover:
#[Project0 - Visual C++ 2019](/VISUALC/source/repos/Project0) - 4 projs how to use if selection, loops while, do-while & for (WarmUp);
#[Project1 - Visual C++ 2019](/VISUALC/source/repos/Project1) - It is even or odd? If statement - simple Selection Statement.
#[Project2 - Visual C++ 2019](/VISUALC/source/repos/Project2) - Halting the system w/ while:)
#[Project3 - Visual C++ 2019](/VISUALC/source/repos/Project3) - Halting the system w/ do-while:)
#[Project4 - Visual C++ 2019](/VISUALC/source/repos/Project4) - Halting the system w/ for - run 5 times only
#[Project5 - Visual C++ 2019](/VISUALC/source/repos/Project5) - Using Vectors and scanning it w/ 1 for loop
#[Project6 - Visual C++ 2019](/VISUALC/source/repos/Project6) - Using Matrices - How to scan each element using 2 for loops
#[Project7 - Visual C++ 2019](/VISUALC/source/repos/Project7) - Using Function in C - a simple calculator - returning the bigger from 3 integers
#[Project8 - Visual C++ 2019](/VISUALC/source/repos/Project8) - Simple calculator v1 (addition & subtraction) - Demo for functions
#[Project 10 - Visual C++ 2019](/VISUALC/source/repos/Project10) - Project 10 - Visual C++ 2019 - Exercise 1 - Homework - Snack Bar
#[Project 11 - Visual C++ 2019](/VISUALC/source/repos/Project11) - Project 11 - Visual C++ 2019 - Exercise 2 - Homework - Pluviometric Controller
#[Project 12 - Visual C++ 2019](/VISUALC/source/repos/Project12) - Project 12 - Visual C++ 2019 - Exercise 3 - Homework - Frequency of Chars Matrix
#[Project 13 - Visual C++ 2019](/VISUALC/source/repos/Project13) - Project 13 - Visual C++ 2019 - Exercise 1 2021 - Homework - Struct Typedef
#[Project 14 - Visual C++ 2019](/VISUALC/source/repos/Project14) - Project 14 - Visual C++ 2019 - Exercise 2 2021 - Homework - Struct String Concat
#[Project 15 - Visual C++ 2019](/VISUALC/source/repos/Project15) - Project 15 - Visual C++ 2019 - Exercise 3 2021 - Homework - Struct Typedef Ceil()
#[Project 16 - Visual C++ 2019](/VISUALC/source/repos/Project16) - Project 16 - Visual C++ 2019 - Exercise 4 2021 - Homework - Arrays Max & Min
#[Project 17 - Visual C++ 2019](/VISUALC/source/repos/Project17) - Project 17 - Visual C++ 2019 - Exercise 5 2021 - Homework - Strutcs & File CSV
### [Dev-C++5.11] (https://sourceforge.net/projects/orwelldevcpp/) Projects Solutions list (from 2020 until now): :black_nib:
#[EX01 - DEVC](/DEVC/EX01) - Project 01 - Studying C Types (char, int, float & double)
#[EX02 - DEVC](/DEVC/EX02) - Project 02 - Simple use of modifiers: 'long' and 'short'
#[EX03 - DEVC](/DEVC/EX03) - Project 03 - A simple function 'add' declaration
#[EX04 - DEVC](/DEVC/EX04) - Project 04 - Multi-file programs - How to Use it!
#[EX05 - DEVC](/DEVC/EX05) - Project 05 - Multi-file programs Extented - How to Use it!
#[EX06 - DEVC](/DEVC/EX06) - Project 06 - Function call by reference in C
#[EX07 - DEVC](/DEVC/EX07) - Project 07 - Simple Assignment Oper (=) and Compound assignment opers (+=, -=, *=, /=, %=) in C
#[EX08 - DEVC](/DEVC/EX08) - Project 08 - How to use NULL in C
#[EX09 - DEVC](/DEVC/EX09) - Project 09 - Is C Little or Big Endian?
#[EX10 - DEVC](/DEVC/EX10) - Project 10 - #HowToConvertFromLittleToBigEndian
#[EX11 - DEVC](/DEVC/EX11) - Project 11 - Pointer - #HowToUse
#[EX12 - DEVC](/DEVC/EX12) - Project 12 - How to Compare 2 strings in C
#[EX13 - DEVC](/DEVC/EX13) - Project 13 - sprintf - The Use of
#[EX14 - DEVC](/DEVC/EX14) - Project 14 - sprintf - Another Use (convert integer & float to strings)
#[EX15 - DEVC](/DEVC/EX15) - Project 15 - Problem w/ Buffer overflow
#[EX16 - DEVC](/DEVC/EX16) - Project 16 - Struct - How to Create Struct in C
#[EX17 - DEVC](/DEVC/EX17) - Project 17 - 3 ways to declare a struct in C
#[EX18 - DEVC](/DEVC/EX18) - Project 18 - Chained Struct - How To Declared Nested Struct
#[EX19 - DEVC](/DEVC/EX19) - Project 19 - How to Align Structs
#[EX20 - DEVC](/DEVC/EX20) - Project 20 - How to Use ARROWS - More elegant solution to Point to an element of the struct
#[EX21 - DEVC](/DEVC/EX21) - Project 21 - How to make a union of two char as int? First Approach - Using Bitwise Operations
#[EX22 - DEVC](/DEVC/EX22) - Project 22 - How to make a union of two char as int? Second Approach - Using UNION \o/
#[EX23 - DEVC](/DEVC/EX23) - Project 23 - Demo For Escape Sequences In C
#[EX24 - DEVC](/DEVC/EX24) - Project 24 - The use of Type Names for Un/signed Integer Types (U, L, UL, LL, ULL)
#[EX25 - DEVC](/DEVC/EX25) - Project 25 - Controlling the Number of Decimal Places in the Output.
#[EX26 - DEVC](/DEVC/EX26) - Project 26 - How to declare floats - Calc Circumference and Area of a Circular Table
#[EX27 - DEVC](/DEVC/EX27) - Project 27 - How To Declare Floats & Doubles
#[EX28 - DEVC](/DEVC/EX28) - Project 28 - Finding The Limits: <limits.h>
#[EX29 - DEVC](/DEVC/EX29) - Project 29 - Format specifiers in C
#[EX30 - DEVC](/DEVC/EX30) - Project 30 - Enumeration, Math & Trigonometry Examples in C
#[EX31 - DEVC](/DEVC/EX31) - Project 31 - Computer Engineer Course Practical Activity 2020
#[EX33 - DEVC](/DEVC/EX33) - Project 33 - Using Switch Case Statements
#[EX34 - DEVC](/DEVC/EX34) - Project 34 - Demonstrate the use of function pointers
#[EX35 - DEVC](/DEVC/EX35) - Project 35 - Simple Calculator v1 - Nested if
#[EX36 - DEVC](/DEVC/EX36) - Project 36 - Simple Calculator v1 - Switch
#[EX38 - DEVC](/DEVC/EX38) - Project 38 - Simple Calculator v1 - Switch & While
#[EX39 - DEVC](/DEVC/EX39) - Project 39 - This program uses malloc - Project 38 improvement - Calculator v2
#[EX40 - DEVC](/DEVC/EX40) - Project 40 - Reading & Displaying Strings in C
#[EX41 - DEVC](/DEVC/EX41) - Project 41 - Presenting a Menu for Snack Bar
#[EX42 - DEVC](/DEVC/EX42) - Project 42 - Matrices Multiplication
#[EX43 - DEVC](/DEVC/EX43) - Project 43 - Matrices Multiplication - Accepting Floats
#[EX44 - DEVC](/DEVC/EX44) - Project 44 - Initializing 3 Matrices & Multiply it all
#[EX45 - DEVC](/DEVC/EX45) - Project 45 - Solution for J3 Snack Bar (solve Project 31:)
#[EX47 - DEVC](/DEVC/EX47) - Project 47 - How to add 2 Matrices
#[EX48 - DEVC](/DEVC/EX48) - Project 48 - Pluviometric Controller
#[EX49 - DEVC](/DEVC/EX49) - Project 49 - Doing Math With Letter :)
#[EX50 - DEVC](/DEVC/EX50) - Project 50 - Matrix manipulation in the extreme "/
#[EX51 - DEVC](/DEVC/EX51) - Project 51 - How To Declare a Matrix of Char (How to clear input buffer)
#[EX52 - DEVC](/DEVC/EX52) - Project 52 - 2D Matrix - Pointer use to save memory
#[EX54 - DEVC](/DEVC/EX54) - Project 54 - More advanced topics about Pointer & Array of Strings
#[EX55 - DEVC](/DEVC/EX55) - Project 55 - 3D Matrix - How to Access it with a Triple Loops
#[EX56 - DEVC](/DEVC/EX56) - Project 56 - String Copy, String Concat & Malloc in C
#[EX57 - DEVC](/DEVC/EX57) - Project 57 - Strtok - String Tokenizer - How to Use It in C!
#[EX58 - DEVC](/DEVC/EX58) - Project 58 - Finding the Frequency of Characters in a String
#[EX59 - DEVC](/DEVC/EX59) - Project 59 - Frequency of Characters in a Matrix of Strings (Ex. 3 - Academic Homework)
#[EX62 - DEVC](/DEVC/EX62) - Project 62 - Data Structure: struct in C - [Struct, Union, Bit Field & Enumeration in C - Intro to These Important Concepts for Microcontroller World — CRootConceptSeries # Episode 00](https://medium.com/jungletronics/struct-union-bit-field-enumeration-in-c-e3af4672a424)
#[EX63 - DEVC](/DEVC/EX63) - Project 63 - Data Structure: struct in C - [Intro to struct — CRootConceptSeries # Episode 01](https://medium.com/jungletronics/struct-union-bit-field-enumeration-in-c-e3af4672a424)
#[EX64 - DEVC](/DEVC/EX64) - Project 64 - Data Structure: struct in C - [Intro to struct — CRootConceptSeries # Episode 01](https://medium.com/jungletronics/data-structure-struct-in-c-caf48ae3c1b2)
#[EX65 - DEVC](/DEVC/EX65) - Project 65 - Pointers & Arrays in C - Intro to Pointers in C
#[EX66 - DEVC](/DEVC/EX66) - Project 66 - Daniel's Resto - Classe e Sabor ao seu dispor! - Trabalho academico - veja o encarte dos requisitos!
#[EX68 - DEVC](/DEVC/EX68) - Project 68 - How to get the type of a variable in C code? - Intro to C Language
#[EX69 - DEVC](/DEVC/EX69) - Project 69 - A Pointer to a Pointer Exercise - How to use pointer of pointer in C Language
#[EX70 - DEVC](/DEVC/EX70) - Project 70 - Multiple indirection with integers - How to use multiply pointer in C Language
#[EX71 - DEVC](/DEVC/EX71) - Project 71 - Using Arrays of Structures - Book: Beginning C - From Novice to Professional (Ivor Horton)
#[EX72 - DEVC](/DEVC/EX72) - Project 72 - Practical Work Academy nº 5 Computer Engineer UNINTER - Saving .csv File in C Language
#[EX73 - DEVC](/DEVC/EX73) - Project 73 - How to Navegate Throght Nodes Using Recursion in C Language
#[EX74 - DEVC](/DEVC/EX74) - Project 74 - Simple Use of recursion - sum() in C Language
#[EX75 - DEVC](/DEVC/EX75) - Project 75 - Practical Work Academy nº 4 Computer Engineer UNINTER - Recursive Funtions Max & Min
#[EX76 - DEVC](/DEVC/EX76) - Project 76 - Practical Work Academy nº 2 Computer Engineer UNINTER - Structs & Concatenations
#[EX77 - DEVC](/DEVC/EX77) - Project 77 - Practical Work Academy nº 1 Computer Engineer UNINTER - Structs & Pointers
#[EX78 - DEVC](/DEVC/EX78) - Project 78 - Practical Work Academy nº 3 Computer Engineer UNINTER - Structs & Functions
#[EX79 - DEVC](/DEVC/EX79) - Project 79 - Practical Work Academy nº 1 Computer Engineer UNINTER - Using LINKED LIST & Structs
#[EX80 - DEVC](/DEVC/EX80) - Project 80 - Practical Work Academy nº 1 Computer Engineer UNINTER - Using DOUBLY LINKED LIST & Structs
#[EX81 - DEVC](/DEVC/EX81) - Project 81 - The use of gets() and strcpy()
#[EX82 - DEVC](/DEVC/EX82) - Project 82 - Triple for use
#[EX83 - DEVC](/DEVC/EX83) - Project 83 - BUBBLE SORT (Ascendant Algorithm)
#[EX84 - DEVC](/DEVC/EX84) - Project 84 - BUBBLE SORT (Descendant Algorithm)
#[EX85 - DEVC](/DEVC/EX85) - Project 85 - QUICK SORT (Ascendant Algorithm)
#[EX86 - DEVC](/DEVC/EX86) - Project 86 - QUICK SORT (Descendant Algorithm)
#[EX87 - DEVC](/DEVC/EX87) - Project 87 - Sequential Search Algorithm (SSA)
#[EX88 - DEVC](/DEVC/EX88) - Project 88 - DOUBLY LINKED LIST
#[EX89 - DEVC](/DEVC/EX89) - Project 89 - DOUBLY LINKED LIST - JR'PLAYLIST! First Try :/
### License
[](https://creativecommons.org/licenses/by-nc-nd/3.0/)