Asad
in my code it sound ngeek-brep-brep-brep then when it release it sound brep-tet
i don't know man. haven't tried audio lib yet...
Hermann
anyone use gmp lib?
Francisco
anyone use gmp lib?
I've used it
Hermann
I've used it
is possibile do mpz_powm() without mod?
Hermann
is possibile do mpz_powm() without mod?
i do this B=(g1)^r * (1+sigma*N) mod N^2
Francisco
So you just want plain pow?
Francisco
According to the docs, you want mpz_pow_ui or mpz_ui_pow_ui
Hermann
So you just want plain pow?
yep, i need to (g1)^r * (1+sigma*N) and than mod N^2
Francisco
Those are all integers?
Hermann
nop...r is mpz_t
Francisco
nop...r is mpz_t
Well, I meant also mpz
Hermann
According to the docs, you want mpz_pow_ui or mpz_ui_pow_ui
Function: void mpz_pow_ui (mpz_t rop, const mpz_t base, unsigned long int exp)
Francisco
Yep, that's it
Hermann
Yep, that's it
not works because r is mpz
Francisco
not works because r is mpz
https://stackoverflow.com/questions/35846737/gmp-mpz-pow-ui-with-very-large-exponent
Francisco
This post justifies the decision
Francisco
Also, a*b mod n = ((a mod n)*(b mod n)) mod n
Anonymous
Hey. I have a question if I find any relevant videos( for answering a particular query) in YouTube I can share here.
Francisco
in this way i convert mpz to unsigned long int
Yes. Anything larger than 8 bytes would just blow your RAM, that's why they only allow integral types
Francisco
nice trick :)
Well, it's not a trick, it's just modular arithmetic properties 😉
Akshay
Anyone have a pdf book of c and c++?
Anonymous
Thank you so much
Anonymous
Any with pdf of c and c+
Anonymous
😂😂😂
Anonymous
Thankyou so much
I_Interface
Anonymous
Any with pdf of c and c+
Jens Gustedt's Modern C is a free book
Otumian
Any with pdf of c and c+
The C Programming Language. 2nd Edition Book by Brian Kernighan and Dennis Ritchie and The Art and Science of C: A Library-based Introduction to Computer Science Book by Eric Edwards
Cyber9ja
Hello guys I'm getting an error message saying "main already defined" and. "one or more multiple defined symbols found" on microsoft visual studio. How do I get rid of it? Thanks
Anonymous
Hello
klimi
Mar!o
Hello :)
Cyber9ja
Hello guys I'm getting an error message saying "main already defined" and. "one or more multiple defined symbols found" on microsoft visual studio. How do I get rid of it? Thanks
Otumian
Cyber9ja
Could you please explain better?
Otumian
Since there is 2 remove one
Cyber9ja
Ok
Cyber9ja
Thanks
Cyber9ja
Otumian
How do I go about it?
you have multiple files (i shall assume 2) and they are calling main or they both have main to rename of the main to main1
Cyber9ja
int main ( ) ?
Oladoja
Pls how do i start c ++
Anonymous
Victor
int main ( ) ?
Rename the file you're not running as Tmain or anything Not main
Oladoja
Ji
Anonymous
Hi
Anonymous
Hello guys!!! Does anyone know how can I show some results (calculated in a case 3 switch) in a printf of case 4?
Anonymous
basically Arithmetic calculations: additions, subtractions etc
Anonymous
my main problem is that FUNCTION that calculates every calculation CANT return all calculations at once, that's why I made it void and only does the calculations so case 4 doesn't receive any arguments
Anonymous
so HOW can case 4 function KNOW about the results to print them out? So far Ive worked it around using glob variables in my function.h
Anonymous
so functions used in case 3 and 4 see all the variables
Anonymous
but I know it should be programmed like this
Anonymous
Hi gus
Ajay
So, they can be copied now, right? I checked it and google says everything opposite of what's written in that last para.
Anonymous
Hi,guys, I am a newer in C ++,How can I get user SID in VC++ with x64 platform
Ajay
can anyone go in detail about what happens in that return 42 case? A x = 42; //this call the copy constructor but what happens in the return 42 case?
Tarun kumar
How to start programing of c++
Anonymous
How to start programing of c++
C++ Primer Plus ( version 6) / Effective C++ / More Effective C++ 3 book for start programing of c++ this is real start
Anonymous
Stanislav
can anyone go in detail about what happens in that return 42 case? A x = 42; //this call the copy constructor but what happens in the return 42 case?
A x = 42; is not copy contructor A copy constructor of class T is a non-template constructor whose first parameter is T&‍, const T&‍, volatile T&‍, or const volatile T&‍, and either there are no other parameters, or the rest of the parameters all have default values. return 42; called copy initialization read here https://en.cppreference.com/w/cpp/language/copy_initialization
@tony_thedj
## 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. * Personal messages without asking beforehand are not allowed. ## 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.
I have read and understood clearly
Anonymous
😒😒😒😒
Anonymous
I am beginner
klimi
Sure
klimi
Good luck with reading the rules
Anonymous
User Name:Password Password:Username 😁
Ashish Bhushan
Print this pattern ! 1 3 2 4 5 6 10 9 8 7 11 12 13 14 15 21 20 19 18 17 16