Quote:
|
Long overdue, but thanks.
|
Also: when this is not “a learning exercise,” remember that there are many contributed libraries of software … for every programming language that exists … where other(!) people have confronted these “problems that we all have,” and solved them very well. Including all(!) variations of “credit-card number validation.”
It’s very important to realize, when you are first “learning to program in [X],” that today you are not “alone.” Extremely the opposite. Therefore, when you confront any problem, your first assumption should be that someone else has already done it. (And that you can freely “sneak a peek” at their source code. In due time, you might make your own contribution …) |
Thanks. I was trying not to, but probably better than becoming frustrated.
|
Quote:
Initially I was not having libcs50 library Downloaded https://github.com/cs50/libcs50/arch...gs/v11.0.2.zip Code:
$ unzip.exe libcs50-11.0.2.zip >/dev/null 2>&1 if( 0 == x || 0 > i ) { break; } to prevent core dump issue I have taken base version from https://github.com/jhustles/c_verify...editCardType.c Code:
#include <cs50.h> $ /usr/bin/gcc.exe -g -Wall ValidateCardType.c -o ./a.out -lcs50 |
All times are GMT -5. The time now is 03:52 PM. |