27 Apr 2020 |
@m2322YT | that's broken as well | 19:50:35 |
dinu | Ugh it is autocomplete in most shells | 19:51:00 |
@m2322YT | if only you could remap your keyboard on the keyboard itself and not the os you're on | 19:52:15 |
dinu | But passwd should change the password for the current user by default | 19:52:42 |
@m2322YT | rip I need a new keyboard | 20:06:21 |
@m2322YT | someday | 20:06:25 |
@m2322YT | when the b virus is gone I'll be able to get a new one | 20:06:54 |
@m2322YT | supermarkets don't sell keyboards | 20:07:16 |
@m2322YT | they should | 20:07:28 |
Stefan | @m2322YT: Elextronic markets? Online? | 20:11:12 |
@m2322YT | don't have any online money only offline | 20:11:53 |
@m2322YT | don't even use a credit card | 20:12:05 |
@m2322YT | and I'm not old enough for amazon | 20:12:28 |
@m2322YT | only 16 | 20:12:42 |
Stefan | I'm kind of stuck right now. How can i ouput 10 lines from a file and after a keypress the next 10 lines? Reading the file with
while(fgets(line, MAXSIZE, fp) != NULL) {
printf("%s", line);
i++;
// printf("%5.d: ", i);
}
Works, but how can i just print 10 lines. Maybe i should take a break but yeah. If i wrap this with some while(j<10){j++} it does not work. It prints every line but it does not count j++ for some reason i don't understand right now.
| 20:15:23 |
Stefan | scratch that. | 20:16:42 |
Stefan | It counts but it does not affect the outer while loop. | 20:16:56 |
dinu | if (i % 10 == 0)
getc();
| 20:17:26 |
Stefan | modulo? | 20:17:44 |
dinu | Yes | 20:17:51 |
dinu | It should be getch() oops | 20:19:07 |
Stefan | oooooh | 20:19:03 |
dinu | * if (i % 10 == 0)
getch();
| 20:19:14 |
Stefan | I always foget module. Should keep it in mind. | 20:19:31 |
@m2322YT | the nice about c is that it isn't strict about tabbing as python is | 20:22:33 |
@m2322YT | * the nice about c is that it isn't as strict about tabbing as python is | 20:22:48 |
@m2322YT | * the nice thing about c is that it isn't as strict about tabbing as python is | 20:23:16 |
dinu | There are plenty of programs you can write in one line in C (aside #include s) | 20:23:19 |
@m2322YT | awesome | 20:23:32 |
dinu | C doesn't really care about what kind of whitespace it is | 20:23:46 |