Hermann
i have my mpz r= b06fae1faad9f8a004dc586a0d9dfadaf1dad8e3747583cc59b8c10bbd60ff5161f85e81e22d41244012f89b0a621b08 and do rigth shit of 224 bit. i use mpz_fdiv_q_2exp but i get this b06fae1faad9f8a004dc586a0d9dfadaf1dad8e3
Hermann
why it is wrong?
Hermann
i should get b0 6f ae 1f aa d9 f8 a0 04 dc 58 6a 0d 9d fa da f1 da d8 e3 74 75 83 cc 59 b8 c1 0b
Alex
does somebody know about malloc and linux lazy page allocation?
Alex
I mean pages can be not mapped after malloc is called
Chahit
Can anyone help I need to start with c/c++ (I am student) I need courses can I get them on YouTube or else like Udemy Pls help
Asdew
Can anyone help I need to start with c/c++ (I am student) I need courses can I get them on YouTube or else like Udemy Pls help
You're not going to get good with Udemy or YouTube. The University of Helsinki and Aalto University have created a C MOOC course together, I have not tried it, but I've heard the Java MOOC course by the University of Helsinki is excellent. https://moocfi.github.io/courses/2016/aalto-c/en/ You also of course need practice and practice on top of this MOOC.
Guy
If so, I'm assuming the same exercise wouldn't work if the array was an int array, since it would try to multiply the array's address by four and add the index to jt
Anonymous
Anonymous
Network Level Authentication (NLA) information please?
Guy
Yes that's what I said?
Guy
Ah it's not
Guy
I just wanted to add to it
Pavel
Is there a cleaner way to copy one container elements to another container of a different type in C++17 than using a loop and do manual push_back or insert? E.g. here from std::map I'm conditionally copying key elements to std::vector, but I feel there can be an algorithm for that https://pastebin.com/BTMZx9VY
sirakr
Is there a way to check nginx status in c/c++ in ubuntu
Pavel
I looked at it but didn't understand how I can use it in this case
Pavel
thanks, that what I was looking for
Anonymous
Waiting for ranges...
Anonymous
Exactly
You can use them in C++17 :)
Pavel
You can use them in C++17 :)
I have not the latest compilers supported, and I guess not all three: clang, gcc, msvc supporting ranges for C++17?
Anonymous
Google ranges-v3
Anonymous
It's the lib which was adopted to the standard
Pavel
Google ranges-v3
🤔 I thought there's a new C++ syntax for ranges
Pavel
Great, then I definitely need to check it
Pavel
Btw, vector can be constructed through a pair of iterators or, if you already have one constructed, you can use the assign function, which takes a pair of iterators
Yes, but as I understand I can't take an iterator from a map (an iterator for keys for example) and use it in a vector. That would be a nice feature though
Artöm
Hm that sounds like a library. Thanks for an idea
Alex
copy(component.begin(), component.end(), back_inserter(filtered.begin())
Artöm
/report ad
Liam
/report ad
Thanks~
Pavel
just use copy from algorithm and back_inserter
I guess that won't work as map and vector have different iterators
Liam
I guess that won't work as map and vector have different iterators
It will work, for std::vector<std::pair<Key, Value>> and std::map<Key, Value>.
Liam
If you want to copy Value`s from `std::map<Key, Value> to std::vector<Value>, use std::for_each with [&vec] (std::pair<Key, Value>& pr) { vec.push_back{pr.second}; }.
Francisco
Btw, there's a proposal of an operator called pipeline-rewrite, which would release us from the heavy template machinery that ranges work on http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p2011r1.html
Francisco
It's just a syntacti sugar, where x |> f(y) is just the equivalent to f(x, y), which is kind of similar to how range algorithms work
Francisco
If it gets accepted for C++23, many parts of the ranges library would get obsolete and probably deprecated in future releases
Francisco
Nice
Abimbola
Hello everyone pls I need someone to pls teach me c++ from scratch thanks.
Abimbola
You mean you want to hire a teacher?
I am not paying I am still eleven years old
klimi
Oh
Abimbola
Oh
Are you going to assist me plsss
klimi
Alright........ If that is so.... I am willing to help you
Artöm
I am not paying I am still eleven years old
C++ is not that good as first language imo
Abimbola
C++ is not that good as first language imo
I have learnt Python is my first programming language thank you
Abimbola
Who would assist me in learning c plus plus please
Artöm
For 11 yo you sure are persistent
Abimbola
For 11 yo you sure are persistent
You know I'm young please I really need it please
Abimbola
Thanks Rose I'm going to start learning right away
Artöm
If you arent a book person, I suggest learncpp.com, it has very decent pace and info amount
Abimbola
some people tell me cplusplus is hard and I don't know whether it is true can anyone please say if they are correct
Artöm
It is kinda hard, but basics are easy enough
Artöm
Like you can learn subset of C++ fast, but you need lots of time to be able to say "I know C++ well"
Abimbola
Artöm
Finish what?
Abimbola
Finish what?
Learning c plus plus
Artöm
With which goal?
Habdul
Learning c plus plus
You never stop learning.
Som
How many days it will take approx to finish c++
Som
Any idea? I heard 3months ..is it so?
Artöm
To finish? More like a couple of years
Som
I know max times it depends on the potential and determination but still any average guess?
Abimbola
I want to learn game making but I don't know what programming language is the best can you tell me please
Mar!o
Rust or C++
Asdew
C++ with Godot
Abimbola
If cplus plus takes time how long will it take to learn c Sharp because I think I'm going to use unity game engine
Mar!o
C# shorter it's like a more complex java with more features from C++. But to master it still long. Any real language takes time...