Anonymous
ok sorry
Felipe
/get ide
Anonymous
Did
Swaroop
How to implement atof function in c
h1z9x8h*ehsjhgooqoap
first , fully understand float point storage format in memory
Swaroop
first , fully understand float point storage format in memory
That i have understood but i need some simple logic to implement atof function
Swaroop
Just explain me the logic i will implement of my own
Rohit
/notes
zoltan
/notes cbook
𝖜𝖎𝖑𝖑𝖘𝖎𝖗
/get cbook
𝖜𝖎𝖑𝖑𝖘𝖎𝖗
/get findprojects
zoltan
𝖜𝖎𝖑𝖑𝖘𝖎𝖗
thanks
thank you too😊
Anonymous
/notes
Anonymous
/notes ide
Anonymous
Hi Wap to find cubes in the fibonacci series using c
Anonymous
?
🎩
/get best
🎩
/get c++_isnt_c_with_classes
Anonymous
Hi Wap to find cubes in the fibonacci series using c
Example : 0,1,1,2,3,5,8,13 Output = 1, 8
🎩
/get c++_isnt_c_with_classes
🎩
/get learn
🎩
/get noendl
mrphyber
I can give you an algorithm
Anonymous
Ty
mrphyber
for each n in the series if (cube root of n)^3 == n n is a cube
klimi
Example : 0,1,1,2,3,5,8,13 Output = 1, 8
Thats just search in 2 arrays
klimi
Or check it against every num
mrphyber
Wat
mrphyber
Pick 8 for example
mrphyber
Cube root of 8 = 2
mrphyber
2^3 = 8
mrphyber
8 is a cube
Anonymous
I should check for each number
mrphyber
Yes
Anonymous
1 2 3 5
mrphyber
Make this check for each number in the series
Anonymous
Assume n=2 If(cube root of n) == n If(2^3) ==2
mrphyber
Cube root is not exponential
Anonymous
I'm not understanding can u take one example and explain me
Nikolas
You could just check if the cube root is a whole number with no decimal digits though
klimi
Cube root ^3 is the same number
Nikolas
for each n in the series if (cube root of n)^3 == n n is a cube
That's true always BTW, unless you round the cube root
mrphyber
We're talking floats I assume
Anonymous
🙇‍♀
Anonymous
👍
ankit
Which one is better? anonymous poll Java – 1 👍👍👍👍👍👍👍 50% Python – 1 👍👍👍👍👍👍👍 50% 👥 2 people voted so far.
Dark
How do you get the position in memory with C++. Like if I made an array could I get the location in memory where it is stored
Pavel
But why you need the location in the memory, in the first place?
Dark
I was curious and wanted to see how it works and then fun with it.
Nomid Íkorni-Sciurus
Which one is better? anonymous poll Java – 1 👍👍👍👍👍👍👍 50% Python – 1 👍👍👍👍👍👍👍 50% 👥 2 people voted so far.
While Java is shit I must admit that it does not suffer from the "what the hell am I writing" disease
Pavel
I was curious and wanted to see how it works and then fun with it.
Well, then you can get pointers to whatever variables you need and output them as numbers (for example). But as I know, relative location of different objects (e.g. two unrealted heap or stack allocated variables) is undefined. So you cannot rely on it while writing real software. But if it's just for fun, why not.
Farhan
https://pastebin.com/hq1Qx40r
Farhan
help me
Farhan
Help me
Dima
Talula
https://pastebin.com/hq1Qx40r
Why are you using Int32?
PM
Hello guys ! I just know basics of C++.So I should improve my skills in c++ or should become expert in java..I mean are there any points where only c++ can be used and java can't?? Further if I become expert in java,Any big company like google,fb or microsoft etc. may need c++ other than java during placement ?
Talula
What ?
Read it again... it's clear... Java is a dying language, it's as good as it's dead.
PM
Then should I not learn java ?
Talula
You should learn C++ anything after C++ is simpler... you could move to JavaScript but Java Script is not Java.
Farhan
Why are you using Int32?
because im compiling this to run on raspberry pi and arduino for connecting motors
PM
You should learn C++ anything after C++ is simpler... you could move to JavaScript but Java Script is not Java.
But cpp is not in my academic syllabus ahead and there is only java. So i was asking as i should learn java effectively or should learn cpp at my own
Alexander
does anybody know how to resolve this problem?
I found how to resolve this problem. I had not install MSVC Tools. So, I know that you need install the Visual Studio and MSVC 'cause MSVC do not distributed separately.