BinaryByter
no you don't
BinaryByter
BinaryByter
you don't
Anonymous
right
Next time use std::fill
BinaryByter
Next time use std::fill
Don't tell him about modern programming. I don't want to answer dumbass questions
Vincenzo
Next time use std::fill
i needed to use memset!
klimi
can i post homework?
BinaryByter
can i post homework?
PM me, my love ❤️
Vincenzo
my goal was to check if the function l modified the pointer //g++ 5.4.0 #include <iostream> #include <cstring> #include <stdio.h> #include <new> int _size=10; int *_pArray; void p (int arr[], int size){ for (int n=0;n<size;n++){ printf("%d - %d\n",n, arr[n]); } } void l(int *data, int *len){ memset(data, 0, sizeof(int)*_size); } int main(void) { printf("Hello, world!\n"); _pArray = new int[_size]; memset(_pArray, -1, sizeof(int)*_size); p(_pArray,_size); l(_pArray, &_size); p(_pArray,_size); return 0; }now i am sure that it does :D
Anonymous
int *len in function l
Anonymous
Hello
Vincenzo
What does len do?
changed to void l(int *data, int *len){ int a = *len; memset(data, 0, sizeof(int)*a); }
Vincenzo
now it does something
Vincenzo
What does len do?
it was there because l is a function from another program
Vincenzo
obviously it is not called l but this was just a test
Anonymous
Still got no idea why you are using memset
Vincenzo
Still got no idea why you are using memset
i am empying an array at the begin of my function
Anonymous
Then use fill or for loop
Anonymous
Can anyone over here explain me what are he things i must know before starting to learn ethical hacking. I dont want to be an script kiddie. thanks
Anonymous
memset is not designed for that
Anonymous
It would work but it's not correct
MᏫᎻᎯᎷᎷᎬᎠ
Wht
Vincenzo
memset is not designed for that
oh i thought it was used for this, so a for loop is better?
MᏫᎻᎯᎷᎷᎬᎠ
Heelp
Anonymous
need some translation?
Vincenzo
yep
ok thank you for the correction :)
Anonymous
suggest me a book for assembley
BinaryByter
suggest me a book for assembley
look at the compiler I wrote
Anonymous
look at the compiler I wrote
can u suggest where can i find it? i am new on telegram
BinaryByter
https://github.com/Wittmaxi/GerCompiler
Anonymous
https://github.com/Wittmaxi/GerCompiler
sorry but i dont get it. i don't need a compiler i want some source to learn assembley programming. i have no knowledge about it.
Anonymous
do you know C++?
yes a bit like displaying output, working with functions and arrays one dimensional
BinaryByter
Do you know C?
Anonymous
Do you know C?
nope but it looks similar to c
Do you know C?
I think that if you know C++, you know C
BinaryByter
nope but it looks similar to c
yea, start by learning C++
Anonymous
Do you know C?
i know how to work with conditional statements and loops as well
BinaryByter
yes
but i wanted to see wether he's good enough to learn assembler
BinaryByter
Learn C++
BinaryByter
and then
BinaryByter
go to google.com
BinaryByter
and type in "assembler tutorial #1"
Anonymous
ok
i know how to work with conditional statements and loops as well
But learning C is learning pointers better than with C++
Anonymous
Assembly is not easy to learn without any base knowledge
BinaryByter
yea
he should look at goto as well
I think you should learn C before C++
BinaryByter
NO
BinaryByter
HORRIBLE IDEA
BinaryByter
will only teach you bad habits
Anonymous
i will go with c++
Anonymous
Pure C is full of hacking
BinaryByter
Pure C is full of hacking
pure C is just horrible
Anonymous
juxt suggest me where to start off with
HORRIBLE IDEA
I did it and i think it was good for my development as programmer
BinaryByter
Anonymous
Try codeforces
Alignant
pure C is just horrible
What do you mean by pure? No third libraries for memory control? Or no C++?
Anonymous
yep c++ but what are the concepts i have to learn
Anonymous
any ebook wud b helpful
juxt suggest me where to start off with
C, you should start with the base
BinaryByter
BinaryByter
C is not base
C is just bad