klimi
Dima
no
jaebie
I thought you asked me what I already know, sorry my bad
jaebie
what I don't know is how to calculate distance between two points
jaebie
btw, thank for the effort Dima and Klimi
jaebie
thanks*
Aquatica
Aquatica
Dima
no
Aquatica
Idk I’ve never done this
Dima
longitude and latitude
Aquatica
Aquatica
I searched for it on stackoverflow though, it’s pretty easy
https://stackoverflow.com/questions/365826/calculate-distance-between-2-gps-coordinates
Aquatica
But I don’t think that was his question
Anonymous
Hello
klimi
klimi
Dima
klimi
Aquatica
lol
jaebie
thank you very much, guys
jaebie
Can someone help me solve the problem here cuz
jaebie
#include<iostream>
using namespace std;
class Two_num
{
public:
int x,y;
int sum =0;
void Num(int x1,int y1)
{
sum = x1+y1;
}
};
int main()
{
Two_num two_num;
two_num.Num(8,31);
std::cout <<"The sum of the two numbers is:" << two_num.Num() << ::endl;
return 0;
}
jaebie
i just need to add numbers
Captain
Carlo
i have a question
Carlo
i have a function that returns a float
Carlo
is it possible to do
Carlo
char output[]=function();
Carlo
and i can't return anything from that function
Dumb
Carlo
i can't use printf to format the output
Carlo
i need a string that contains dht2.readTemperature()
Dumb
readTemperature gives a float or a char array?
Carlo
Dumb
an ez way could be casting the float to int and then change it in a string
or just some weird stuff with printf that I don t remember as well
Carlo
Carlo
Dumb
ah so it's a procedure
i thought it was a function
Dumb
if it's void you could use referencing parameters to change one or more value/vars
Carlo
readTemperature returns a float value,but i don't know how to store that value
Dumb
if it returns a value you could save it as below f.e.:
float temp = dht2.readTemperature()
//do some stuff on temp//
Carlo
thanks
Carlo
i don't know why but when i tried it didn't work
Dumb
maybe misspelling or a bad format
it happens
Ravindu Ishara
I want to make a programming IDE for myself. How do I get started ? Any one can help me..?
To ESP 32 programming...
jaebie
Can someone help me determine the problem in my code
jaebie
#include<iostream>
using namespace std;
void Two_num(int j, int b)
{
int switch = j;
j = b;
b = switch;
};
int main()
{
int num1,num2;
std::cout<<"Please enter the first number: ";
std::cin>>num1;
std::cout<<"Please enter the second number ";
std::cin>>num2;
Two_num(num1,num2);
return 0;
}
jaebie
I need to swap the two numbers in different variables
Anonymous
David Vandevoorde - C++ Templates: The Complete Guide
Anyone has a pdf of this book please?
jaebie
dearfl
\Device\NUL
blueyi
is there a group for llvm compiler?
\Device\NUL
jaebie
Anonymous
Anonymous
#include<iostream>
using namespace std;
void Two_num(int *j, int *b)
{
int switch = *j;
*j = *b;
*b = switch;
};
int main()
{
int num1,num2;
std::cout<<"Please enter the first number: ";
std::cin>>num1;
std::cout<<"Please enter the second number ";
std::cin>>num2;
Two_num(&num1,&num2);
std::cout<<num1<<num2;
return 0;
}
Divyanshi
I am not able to do pattern questions
Is there any trick to figure out the logic easily!?
Ravi
Anmol
How can I learn and get hands on experience in Object Oriented Programming as soon as possible ?
Please help....!
klimi
Anonymous
Kriss
Kriss
Divyanshi
Robert
Does anyone know of a c++ book for beginners?
jaebie
jaebie
I see, that's probably why its not working
jaebie