0
Why not getting string output
Not printing final string may be not asign string properly https://code.sololearn.com/cWqBZcmSfqZe/?ref=app
9 Respostas
+ 2
The error is because of You don't include ctype.h header file in which isdigit() predefined function Declared
Use Header file
#include<ctype.h>
After it There is no Error😉😉
0
~ swim ~ Carlo Sonic John Wells HonFu ★ Don’t Know ★ Ahmed Mahmoud Ace MCGAmedCoder gamerArtist AJ #L1G3
~ swim ~ i tried with another approach can u see once again but same problem occurs
https://code.sololearn.com/cl5zSolGtCXr/?ref=app
0
~ swim ~ input=abcAD123₹#
If pad=3
Output should be = defDG456₹#
Just try to encrypt password by adding padding to its value.
0
Carlo thanks for lib function tips
0
~ swim ~
Edited https://code.sololearn.com/c999GCYvVwje/?ref=app
Now core dumped warning
0
~ swim ~ i had do digit if gets >9 then digit%10 and it will be under 0 to 9
And for lower char i put char%28+65 it may be also within the char value loop
and also done for upper char
0
~ swim ~ sorry and thanks.
Now theres no error but calculation error its not working as i thought .
edited:but it was working for digit and special char but now both are not working.
0
U haven't to add remaining 1
It will work like
0 1 2 3 4 5 6 7 8 9
If enter 9 and pad =3
Then it will 12 , 12%10=2
So now start counting from 0
From pad is 3 therefore 2 is output sme method is used for char also
0
And i stuck on the error so i did not focus on useless loop
edited:
the special char loop is not useless is for checking if any specific char occurs then check from loop and place at string as output.