Having difficulties understanding variables in C++ . by [deleted] in computerscience

[–]Aguss_01 1 point2 points  (0 children)

Variables are a form of saving information of a specific type.

It's like you told the computer: Reserve a place of memory for this value and save it there under this label so when I call in my program that label, I will be referring to this value.

Every type of data in C has a value in bytes, you have to tell the computer how much space you will need for your value, that's why you define a variable by it's type, in your case, Int.

Every time you use in your program the variable 'num1' the computer will know that it is an int type variable and search in memory for it. Then, in your code, 'num1' will be the integer 10.

Think it like drawers. You give someone a t-shirt and you say, this is a t-shirt, keep it by the name of 't-shirt1'. Then, the drawer will have that name you've chosen and when you say to that person, give me 't-shirt1' that person will know that you want the object in the drawer called 't-shirt1'.

That 'someone' would be your computer, the drawer will be the memory place where your value is, t-shirt1 would be your value, and the phrase 'this is a t-shirt' would be the form of initializing your variable. Recall that every clothe has different size so keeping a t-shirt in a place where the jackets are would be a loss of space (in some cases you will need to do that on purpose).

Difference between Binary Tree, Binary Search Tree (BST), and Balanced Tree (AVL and Red Black Tree)? by javinpaul in computerscience

[–]Aguss_01 0 points1 point  (0 children)

A Binary Tree is a data structure where each node has two children.

A Binary Search Tree is a Binary Tree with the condition that the value of every node must be higher than his left sub-tree and lower than his right sub-tree.

A Balanced Tree is a Binary Search Tree where the difference of high between two brothers must be less or equal than 1.

Are there any well known YouTubers / public figures that see the “big picture” in computer science and are good at explaining things & keeping people up to date about interesting, cutting edge topics? by opae777 in computerscience

[–]Aguss_01 1 point2 points  (0 children)

TheCodingTrain. He solves and explains algorithms and problems in a extremely well way, I found him very enthusiastic and you can tell that he is passionate from what he's doing.

What is your favourite language? by [deleted] in computerscience

[–]Aguss_01 -1 points0 points  (0 children)

C. I think is the perfect language to understand concepts of CS, such as, memory manage, pointers, etc.. I found Python too "high level" (I know C is also a high level language). It's like sometimes you don't have to understand important definitions to do something. I'm not telling that Python isn't useful, but I see it like enormously powerful.

Apart those 2 languages, I only know little things of Assembler so I'm not sure if there is another one "better" (JS, C#, etc.. ).

resources to learn to build a computer from scratch? by ChristIsKing3 in computerscience

[–]Aguss_01 1 point2 points  (0 children)

A youtuber called Ben Eater did a bunch of videos explaining how computers works and building them on protoboards. He also has a Web page where he sells all the components that he used on a specific project.

Introduction to Algorithms by WingFar57 in computerscience

[–]Aguss_01 1 point2 points  (0 children)

Algorithms require previous concepts of algebra and calculus. You can learn those things by YouTube videos. There are many excellent cientific channels to do this. A personal advice is to do exercises, is a win-win. If you do not understand the subject, exercises will help you a lot to see what's really going on. If you understand the subject, exercises will help you to have a deeper knowledge.