AlexGamer
Where can I find it
AlexGamer
Any ebooks?
Dima
Any ebooks?
#googleit
klimi
Any ebooks?
!warn "Any ebooks?"
AlexGamer
Ok
Anonymous
Anyone up ?
Anonymous
Ebook
Anonymous
?
Anonymous
Anyone here believes that Google is spying on us via our Phone's microphones ?
Anonymous
BinaryByter
What is this shet
my toy kernels memory management
BinaryByter
Mihail
maxix
What's that?
Mihail
The tire brand?
BinaryByter
no
BinaryByter
the toy kernel
Anonymous
Lol
Gianmarco
Hai guys, could someone help me with a string s problem in C?
BinaryByter
this is why you should not teach C
BinaryByter
but yea, just ask
Gianmarco
Im a student 😂
Gianmarco
Should i pm you to prevent flood? Or i can post here
BinaryByter
yes, but your uni shouldn'T teach you C
Gianmarco
yes, but your uni shouldn'T teach you C
I think that its a dead language for what people said me
Francisco
I think that its a dead language for what people said me
It's not, but it's used in very specific areas
Mihail
I think that its a dead language for what people said me
It still has some uses, but they aren't common
Mihail
So it's not a general-use language anymore
Mihail
You're better off with C++ or Java or something like that
BinaryByter
And it is full of stuff that is just too hard to teach to people who just started programming
BinaryByter
handling strings in C is bloody difficult
Gianmarco
Btw, i need to create a function that take a string as input, creates a new string but with the input "moved" EX my input Is ABC, It creates a new string with CDE as result
BinaryByter
for every character in array: character = character + size of string
BinaryByter
and then return that array
Gianmarco
I made this
Gianmarco
void crypt(char *string, char *stringf) { int i, t; t = strlen(string); for (i = 0; i <= t; i++) { stringf[i] = string[i] + 2; } }
BinaryByter
yes
BinaryByter
void crypt(char *string, char *stringf) { int t; t = strlen(string); for (int i = 0; i <= t; i++) { stringf[i] = string[i] + 2; } }
BinaryByter
use this
Gianmarco
But It returns strange characters
BinaryByter
yes
BinaryByter
look at the ascii table
Gianmarco
ABC
Gianmarco
C Ïê÷ D :tû E Ïê÷
BinaryByter
i'll need to see the full code
Gianmarco
Ok
Gianmarco
I ll post through pastebin
Gianmarco
https://pastebin.com/s1RseEFq
BinaryByter
lol you use a caesar chiffre as encryption
Gianmarco
?
Gianmarco
Its a Little program for training for the exam, There are all the function we have to use, for my actual knowledgement that Is the only method i know
BinaryByter
void crypt(char *string, char *stringf) { char [] int i, t; t = strlen(string); for (i = 0; i <= t; i++) { stringf[i] = string[i] + 2; } }
BinaryByter
this won't compile
BinaryByter
try not printing it to a file
BinaryByter
and instead to your screen
Mihail
void crypt(char* string, char* stringf) { int t = strlen(string); for (int i = 0; i < t; i++) { stringf[i] = string[i] + t; } }
Mihail
This should work I think
Mihail
But I don't see why the previous one you had wouldn't
BinaryByter
/ban
Mihail
So I think the issue is somewhere else
Gianmarco
So i ve to try to use the function without print info file?
Gianmarco
Without pointers
BinaryByter
Without pointers
strings without pointers are like cake without cake
Gianmarco
Oh i failed to read a previous message
Gianmarco
i made some experiments
Gianmarco
Mihail
So it's working
Gianmarco
without the "string[i] + 2" it shows the correct string
Mihail
Now just add t
Gianmarco
Mihail
Try with < t
Gianmarco
same
Mihail
And terminate it
Gianmarco
random char are displayed