0

Why not getting string output

Not printing final string may be not asign string properly https://code.sololearn.com/cWqBZcmSfqZe/?ref=app

9th Aug 2020, 5:09 PM
Samarendra Singh
Samarendra Singh - avatar
9 ответов
+ 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😉😉
10th Aug 2020, 8:50 AM
ƬIMΛ
ƬIMΛ - avatar
10th Aug 2020, 7:11 AM
Samarendra Singh
Samarendra Singh - avatar
0
~ swim ~ input=abcAD123₹# If pad=3 Output should be = defDG456₹# Just try to encrypt password by adding padding to its value.
10th Aug 2020, 9:11 AM
Samarendra Singh
Samarendra Singh - avatar
0
Carlo thanks for lib function tips
10th Aug 2020, 9:11 AM
Samarendra Singh
Samarendra Singh - avatar
10th Aug 2020, 9:23 AM
Samarendra Singh
Samarendra Singh - avatar
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
10th Aug 2020, 9:28 AM
Samarendra Singh
Samarendra Singh - avatar
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.
10th Aug 2020, 9:32 AM
Samarendra Singh
Samarendra Singh - avatar
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
10th Aug 2020, 10:16 AM
Samarendra Singh
Samarendra Singh - avatar
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.
10th Aug 2020, 10:57 AM
Samarendra Singh
Samarendra Singh - avatar