Anonymous
Anonymous
Anonymous
Lol
Vineet
I don't what does the above text means. I just clicked on that text it was sent automatically
Dima
people can’t read, huh?
Vineet
/blue_text_must_click
Vineet
Sorry my bad! Was just going through earlier chats trying to understand the rules of this group and just clicked onto it out of curiosity. I'm new here
Artöm
Read the rules and be fine
Prosvetlennii Dimas
I thought that C standard guarantees that char is not less that 1 byte.
Anonymous
Dima
bruh
Serenity
How do I increment a pointer to a pointer ?
Anonymous
Anonymous
void **ptr=whatever;
ptr++;
Serenity
but if the pointer is to a struct field
Anonymous
Bruh that's just an example
Anonymous
How am I supposed to know the type
Serenity
I'll explain it explicitly
Serenity
C
Artöm
Pointer to pointer to void is incrementable as any other pointer to pointer
Serenity
I have two structures : 1. product ( with all its fields but they are irrelevant ) 2. super_market - and one of its fields is product ** product _list ( a pointer to a product pointer ) , I want to go over **product list
Serenity
It's kind of baffling me
Serenity
as far as I understand it should contain all products' addresses that are currently in the store
Serenity
Hmm
Serenity
If I use super->product_list , it retrieves the address of the product
Serenity
How do I move on to the next pointer exactly ?
Serenity
Don't I have to add "super" before?
Serenity
How does it know I am referring to that pointer
Serenity
Okay , that sounds like a good idea
Anonymous
Wait what
Anonymous
You said C and you asked C++
NXiss7
I solved a problem today.
I wonder how other people would solve this.
You need to map English alphabet (upper and lower case), space and dot chars to a matrix randomly in C, it's dimensions are given by user and is guarenteed to be larger than 54.
Anonymous
Anonymous
Declare an array and add the numbers to it to make sure there are no duplicates
NXiss7
Anonymous
And?
Just reading. Very high chance I misunderstood the question
Nameful
Anonymous
Why rand()?
48 + rand() % 10 is one way to get ASCII values for numbers
Anonymous
Since 0 is 48 in ascii
Anonymous
You could use this to get characters at random and fill the array
Nameful
Cooooooooooom
Anonymous
Wait I got it
Anonymous
Why even do all this?
Anonymous
Make an array {-, ,A,B...,Z,a,b,c,....z}
Anonymous
for each element go through the array
Get a random number from 0-54
Swap the element with the element the random number gave
Example:
for(int a=0; a<55;++a)
swap(arr[a],arr[rand()%54]);
Anonymous
Remember to set arr[55] = NULL
Anonymous
Or 0
Anonymous
Then you can just printf the string
Anonymous
Well NXiss7 there you have it
Anonymous
A solution that always finishes in O(n)
Dima
that spam
NXiss7
Dima
#ot bruh
Anonymous
One more — and you banned
Anonymous
I’m learning how to use chat
Anonymous
How do I get help
Dima
with trading and shit - not there
Anonymous
It’s not trading I need help to code automated bot
Anonymous
Someone try to speak about trade all I need is steps to make auto bot
Anonymous
Who can help
Anonymous
Anonymous
And you're asking about mql5
Anonymous
That's the problem
Anonymous
Okay apologies
Anonymous
Thanks for the help
Anonymous
Dima
idc
Brian
professor
hey guys, is it possible to change the default image address in binaries? I just want to remove the null byte
cl vulnerable_service.cpp /MT /GS /link /FIXED /BASE:0x400000 /NXCOMPAT:NO /DYNAMICBASE:NO /SAFESEH:NO
Anonymous
Anything is possible
Tanin
Anyone who knows tree & graphs inbox me
Anonymous
#ot
Anonymous
Nameful
PO
😊
Anonymous
Bhargav
/get cbook
Serenity
printf(adding_product_number);
scanf("%d", quantity);
new_product->available = quantity;
printf(adding_product_price);
scanf("%lf", price);
new_product->price = price;
Serenity
it throws me an error of debug assertion failed