BinaryByter
Doesnt anymore, when you change the ref to nonconst
BinaryByter
Is that what you ask for?
MᏫᎻᎯᎷᎷᎬᎠ
MᏫᎻᎯᎷᎷᎬᎠ
MᏫᎻᎯᎷᎷᎬᎠ
MᏫᎻᎯᎷᎷᎬᎠ
or sometimes is and sometimes isn't
MᏫᎻᎯᎷᎷᎬᎠ
BinaryByter
the automatic cast from double to float or from int to float might lose precision
BinaryByter
(thats how you end up with floats like 1.00000000000000001)
MᏫᎻᎯᎷᎷᎬᎠ
don't get me wrong guys If I looked being a smart ass XD
BinaryByter
No, you looked very competent!
MᏫᎻᎯᎷᎷᎬᎠ
(thats how you end up with floats like 1.00000000000000001)
when you cast it int and then cast it to double for example
BinaryByter
double a = 1;
MᏫᎻᎯᎷᎷᎬᎠ
yeah
🐰🐾 سمیه
Hi, I'm having trouble understanding the highlighted part in the page. Why there's "10*n" in the expression? I think that without it being there, it'll also be true.
MᏫᎻᎯᎷᎷᎬᎠ
you see
🐰🐾 سمیه
For example, if there is 1 in the s[ i ], so it's numeric value is 49-48= 1
MᏫᎻᎯᎷᎷᎬᎠ
'0' has an ASCI code
MᏫᎻᎯᎷᎷᎬᎠ
'0' = 48
MᏫᎻᎯᎷᎷᎬᎠ
so
MᏫᎻᎯᎷᎷᎬᎠ
when you write 70 - '0' you actually mean 70 - 48
Anonymous
10??
BinaryByter
ith each position you go left, you go up by a power of10
BinaryByter
1
BinaryByter
10
BinaryByter
100
BinaryByter
1000
BinaryByter
10000
BinaryByter
Thats exactly what you are expressing by 10*n
MᏫᎻᎯᎷᎷᎬᎠ
Lol I misunderstood the question
BinaryByter
becaude n is the position in the string
Anonymous
Is it in the form of array
BinaryByter
a string is an array
🐰🐾 سمیه
ith each position you go left, you go up by a power of10
But there's is no need for 10*n in the expression. Its value is always zero in this case. So why it's written there?
🐰🐾 سمیه
Lol I misunderstood the question
No problem, I'm waiting for the rest of your explanation 😊
BinaryByter
without it, you would be adding 2+4+6 with the number 246
here, you are doing ((((2 * 10) + 4) * 10) + 6)
BinaryByter
since you read from left to right
MᏫᎻᎯᎷᎷᎬᎠ
Trivially copyable types are "location-invariant" and users can specialize this trait for other types.
MᏫᎻᎯᎷᎷᎬᎠ
this quote
klimi
Hi lunatic.... I hope I won't die
BinaryByter
you wont, lil dude
klimi
Hi Maxi
MᏫᎻᎯᎷᎷᎬᎠ
Hi lunatic.... I hope I won't die
life and death in god hands
BinaryByter
Hey Klimi
MᏫᎻᎯᎷᎷᎬᎠ
lol
MᏫᎻᎯᎷᎷᎬᎠ
hi
BinaryByter
Anonymous
/huha
klimi
you wont, lil dude
I have fever 49°C
BinaryByter
you dont
MᏫᎻᎯᎷᎷᎬᎠ
Klimi
BinaryByter
you dont
39, not 49
klimi
Everything is gonna burn
MᏫᎻᎯᎷᎷᎬᎠ
Hi
klimi
39, not 49
That's high too...
Anonymous
Then convert it to celecious
MᏫᎻᎯᎷᎷᎬᎠ
Klimi
MᏫᎻᎯᎷᎷᎬᎠ
Hi
klimi
Hi
Hewwo
MᏫᎻᎯᎷᎷᎬᎠ
I'm spamming right now XD
BinaryByter
That's high too...
higher than normal, but not too bad
klimi
I'll ban myself
klimi
MᏫᎻᎯᎷᎷᎬᎠ
eat yourself first
Anonymous
MᏫᎻᎯᎷᎷᎬᎠ
I don't see why calculation problems are hard it's like you have the formula
MᏫᎻᎯᎷᎷᎬᎠ
just put it in code
MᏫᎻᎯᎷᎷᎬᎠ
if mult use * if div use / if sum use + if sub use -
Anonymous
Is there way to use system function directly code : #include <stdio.h> #include <stdlib.h> int main() { int i ,a ; puts("Enter Your Number : "); scanf("%d",&a); FILE *f ; f=fopen("iptables.sh","w"); for(i=2;i<=256;i++) { if(i!=a) { fprintf(f,"iptables -A INPUT -s 192.168.1.%d -j DROP\n",i) ; fprintf(f,"iptables -A OUTPUT -s 192.168.1.%d -j DROP\n",i) ; } } fclose(f); return 0; }
MᏫᎻᎯᎷᎷᎬᎠ
numbers are in the keyboard