#Wrote a password checker and generator, looking for feedback to improve it (working)

7 messages · Page 1 of 1 (latest)

late baneBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

sour tangle
#

passwortChecker is spelt with "t" on purpose

#

;compile C

brittle viperBOT
#
Compiler Output
<source>: In function 'main':
<source>:14:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   14 |     gets(password);
      |     ^~~~
      |     fgets
<source>:16:11: error: implicit declaration of function 'time' [-Wimplicit-function-declaration]
   16 |     srand(time(NULL));
      |           ^~~~
<source>:6:1: note: 'time' is defined in header '<time.h>'; this is probably fixable by adding '#include <time.h>'
    5 | #include <stdbool.h>
  +++ |+#include <time.h>
    6 | 
<source>:21:9: error: implicit declaration of function 'Sleep' [-Wimplicit-function-declaration]
   21 |         Sleep(1000);
      |         ^~~~~
Build failed
sour tangle
#

;compile C++

brittle viperBOT
#
Compiler Output
<source>: In function 'main':
<source>:14:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   14 |     gets(password);
      |     ^~~~
      |     fgets
<source>:16:11: error: implicit declaration of function 'time' [-Wimplicit-function-declaration]
   16 |     srand(time(NULL));
      |           ^~~~
<source>:6:1: note: 'time' is defined in header '<time.h>'; this is probably fixable by adding '#include <time.h>'
    5 | #include <stdbool.h>
  +++ |+#include <time.h>
    6 | 
<source>:21:9: error: implicit declaration of function 'Sleep' [-Wimplicit-function-declaration]
   21 |         Sleep(1000);
      |         ^~~~~
Build failed
late baneBOT
#

@sour tangle

Please Do Not Delete Posts!

Please don't delete forum posts. They can be helpful to refer to later and other members can learn from them. In the future you can use !solved to close a post and mark a post as solved.