BinaryByter
yea
BinaryByter
its not that bad
BinaryByter
but it doesnt have enough positive effects for me to relearn a language
MᏫᎻᎯᎷᎷᎬᎠ
These days I hear a lot about this language Rust
They are saying that it's dope as C++
MᏫᎻᎯᎷᎷᎬᎠ
BinaryByter
yes
BinaryByter
Rust is cool
#define CLEAR_BUFFER while ( getchar ( ) != ’ \n ’ )
Anonymous
Give me an idea of CPP projects
BinaryByter
No, you have to find the idea yourself
MᏫᎻᎯᎷᎷᎬᎠ
Rust is cool
Better than C++?
BinaryByter
Partly yes
MᏫᎻᎯᎷᎷᎬᎠ
Partly yes
Shit!!!!?
BinaryByter
not A LOT better than C++
MᏫᎻᎯᎷᎷᎬᎠ
Wow
BinaryByter
it just has some traits that are better than C++
MᏫᎻᎯᎷᎷᎬᎠ
That's impossible
BinaryByter
segfaults are impossible in rust
BinaryByter
for example
BinaryByter
or pointers that are handled as smart pointers under the hood
BinaryByter
meaning that you won't have memory leaks
BinaryByter
(unless you really try to)
BinaryByter
but modern C++ makes up for most of those flaws:
BinaryByter
if you know what you are doing, rust doesnt really have any advantage
Anonymous
Future of c++?
BinaryByter
yea, C++17 has std::future
BinaryByter
not something you use everyday
Anonymous
C or C++ for exploit development??
BinaryByter
Cheese strings
elbartoo
Hi guys
elbartoo
Im newbie in c
Dima
Cool. welcome, read the rules first
elbartoo
And ive been the whole day on función enum
elbartoo
Oh sorry
Anonymous
## Rules #pinned * You are not entitled to an answer, getting angry about not answered questions will get you warned. * Not checking your problem in google (or any other search engine) first will get you a warn. * Asking for something that is in the pinned message right after joining WILL GET YOU BANNED. * C/C++ discussion preffered (assembly also allowed), asking about other languages (or groups for other languages) right after joining will get you BANNED. * Reverse enginnering, hacking and related topics are allowed, but asking to hack facebook, instagram, etc. is NOT allowed. Also if you ask "how to become a hacker" and obviously have zero knowledge on anything related to that you may get warned or banned. * Legitimate requests for help on code and programming questions are welcome. A request is considered legitimate if it describes your problem, what you've done so far and what went wrong. Requests such as "write my program" or "do my homework" are never considered legitimate. Asking not legitimate questions will result in a warn or ban. See https://stackoverflow.com/help/mcve on how to write good questions. * Asking for book recommendations is ok, but "pls give pdf book" is not allowed, find books by yourself. Posting illegally copied books (or links to those books) is also not allowed. * Only English language is allowed, if you speak shitty English or don't understand anything in English YOU WILL BE BANNED. * A little bit of programming related memes, jokes, shitposting are allowed. * NSFW content (porn, nudity, etc.) is not allowed. * Spamming/advertising (job posts are also ads, so ask an admin before posting) will grant you a warning or an immediate ban if you do it right after joining. * Religion, politics and ideological topics are forbidden. * Long code snippets must be posted via a snippet website(links below), posting pictures of code and posting long snippets in the group is not allowed. * If you encounter a problem, while using turbo C++, you will not be helped, use another more modern IDE. * Don't post compiled executables, that is obviously a security risk ## Resources About asking good questions: * [English](http://www.catb.org/esr/faqs/smart-questions.html) * [Translations](http://www.catb.org/esr/faqs/smart-questions.html#translations) For posting long code snippets: * [GitHub Gist](https://gist.github.com) * [Ubuntu Paste](https://paste.ubuntu.com/) * [Pastebin](https://pastebin.com) ## Reports If you notice any forbidden content, please use the /report command while responding to the offending post to report it to the admins.
Noted
elbartoo
elbartoo
thats the program i know its bad done but the idea is that when i enter the enum first parameter respond as the number asigned like lunes=0
elbartoo
i know its in spanish but sorry
j
is this book too old to learn linux?
j
http://www.fuky.org/abicko/beginning-linux-programming.pdf
j
?
klimi
#cbook
John
Do people read that? Isn't it dry?
BinaryByter
it is very dry
klimi
Do people read that? Isn't it dry?
I can't see everyone typing /cbook
klimi
Sayonara
Where are you going?
Anonymous
Sayonara
Long long
BinaryByter
error: long long is too long for maxis head
BinaryByter
xD
Dima
Basiliusic
/rules
BinaryByter
Anonymous
If I posted this I would have been banned
Gabriel
Gabriel
Very important sticker
S
/current_lang@Translate_Bot
Anonymous
( ͡° ͜ʖ ͡°)
What program do you use to make music ?
TrUstEd
Describe the difference in the meaning of Int a[5]; and the meaning of a[4]. What is the meaning of the [5] and [4] in each case?
Dima
What the...
Ludovic 'Archivist'
is this book too old to learn linux?
No it is not, POSIX doesn't move lots, about 2/3 of the book are still very OK
Anonymous
/cbook
BinaryByter
If I posted this I would have been banned
No, grannies with guns are fine
Mat
Describe the difference in the meaning of Int a[5]; and the meaning of a[4]. What is the meaning of the [5] and [4] in each case?
Create an int array big enough for 6 elements called a. Fill it. Then print a[5] and a[4]
BinaryByter
x x x x x x ^
BinaryByter
this "^" is the entry point to the array
BinaryByter
it is exactly what "a" expresses
BinaryByter
if you were to print *(a) you would get the first element
BinaryByter
by adding an offset to a, you can move the array
BinaryByter
meaning that you move a along the strip of memory
BinaryByter
a[2] is the same as *(a + 2) which is the same as doing this: x x x x x x ^
Liam
if b == 2, also b[a]
BinaryByter
Liam
$ cat offset_test.cc #include <iostream> int main() { int a[4] = {0, 1, 2, 3}; std::cout << a[2] << '\n'; std::cout << 2[a] << '\n'; std::cout << *(a + 2) << '\n'; std::cout << *(2 + a) << '\n'; std::cout << std::flush; return 0; } $ g++ -std=c++11 offset_test.cc $ ./a.out 2 2 2 2