LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Search Forums
User Name
Password

Notices


Showing results 1 to 6 of 6
Search took 0.02 seconds.
Search: Posts Made By: teckk
Forum: Programming 12-17-2022, 05:24 AM
Replies: 19
Views: 884
Posted By teckk
https://codereview.stackexchange.com/questions/222...

https://codereview.stackexchange.com/questions/222349/credit-card-validation-in-c...
Forum: Programming 12-16-2022, 02:27 PM
Replies: 19
Views: 884
Posted By teckk
Ok, to put all of that into one c file, so that...

Ok, to put all of that into one c file, so that you can look at it, and study it, without the need to include header files from a different location, and to see what it is doing.

aaa.c
#include...
Forum: Programming 12-16-2022, 01:59 PM
Replies: 19
Views: 884
Posted By teckk
Oh ok, get_long is here, finally had a chance to...

Oh ok, get_long is here, finally had a chance to look at it.

https://github.com/cs50/libcs50/blob/v11.0.1/src/cs50.c
Line 369
Forum: Programming 12-15-2022, 04:12 PM
Replies: 19
Views: 884
Posted By teckk
I replaced: //x = get_long("Number: "); ...

I replaced:
//x = get_long("Number: ");
printf("Number: \n");
scanf("%d", &x);
And it compiled and runs.
./test
Number:
12345678
INVALID
Forum: Programming 12-15-2022, 04:07 PM
Replies: 19
Views: 884
Posted By teckk
I downloaded that header file from here ...

I downloaded that header file from here
https://raw.githubusercontent.com/cs50/libcs50/main/src/cs50.h

I included it with
gcc test.c -o test -I/home/me/

And sure enough
gcc test.c -o test...
Forum: Programming 12-15-2022, 03:53 PM
Replies: 19
Views: 884
Posted By teckk
Line 40 x = get_long("Number: ");

Line 40
x = get_long("Number: ");
Showing results 1 to 6 of 6

 

Didn't find what you're looking for? Try Google:


  



All times are GMT -5. The time now is 06:39 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration