zyn
zyn
CC#
Created by zyn on 6/26/2023 in #help
❔ how to create an array to enter user for super admin
thank you so much for the help! 😄
42 replies
CC#
Created by zyn on 6/26/2023 in #help
❔ how to create an array to enter user for super admin
ok
42 replies
CC#
Created by zyn on 6/26/2023 in #help
❔ how to create an array to enter user for super admin
I thought C and c# shared similar coding structures, so i basically just took a shot in the dark at it thinking it would work
42 replies
CC#
Created by zyn on 6/26/2023 in #help
❔ how to create an array to enter user for super admin
blazor*
42 replies
CC#
Created by zyn on 6/26/2023 in #help
❔ how to create an array to enter user for super admin
yeah for blazoer
42 replies
CC#
Created by zyn on 6/26/2023 in #help
❔ how to create an array to enter user for super admin
i have to use c# for the frontend
42 replies
CC#
Created by zyn on 6/26/2023 in #help
❔ how to create an array to enter user for super admin
so I did it all wrong, I see
42 replies
CC#
Created by zyn on 6/26/2023 in #help
❔ how to create an array to enter user for super admin
include <stdio.h> #include <stdlib.h> #include <string.h> #define NUMSTR 3 #define BUFFSIZE 100 int main(void) { char words[NUMSTR]; char buffer[BUFFSIZE]; size_t i, count = 0, slen; for (i = 0; i < NUMSTR; i++) { printf("Enter Username: "); if (fgets(buffer, BUFFSIZE, stdin) == NULL) { fprintf(stderr, "Error reading string into buffer.\n"); exit(EXIT_FAILURE); } slen = strlen(buffer); if (slen > 0) { if (buffer[slen-1] == '\n') { buffer[slen-1] = '\0'; } else { printf("Exceeded buffer length of %d.\n", BUFFSIZE); exit(EXIT_FAILURE); } } if (!buffer) { printf("Incorrect User.\n"); exit(EXIT_FAILURE); } words[count] = malloc(strlen(buffer)+1); if (!words[count]) { printf("Cannot allocate memory for string.\n"); exit(EXIT_FAILURE); } strcpy(words[count], buffer); count++; }
printf("\nYour strings:\n"); for (i = 0; i < count; i++) { printf("words[%zu] = %s\n", i, words[i]); free(words[i]); words[i] = NULL; } return 0; }
42 replies
CC#
Created by zyn on 6/26/2023 in #help
❔ how to create an array to enter user for super admin
im half way through but I think i did it wrong, I just started using c# so I'm kind of clueless with where i'm going right now
42 replies
CC#
Created by zyn on 6/26/2023 in #help
❔ how to create an array to enter user for super admin
through a array of strings
42 replies
CC#
Created by zyn on 6/26/2023 in #help
❔ how to create an array to enter user for super admin
yes, and I have to run it through visual studio so that when a user enters their username, it'll add it to the super admin privilege's
42 replies
CC#
Created by zyn on 6/26/2023 in #help
❔ how to create an array to enter user for super admin
i do not
42 replies
CC#
Created by zyn on 6/26/2023 in #help
❔ how to create an array to enter user for super admin
like what is the purpose of what I'm trying to code?
42 replies
CC#
Created by zyn on 6/26/2023 in #help
❔ how to create an array to enter user for super admin
im using visual studio for c# language
42 replies
CC#
Created by zyn on 6/26/2023 in #help
❔ how to create an array to enter user for super admin
it will check to see if the user has adm,in privileges and if they do not, will add them to the system,
42 replies
CC#
Created by zyn on 6/26/2023 in #help
❔ how to create an array to enter user for super admin
yes my bad, an arrary of strings, I want it to be where when you enter a user name itll give the user admin privileges
42 replies
CC#
Created by zyn on 6/26/2023 in #help
❔ Practice coding
I guess a website with learning resources to learn c#, my job is wanting me to work on the front end of the data and i'm trying to find websites to help understand the code and then practice
9 replies
CC#
Created by zyn on 6/26/2023 in #help
❔ Practice coding
Sorry for not being specific about my description, thats my fault.
9 replies