Anonymous
Unfortunately I don't understand Spanish :(:(
Edurolp
I tried to translate some thing I had to do for the class, it has 4 parts but you can start with the first one
Edurolp
https://hastebin.com/ekuvariquc
Edurolp
if there is something you don't understand just tell me
Edurolp
you should be able to test your code with this main.cpp example: https://hastebin.com/sotolepixi.cpp
Anonymous
Oh thank you very much for your help
Ŧu尺kano
Ŧu尺kano
hey guys
ENOENT
H[ae]llo
Ŧu尺kano
i want to reuse "char wort" from "eingabe()" in "vergleichen()" how do i do that
Ricardo Arturo
Declare the variable globally
Ŧu尺kano
Ricardo Arturo
Return the pointer from eingabe
ENOENT
i want to reuse "char wort" from "eingabe()" in "vergleichen()" how do i do that
not possible, because it does not exist unless you are inside the function
Ricardo Arturo
And also, you have not called eingabe
Ricardo Arturo
Thus wort is a null pointer
Ŧu尺kano
And also, you have not called eingabe
how do i do that im a noob lol started programming 2 weeks ago
Ŧu尺kano
Return the pointer from eingabe
thats what i thought but how can i return a character
Ricardo Arturo
You need to do more learning
Ricardo Arturo
By reading
Ricardo Arturo
Young padawan
Ŧu尺kano
ENOENT
also your while loop never returns
ENOENT
learn about boolean
ENOENT
and a lot of other stuff
Ŧu尺kano
char Eingabe() instead of void and return wort; ?
Ŧu尺kano
i will break the loop when the time comes 😆
ENOENT
if you want to make this less frustrating, I would advise you to pick up a good C++ book. But if you like learning by doing, sure.
Ŧu尺kano
ENOENT
well what do you want to return from the function
Ŧu尺kano
char wort;
Ŧu尺kano
to use it in the next function
Ŧu尺kano
so i wanna return a string
ENOENT
have you turned all compiler warnings on? Should give you a hint, probably.
ENOENT
yeah but no help
I thought I'd let you figure this out yourself but basically you need to return a pointer
Anonymous
@notafile You're everywhere
Anonymous
(of the programming language groups)
Top T : Trollface Was Real
Is there any way to divide two numbers using hardware?(logic gates)
Top T : Trollface Was Real
Other than that?
Top T : Trollface Was Real
I don't want successive Subtraction
Top T : Trollface Was Real
Yes
👍
Evgenii
Other than that?
Check Wikipedia
Top T : Trollface Was Real
Top T : Trollface Was Real
Compare and subtract
I'll look into it thanks )))
Abde
Hello!
Abde
Ŧu尺kano
Ŧu尺kano
I thought I'd let you figure this out yourself but basically you need to return a pointer
and yes i managed to access the pointer in the second function But i need the data that's been pointed at
ENOENT
then dereference the pointer :)
Ŧu尺kano
then dereference the pointer :)
jo thx I'm checking that up
ENOENT
I've said this before, but reading a C tutorial would probably help you a lot
Russell
https://projecteuler.net/
Evgenii
project Euler is good
It's more about math than programming
Evgenii
I likehackerrank
Russell
True, good way to learn algos tho
Anonymous
https://projecteuler.net/
Thanks, this seems interesting
Anonymous
I likehackerrank
Will be looking at that too
many
https://projecteuler.net/
It's kind of maths based
Russell
It's kind of maths based
Yes but it requires lots of knowledge about algos, and the Math is pretty basic at the beginning
Anonymous
hello everyone
Russell
Hello!
Anonymous
has somebody used the libev libraries?
Eu
I have used it in the past
Anonymous
can it monitor the file in /proc?
Anonymous
i once used inotify to monitor the file, it worked well for files that were not in /proc, i were able to see the changes of the files. but it couldnot work for the file in /proc
Anonymous
so i want to use libev,bt i do not know wheater it will be working
Anonymous
anybody know how to monitor the system's change in linux? such as the file change, weather usb port is into ....
Anonymous
oh, i found the solution about monit the usb port
Anonymous
using the netlink