Vitalii
x is not initialised
I know, that's just a piece of my code) I give it some values
Alex
show actual code
olli
why when I use: double x, y; y = pow(1-x, 1.0/3); printf("%lf", y); It turns: -1.IND00 It works right when (1-x) is positive, but if negative - it doesn't work. Cannot understand why...I google it, follow some steps, but it didn't work :/
From n1570 1 double pow(double x, double y); float powf(float x, float y); long double powl(long double x, long double y); 2 [...] A domain error occurs if x is finite and negative and y is finite and not an integer value. [...]
Anonymous
Return Value The result of raising base to the power exponent. If the base is finite negative and the exponent is finite but not an integer value, it causes a domain error. If both base and exponent are zero, it may also cause a domain error on certain implementations. If base is zero and exponent is negative, it may cause a domain error or a pole error (or none, depending on the library implementation). The function may also cause a range error if the result is too great or too small to be represented by a value of the return type.
Anonymous
Sorry, how can I send a link to the reference?
olli
new members can't send links for a couple of hours. From @yahbit: https://cplusplus.com/reference/cmath/pow/
Anonymous
Thank you. I'm sorry, didnt read the rules yet XD.
Anonymous
Do some of you use WiX Toolset to generate MSI installer? I've been trying to do something with that but I'm doing something wrong.
Anonymous
cplusplus dot com/reference/cmath/cbrt/
Vitalii
Try use cbrt(1-x)
Ohhh, thanks, I saw this function but I don't know why I didn't try to use it)))
Anonymous
))
Георгий
Anonymous
🙂
skipper
What language should the data structure be learned in c++ or Java tell me you suggestion ??
*
C++
Alex
java. not the best idea to ask such question in c++ group
Anonymous
Not C++ and unless you have a vendetta against yourself, definitely not Java
skipper
Not C++ and unless you have a vendetta against yourself, definitely not Java
So tell me which one language is best for data structures?
Alex
or Pascal for example
skipper
I'm working on c++ after that in present days I'm learning Java but you tell me learn c it to difficult
hdjdjdjjdj
how does a browser make an http request ? what protocol does it use ? by protocol I mean the likes of telnet. Thanks in advance guys
James
Which Programming languages are Best for Begineer's
Pavel
why not Java?
From what I saw, Java's GC, object comparison, and other implementation details make a lot of knowledge about data structures in Java not applicable in other languages.
James
beginner*
hdjdjdjjdj
Alex
ikr, how does it send these http requests ?
what do you mean "how"? in which context?
olli
ikr, how does it send these http requests ?
most likely TCP/IP, although not mandated. read rfc2616
*
beginner*
The most important thing is math, you can start with whatever you want but python and c is better than other languages for a beginner
hdjdjdjjdj
what do you mean "how"? in which context?
for example, one way to send an http request is using telnet protocol, what alternative protocol is used by a browser ?
hdjdjdjjdj
it shows http or https
olli
http is based on tcp
not mandated though (e.g. QUIC) From RFC2616 HTTP communication _usually_ takes place over TCP/IP connections. The default port is TCP 80 [19], but other ports can be used. **This does not preclude HTTP from being implemented on top of any other protocol on the Internet, or on other networks.**
hdjdjdjjdj
thanks for your help guys
hdjdjdjjdj
we were just talking about a related topic, what happened
hdjdjdjjdj
but it is ok gonna remove it
olli
we were just talking about a related topic, what happened
fair enough, your question was still pretty vague. A http request is made by sending the payload over the network using the underlying network stack. E.g. that's what libcurl does (C library)
hdjdjdjjdj
Anonymous
Err... Google?
Hmm, you asked me back? What a nice... 😞
Talula
Hmm, you asked me back? What a nice... 😞
I'm a programmer (kinda) but 90% of what I do is searched from Google, I can't even remember how arrays in C# work, every time I want to make an array in C# I search it on Google... because I don't have to keep information in the brain wasting 1000s of neurons when I could use computer memory and internet connection.
Talula
I'm sorry, but I don't know what is the websites should I visited 😿
It's called www.google.com search for your problem and you'll get your answers for most of the things.
Anonymous
Hmm, don't have any specific one?
Anonymous
Hmm, okay my brother. But, if I ask what is your favorite website... You will not answer that and tell me to find out by myself. Nice 2 😂
Talula
Hmm, okay my brother. But, if I ask what is your favorite website... You will not answer that and tell me to find out by myself. Nice 2 😂
Yeah "OUR" everyone who knows programming favorite site is "www.google.com".
Talula
Hmm, okay brother. Thank you 😊
I'm not a brother... I'm a sister...
Anonymous
I'm not a brother... I'm a sister...
Your profile photo told that ☺️
Anonymous
I keep calling you brother, because I trust to myself that you are a boy. ☺️
Talula
Your profile photo told that ☺️
That is my son... I'm not 3 years old either.
Anonymous
Manav
Dada
Sample input 3 - no of travel expense choices 14 15 16 14 15 16 14 15 16 Sample Output 43 - minimum travel cost Note: Not to travel by same mode of trnsport consecutively
Dada
How to solve this?
olli
How to solve this?
by writing code, in this case you should add 14, 15 and 14. Sounds like a DP problem
Dada
yes thats how the explanation stated
olli
Then what's your issue? We aren't going to write this for you.
Dada
ok fyn
olli
ok fyn
learn how to ask questions, might be helpful in the future :)
Dada
cool
Ashish
Can anyone teach me c and c++