BinaryByter
open watcom
Ибраги́м
I just compiled C++-modules branch btw
BinaryByter
why ubuntu?
Ибраги́м
why ubuntu?
Novideo GTX 1060
BinaryByter
I just compiled C++-modules branch btw
the C++ modules branch? you aren't alive that long!
Dima
are you guys really into cxx modules? 😔
Mihail
open watcom
open wat com?
Ибраги́м
Ибраги́м
🌚
from brain import sense;
Mihail
are you guys really into cxx modules? 😔
tbh yes. haven't played around enough yet tho
BinaryByter
are you guys really into cxx modules? 😔
saying that they are the best thing about C++ is like saying that the Cherry on top of the cake of your mother is the best thing about her cake: a disservice
Bader
Btw, why not add gcc intrinsics?
the repo was pretty challenging to compile... as in, it took a LONG time lol
Bader
and btw, the project is not finished yet
MetaSploit
Hello... I created a C++ program and compiled, program works perfectly but when i open executable file as text file some of it's content can be seen in it. So how can i create executable file in which no content can be accessed by opening it as text file?
Asad
hello
Asad
how can i see the result of my code on vscode
Asad
when i run it it just says no error but doesnt show the result
H̲i̲L̲e̲v̲e̲l̲
professor
one question , as I know ransomware are kind of 1passwords software, but talking about its develop side. how much does a malware programmer earn for develop this kind of tools?
professor
so that's the reason why you want to hide your process(es)? (rethorical) Potentially several years in prison
I am student from malware analysis , but apart from prison i wanted to know how much people spend (money) on that
professor
so that's the reason why you want to hide your process(es)? (rethorical) Potentially several years in prison
I didn’t mean i was to spread or attack something , but for example if we or someone code a ransomware sell it and if the other one who plan to do bad things with it and not ur fault or yeah?
Pavel
Hello... I created a C++ program and compiled, program works perfectly but when i open executable file as text file some of it's content can be seen in it. So how can i create executable file in which no content can be accessed by opening it as text file?
There are some discussions about the topic. https://stackoverflow.com/questions/1648618/techniques-for-obscuring-sensitive-strings-in-c I would suggest to find software that obfuscate the strings in the binary, because doing this as part of code/design would make the development more complicated.
professor
Sure . On the other hand could u help me if its good idea to profit from x app idea?
Farhan
i want to build my github page so like to strat with c++ . what should i do ?
Anonymous
hi
数学の恋人
Why do i get error for this?
数学の恋人
error is expression cannot be used as a function
Mihail
missing a * there
Nachiket
Should be (n+1)*(n+1)
Mihail
if that's what you meant
数学の恋人
oh sorry didn't see that
数学の恋人
okay thanks it's gone now
Ak47
Hey
Ak47
Can someone help me for solve a doubt?
MᏫᎻᎯᎷᎷᎬᎠ
What's your problem?!
Ak47
int a=2; Cout <<a*++a; // 9
Ak47
int a=2; Cout <<a*a++; // 6
Ak47
What is difference?
MᏫᎻᎯᎷᎷᎬᎠ
int a=2; Cout <<a*a++; // 6
Do you know the difference between a++ and ++a?!
Ak47
Yes
Ak47
int a=2; Cout <<a*a++; // 6
I'm in doubt in this case
Ak47
When we say a*++a; a is incremented first and it become 3 and 3*3 =9
Ak47
int a=2; Cout <<a*a++; // 6
But what happens in this case?
MᏫᎻᎯᎷᎷᎬᎠ
The general point of view a++ increment the value after executing the statement So a is 2 and it will remain 2 until the cout << a*a++; is executed executed The vise versa for the first one (a*++a) It increments the value before the execution of the statement
Ak47
int a=2; Cout <<a*a++; // 6
If a is increments after statement is executed why it is gives output 6
Ak47
It should give 2*2 = 4
Ak47
MᏫᎻᎯᎷᎷᎬᎠ
I'm thinking
Guri
If a is increments after statement is executed why it is gives output 6
It works right to left a++ value is here a is 2 without increaseing then next the value of a is 3 as there is increment operator
Nikolas
compile it with warning flag -Wunsequenced and you'll see
Nikolas
warning: unsequenced modification and access to 'a' [-Wunsequenced]
Nikolas
You are into the realm of undefined behaviour
Nikolas
How ?
I don't know it depends on your ide
Ak47
I'm using decoder. Do u know about them?
Nikolas
https://godbolt.org/z/dbB8VR
MᏫᎻᎯᎷᎷᎬᎠ
gcc version 10.0.0?!!!!
Ak47
So this is wrong?
Nikolas
So this is wrong?
it is undefined behaviour, so you can make no assumptions on the result
Nikolas
This is the warning from GCC: warning: operation on 'a' may be undefined [-Wsequence-point]
Ak47
Do I think right this should give output 4?
Nikolas
are you even reading me?
Nikolas
you can make no assumptions on the result
Nikolas
because the behaviour of the program is undefined
Ak47
because the behaviour of the program is undefined
Ohh...thanx now I'm understand.
Mihail
no it really could be anything
Guri
int a=2; Cout <<a*++a; // 9
Same here as there is pre increment a becomes 3 and the value of 3 is assigned as per precedence of operator