[Beginner] How do I save previous input in variables/arrays?
Jakob Petsovits, leading KDE's "We Care About Your Input" goal, explains how things are going, the many aims achieved, and where the project goes from here.
https://blogs.kde.org/2026/05/03/gestures-in-graz-and-beyond/
#hardware #input #peripherals #tablets #joysticks #accessibility
[Help with C] Is it possible to let the user define the scope of an array and the values of its elements?
I am just learning arrays and I am experimenting. This one simply won’t work. I am trying to have the user define (1) how many elements an int array can hold and (2) what the value of each elements is. The program now outputs random integers. Maybe this isn’t even possible, but I’m a complete beginner just playing around for the fun of it. XD
#include <stdio.h>
int main(void) {
int scope,elementnr,i,elementvalue,j;
scope = elementnr = i = elementvalue = j = 0;
int array[j];
printf("How many elements should your ARRAY hold: ");
scanf("%d", &scope);
getchar();
for (i = 0; i < scope; ++elementnr, ++i) {
printf("Enter the value of element number %d: ", elementnr + 1);
scanf("%d", &elementvalue);
getchar;
j = elementvalue;
}
printf("You have created an ARRAY that holds %d elements and you have assigned the following values:\n", scope);
for (i = 0; i < scope; ++i) printf("%d\n",array[j]);
}
[Help with C] Any way NOT to display the INPUT of getchar()?
I may be stupid but...
Can someone explain to me, what's the reasoning behind Reddit sending EVERY KEYSTROKE in a comment as a separate API POST request, instead of waiting until you clikc "Send" and send the whole text at once?
This approach results in 200 ms input lag when typing, which is super annoying and distracting