Talula
Talula
I can use any IDE? Plz suggests
You could also use C++ Builder
Talula
There are other IDE, if I say the name, people will curse me for life.
olli
I can use any IDE? Plz suggests
Visual Studio, Eclipse, Clion are probably the most common Otherwise go for VS Code and gcc which works on every platform
V01D
And what's the size of a char in bytes? 8!
V01D
So sizeof(fruits) = the sizeof a char * the elements in the array, aka 8 * 6
.....
Assignment help
V01D
You meant char*?
Nah, just a char data type. I only spoke about it since his strings didn't exceed 8 bytes.
Vlad
Btw initing array of char* with const char* is totally wrong
Vlad
Size of the stuff that those pointers point to doesn't matter for the sizeof
vinícius*
vinícius*
A single char is traditionally a single byte, not 8
vinícius*
Nope..
Vlad
vinícius*
8 bits, not 8 bytes
V01D
Yeah.. it's better not to teach him wrong stuff
Well shoot. Everytime I come here I answer it all wrong, how tf even.
Anonymous
hi
Anonymous
i have a rectangle with a length of 700 inside, i have a fixed region of 100, 500, and variable region in the middle (100, 100, 500) when i click on say 210, which is inside the 500 region, how do i calculate the required variable region width such that it is always the same regardless of where in the region i am clicking in the context of a resizable rectangle (hence the variable region) as i am currently calculating it as width = clickedLocation width -= 500 as i just cant seem to figure this out ;-; i know that i can eliminate the offset by doing location - regionLength - widthLeft // location - 100 - 100 however this does not fix it entirely old regionLength = [724.0] location = [975.58594] regionLength = [724.0] widthLeft = [100.0] new regionLength = [151.58594] old regionLength = [151.0] location = [973.47656] regionLength = [151.0] widthLeft = [100.0] new regionLength = [722.47656] as it flickers and is partially correct in width but at the same time incorrect in width and doing float locationFixed = location - regionLength - widthLeft regionLength = location - locationFixed; just screws it up, as does regionLength = regionLength - locationFixed;
Aniket
Why strrev function in string.h is not available now
Igor🇺🇦
Why strrev function in string.h is not available now
It wasn't a standard C function. And it's dangerous because it can be used for buffer overruns
Igor🇺🇦
In C++ you should use https://en.cppreference.com/w/cpp/algorithm/reverse
Aniket
But was included previously
brahim
install wmsAuthSign ?hash= for php player
brahim
What insatall method
Gulshan
man
vinícius*
But was included previously
strrev is not part of any C standard. If you used it before, you used it as an extension
vinícius*
Just use a replacement... it's not hard to reverse a string
Gulshan
Igor🇺🇦
But was included previously
It was, now it isn't. You can write your own. gets that even was a part of standard was removed too. It happens
Aniket
Yes by including string.h
Gulshan
can Anyone tell me that what should I use instead of "make ./raymond"
Gulshan
I know it is clearly written but I can't able to fire that command without encountering any error
Gulshan
Aniket
I want to participate in open source project then plz guid me how i will do that
Gulshan
should I make a new cmakelist.txt file or I should opt for the default file got from the plog repo ?
Gulshan
I want to participate in open source project then plz guid me how i will do that
get a github account and contribute to other's code, by doing some fixes in their code, or anything else which is required in their respective repo
Igor🇺🇦
I want to participate in open source project then plz guid me how i will do that
Go to github or bitbucket and find something that interests you. Try to fix bugs there and to submit patches
Anonymous
If you like data structures follow this repository https://github.com/CoolerVoid/Fortress-of-Solitude I share to help anyone that need study data structures algorithms
Anonymous
double control=2,no1,no2; while( control==scanf("%lf %lf",no1,no2){ if(control==2){ ... } else break; }
Anonymous
double control=2,no1,no2; while( control==scanf("%lf %lf",no1,no2){ if(control==2){ ... } else break; }
I am controlling if user entered two double number or not ,if he did not enter double (enter smth else) i want to exit from loop,but it is not working,there is an infinite loop,how to fix it
vinícius*
If the user types in integers, C is just gonna cast it to double
vinícius*
Your current logic works when avoiding chars
vinícius*
But.. is that what you want?
Shaurya
If the user types in integers, C is just gonna cast it to double
In C/C++ we use variable after declaring its type So, If we declare double then sure integer will consider as double from the input
Shaurya
In you want to handle integer and double separately then #include<bits/stdc++.h> using namespace std; int main(){ string num1, num2; double n1, n2; int cnt,f; do{ cnt = 2; cin>>num1 >> num2; f = 0; for(auto n : num1){ if(n == '.') { f++; continue; } else if(n <'0' && n >'9'){ cnt--; break; } } if(f != 1) break; for(auto n : num2){ if(n == '.') { f++; continue; } else if(n <'0' && n >'9'){ cnt--; break; } } if(f != 2) break; if(cnt == 2){ n1 = stod(num1); n2 = stod(num2); } }while(cnt == 2); return 0; }
Gustavo
Can someone please read my code? I really don't get what I've done wrong
Gustavo
https://pastebin.com/W6dUgR3A
Gustavo
I'm suppose to find the area and perimeter of a polygon, maybe the mistake is in the way i wrote the points in the for loop, but I have no idea
Anonymous
Hello
Anonymous
Hi
OZAIR
Hello
Holla
klimi
Hi
What do you need lady?
MilkBeforeCereal
klimi
you
Shaurya
I'm suppose to find the area and perimeter of a polygon, maybe the mistake is in the way i wrote the points in the for loop, but I have no idea
Figure out all these points : 1. Think about the input when vertices will be unordered 2. Visit Shoelace Theorem 3. Google it (lots of article on it)
Roxifλsz 🇱🇹
Hi
/ban hi bot
klimi
Roxifλsz 🇱🇹
Hi roxi
Henlo
Sagar
Can anyone tell me what is tight coupling and loose coupling?
Igor🇺🇦
Can anyone tell me what is tight coupling and loose coupling?
Did you try searching? https://www.geeksforgeeks.org/software-engineering-coupling-and-cohesion/
Indolent
We need the manpower boys
Gustavo
Shaurya
Anonymous
Why this link was not been deleted by the bot ? 🧐🧐
its related C/C++/algorithm and is reliable site ig
Gulshan
its related C/C++/algorithm and is reliable site ig
The link sent by me, was from stack overflow 😅😅 but then also, the bot deleted my message
彡( ⱤØɎ₳Ⱡ ₭ł₦₲ )彡 [FULLZ | PROS]
The link sent by me, was from stack overflow 😅😅 but then also, the bot deleted my message
I guess you should take the permission from admin before posting any kind of link
Ishikawa
how do i pass equality comparison signs into ( ) from a variable?
Ishikawa