Message from C, C++ talks

July 2019

— Well you can separate execution into two parts. user and kernel. So when your program is executing for a lot of things you need to call the kernel. Some examples are reading/writing to a file, printing something to the screen, allocating some memory, listing the files in a directory and so on (basically everything that the kernel manages for security reasons and can't be done without calling the kernel)

Message permanent page

— So before you call the kernel you set up the parameters for the call. So in assembly for x86_64 to print something you'd set rax, rdi, rsi and rdx to the appropriate values and then do syscall to ask the kernel to execute whatever you wanted to do

Message permanent page

— What are control points in opengl?
I am a bit confused, are they vertices or what exactly
Like for a triangle is it okay to say the control points are three and line control points 2 or is entirely something different.
Please let me know if you have a answer

Message permanent page

— /notes

— 

List of notes in C/C++:
- 0_to_show_item_use"#item"
- awesomeness
- best
- best-book
- bingo
- callingfunction
- cbook
- `c++_isnt_c_with_classes`
- cpp
- cppbook
- findprojects
- freeprogrammingbooks
- gcc9
- goodcodingmentality
- goodgoogling
- googleit
- great
- hownottoask
- howtoask
- howtopostcode
- howtoprogram
- ide
- learn
- mcve
- meta
- noendl
- nousingstd
- offtopic
- ossu
- ot
- reference-the-standard
- rules
You can retrieve these notes by using /get notename, or #notename

— -findprojects

— #findprojects

— 1. Go to github.com
2. Tap on search.
3. Use advanced search.
4. Select your working language.
5. Press the search button.
6. Hover through the repositories and select one of them.
7. Fork it.
8. Do what you want to do.
9. Make a pull request so that the "original owner" can look at the changes and merge them if he feels the need to.
10. Voila!

Message permanent page

— Waah nice 😐

— #callingfunction

— ❤️

— What are control points in opengl?
I am a bit confused, are they vertices or what exactly
Like for a triangle is it okay to say the control points are three and line control points 2 or is entirely something different.
Please let me know if you have a answer

Message permanent page

— No idea mate

— #howtoprogram

— If you want to learn how to program, the best way is writing a lot of programs. You can get the basics of any programming language just using Google. Once you have that, make some programs that you're interested in, and if you don't have any idea, you can use websites like projecteuler.net or codingame.com to get some challenging ideas.

If you want to learn specifically C++, you can read C++ Primer last edition or A Tour of C++ (written by the C++ creator) and then Effective Modern C++. Of course, read the books while programming a lot, and try to find useful ways to use what you just learned. This is how I learned (more like "I'm learning") C++.
Credits : Aleradamantis

Message permanent page