Luca
i need help
Anonymous
i need help
what is your problem
Luca
what is your problem
my code gives sometime segmentation error
Luca
and idk how to solve
Luca
it works like 3 times on 10
Dima
char string[nstring] and you get nstring only after this line
Dima
put that before
Luca
i know
MᏫᎻᎯᎷᎷᎬᎠ
You are a terrible doctor
Luca
you mean to do like char sample[MAX_STRINGS_SIZE], string [nstring] [MAX_STRINGS_SIZE]; THAN int nstring=0
Luca
You are a terrible doctor
i'm not a doctor
Dima
put scanf before char string
Dima
and use fscanf, it’s safer in some sense
Luca
#include <stdio.h> #include <string.h> #define MAX_STRINGS_SIZE 1024 int ricercaStringaInElencoIF(int n, char research[MAX_STRINGS_SIZE], char stringhe[n] [MAX_STRINGS_SIZE], int start, int end); int main() { int s=0; int e=0; int i=0; int nstring=0; //start, end, contatore, numero stringhe printf("Quante stringhe si vogliono inserire?\n"); scanf("%d", &nstring); char sample[MAX_STRINGS_SIZE], string [nstring] [MAX_STRINGS_SIZE]; for(i=0; i<nstring; i++)like this?
Anonymous
I am a newbi.. while(answer! ='Y' || answer! =' N' ) why this is not working?? Any other options..
Dima
bruh read the rules first
Dima
https://t.me/programminginc/217064
Dima
try to check for lower case input
Dima
tolower(answer) == ‘a'
Anonymous
i want some help
Anonymous
/warn screen photo
Anonymous
you should not spoil she community
zelika
zelika
zelika
why does it say the same
Anonymous
i guess because for every iteration you have used the same variable i
Anonymous
why does it say the same
because you use i and not one, two and other variables maybe?!
klimi
/warns @brown_enderman
Anonymous
rand is not safe. use arc4random: sudo apt install libbsd-dev #include <stdlib.h> dice[i] = (int)arc4random_uniform(6);
Anonymous
Anonymous
And you don't need stdlib.h, C++ has its own random in <random> header
yeah, I thought [s]he is using C (because of srand/rand)
Anonymous
Why is rand not safe?
it is predictable
Anonymous
Why is rand not safe?
It has poor distribution
Sher
Hi, I am working on existing github project (luamacros), as the name suggests this project uses lua (and also pascal for building app), I wanted to implement in C++ but I haven't found any C++ library that performs actions based on different keypress on a specific keyboard. Also it must use device ID of 2nd keyboard to block normal assigned keypresses and perform based on application
Sher
I know, it feels like broad subject, but at least please provide me links to useful C++ libraries, or related to Windows programming with C++, etc., I won't ask any explaination. I having been looking for almost one month already. So help would be really appreciated.
Abdelnaem
Hi guys
Sher
/notes
Sher
#rules
Sher
#best-book
Sher
#cppbookguide
Sher
#learn
Sher
#imhacker
Sher
Seriously? I thought I would get useful links....
Sher
#best
SpaghettiBlu
Hello
klimi
SpaghettiBlu
Hi
Sher
#cpp
Sher
#gcc9
Sher
#mcve
Sher
#freeprogrammingbooks
Sher
Hi, I am working on existing github project (luamacros), as the name suggests this project uses lua (and also pascal for building app), I wanted to implement in C++ but I haven't found any C++ library that performs actions based on different keypress on a specific keyboard. Also it must use device ID of 2nd keyboard to block normal assigned keypresses and perform based on application
Anonymous
are you shure?!!
Anonymous
Hello I need help please =(
Anonymous
p
hi everyone i hava a question
p
dll file on windows system will only have md not mt?
Prosvetlennii Dimas
Could someone eplain how to lock data using pthread_rwlock? I dont understand where is data stored in this struct, or its just struct with flags?
Ashish Bhushan
I am trying to run gcc on ubuntu terminal in windows through the windows subsystem for Linux
Ashish Bhushan
But getting thos error
Ashish Bhushan
Ashish Bhushan
Some files are not getting installed and error is showing
Ashish Bhushan
Also these things are the problem
Ashish Bhushan
Anyone can help?
01000001011011010100000101101110
Ashish Bhushan
I am using sudo only....running it as administrator
01000001011011010100000101101110
Also these things are the problem
There is some update going which has the lock Try removing it..then run the commands..
Ashish Bhushan
Which update??windows update or this ubuntu one?
Ashish Bhushan
Should i restart my computer?