Eu
well, I've only used it to monitor network sockets :) but I don't know what could give you all that stats, I think that you have to recollect from different logs: dbus, syslog...
Anonymous
i just want to monitor some thing about the system, such as the log file, the cpu using info, usb port and the traffic of network ...
ENOENT
the reason you can't monitor /proc/ is because it's not real
ENOENT
those are not actual files
ENOENT
the values are only actually calculates once you access the file
Evgenii
That's not c++
Evgenii
I'm pretty sure
Ricardo Arturo
That is Javascript, I'm pretty sure. And shitty too
Ricardo Arturo
That's not c++
Is that your real pic? You seem quite familiar
Evgenii
Is that your real pic? You seem quite familiar
It is and pretty sure that I just look like someone you know
Anonymous
#RR DARK CLEAN PS: THERE WILL BE ONLY DARK VIGILANTE STUFFS. @customWallz
Top T : Trollface Was Real
is @durov 's channel dead???
Secu
is @durov 's channel dead???
No, ask and we will try to help with your problem
Top T : Trollface Was Real
😅
Top T : Trollface Was Real
There are no new posts...
Abde
There are no new posts...
Yesterday he posted sth
Ŧu尺kano
How can i compare a single letter with all letters of a word Letter by letter #Hangman C
Ŧu尺kano
I tried it with strncmp But it compares whole string with one character
ENOENT
just iterate through
Ŧu尺kano
With strncmp? I tried But it compares all letters before either Not just a single one
ENOENT
just compare each char
Ŧu尺kano
Yeah I know But how can i do it in the simplest way
ENOENT
just loop through, and compare each value
ENOENT
why
Ŧu尺kano
Bc u look like one
Ŧu尺kano
And im german
Ŧu尺kano
I dont wanna struggle with english
ENOENT
Bc u look like one
wat, isn't me. Am german though.
Ŧu尺kano
Ŧu尺kano
Or wait Seems like other languages are allowed here
ENOENT
Lol. Ok Can i pm you?
no, but thanks for asking
Ŧu尺kano
no, but thanks for asking
Hm ok Also ich hab ein dynamisches array das ein wort enthält Also ein array entspricht einem wort Nun will ich einen Buchstaben mit jedem einzelnen Buchstaben des worts einzeln vergleichen Problem ist Ich hab iwie keinen Zugriff auf jeden Buchstaben vom array
ENOENT
oh, okay, dynamic array
Ŧu尺kano
Ja
Ŧu尺kano
Das wort wird aus einer externen text datei gelesen
ENOENT
hard to say more without knowing the implementation of the array
Ŧu尺kano
Ŧu尺kano
Ŧu尺kano
Here i read a word by random
Ŧu尺kano
Here i wanna compare letter with word
ENOENT
the thing is, you can not really compare a character to a string. You can just check if a character is *in* a string
Ŧu尺kano
That is actually what i want to do If character is in a string or not
Ŧu尺kano
If true Display character Else ...
Eu
strchr could be your friend here
Edurolp
How can i compare a single letter with all letters of a word Letter by letter #Hangman C
you can do something like this: std::string s = "word"; char c = 'c'; if(s.find(c) != std::string::npos){ // Here you found the letter }
Edurolp
i used to do that in a hangman game that i had to do some time ago
Edurolp
here you have the function that i used to check if a letter is inside the solution
Edurolp
https://github.com/i32ropie/Redes/blob/master/p2/partida.hpp#L121-L143
Edurolp
actually, the important thing for you is https://github.com/i32ropie/Redes/blob/master/p2/partida.hpp#L131-L142
Edurolp
I used a do while because maybe you try to find the word: "programming" and you type "g", so you have to take care of all "g"s you find in the string
Ŧu尺kano
Thanks a lot You programmed it on c++ ?
Edurolp
yep
Edurolp
it is an online hangman
Edurolp
when you compile it, you get a server executable and a client executable
Edurolp
and you can play alone or against ppl
Anonymous
do yall help with beginner c++ programmers or just resp: rtfm ;P
Edurolp
it depends
Edurolp
on what you ask and how you ask 😆
Anonymous
ok i dont want to rtfm i want ppl to do my work for me
Edurolp
then rtfm
Anonymous
haahah jkjk
Edurolp
xDD
Anonymous
lmao
Anonymous
im trying to do c++ but using what i learn in this book and putting it into a command line app passing different chapters and related input as parameters to program, basically because the book doesnt go over argc argv at all
Edurolp
let me get some code for you
Edurolp
http://www.gnu.org/software/libc/manual/html_node/Getopt.html
Edurolp
that's how i have always done it
Anonymous
yea i saw a ref to getopts today
Edurolp
if you wanna see it in practice check this .cpp file: https://github.com/i32ropie/FSIV/blob/master/p2/vseg.cpp#L22-L43 .hpp file: https://github.com/i32ropie/FSIV/blob/master/p2/vseg.hpp
Edurolp
I used there a struct
Anonymous
ive only used python and x86 asm really
Anonymous
okay
Edurolp
with the params I was interested in