0
Please help me check the loop
After the first loop it will appear ************************************************** printf("Transaction Code (S=sold, P=purchased, X=exit) : Invalid transaction code! *it direct show invalid cannot key in the value printf("Transaction Code (S=sold, P=purchased, X=exit) : **********************'*************************** https://code.sololearn.com/cDhlLXbl68F9/?ref=app
4 Réponses
+ 4
Line 18:
Missing return type for main function
Line 44:
Add a space before the %c specifier to consume whitespace left in the input buffer
scanf(" %c", &txn.code);
+ 2
No problem 👌
Oh one more thing, also #include <string.h> to use strcpy() 👍
+ 1
Thanks you
+ 1
Thanks for reminding me😂