fearless
there is no + after the select statement and before concat of the combobox1
Berkus
it depends on the operator _associativity_
Berkus
some operators associate left-to-righ, others right-to-left
Berkus
@themester spam in channel
Anonymous
AndrEEa
hi,
is there a way in C++ to make a function automatically called when a virtual function return?
I have a pure virtual method that will be reimplemented and I would like that at the end of the method a function will called without who reimplement the method has to call the other function at end
Isc
Isc
class A { virtual bool x() { ... } }
class B : public A { bool x() override { ... + return A::x(); } }
AndrEEa
but who reimplements the class has to call A::x() manually
Isc
AndrEEa
I already do it
AndrEEa
I would like automatize the call
Isc
well, you can create a proxy class but i wouldnt recommend it
Isc
you know, base should always be called, everyone knows that
Isc
if im overriding your method, ill call base by instinct
Berkus
although it's a LOT of boilerplate just to "automatize" the call that should have been explicit always (remember, in C++ explicit is better than implicit)
Isc
struct MyClass
{
bool x();
}
struct ImplicitBase
{
virtual bool x();
}
template<typename TProxied>
struct MySuperProxy
: public TProxied
, public ImplicitBase
{
bool x() override
{
ImplicitBase::x();
TProxied::x();
// return what?
}
}
AndrEEa
btw what "override" means exactly? what if I omit the string?
Isc
MySuperProxy<MyClass> lol;
lol.x();
Isc
AndrEEa
yes but it's optional I see
AndrEEa
I never used it but I will
Anonymous
AbhiJah Abusuani:
I want to host online radio station, any help please
Berkus
yes but it's optional I see
it's recommended to use it on c++11 and later projects; it's optional only for compatibility with old code (and because it could be a non-override function overload with the same name)
Anonymous
online radio station???
Anonymous
i done such project in php
Anonymous
but how you get live stream?
Anonymous
Anonymous
Anonymous
Sending decoded file frames
Anonymous
its not working
EL Màhjoub
i want your help please ⚠️
Write a program that reads a file named notes.txt that contains on each line a note (float) followed by a semicolon and a student's name and writes a file named birthday.txt that contains the same information with each note increased by 2 points (but not more than 20).
Here is an example of a notes.txt file. Note that the file ends with an end of line as the last character.
12;albert
8;martine
11;marguerite
19;sofia
Programm in C
EL Màhjoub
someone can help me
Liam
https://gist.github.com/94f168dae95b61f101a285e7f4299dfa
Today's toy.
Berkus
just use boost::algorithm::starts_with
Berkus
http://www.boost.org/doc/libs/1_65_1/doc/html/boost/algorithm/starts_with.html
Berkus
http://www.boost.org/doc/libs/1_65_1/doc/html/boost/algorithm/ends_with.html
Berkus
case-insensitive versions, too http://www.boost.org/doc/libs/1_65_1/doc/html/boost/algorithm/istarts_with.html
Berkus
http://www.boost.org/doc/libs/1_65_1/doc/html/boost/algorithm/iends_with.html
Liam
Yang
Anonymous
anyone here know shell scripting
Berkus
Anonymous
bash
Anonymous
i m not sure if it is sh or bash
Anonymous
echo 'enter the time in seconds'
read seconds
$hr=$seconds/3600
$a=$seconds%3600
$min=$a/60
$sec=$a%60
echo "the converted time is $hr:$min:$sec"
how to correct this script for converting the given seconds into hr:min:sec format
anyone know shell scripting
Berkus
http://faculty.salina.k-state.edu/tim/unix_sg/bash/math.html you can use expr or (( ))
Anonymous
👍 😊
Francesco
Every 10 person gets 1723 USD? U wot m8?
Liam
@themester spam report.
Anonymous
Anonymous
I have to delete any message every day
Anonymous
I'm tired off
Anonymous
It's a problem to add an administrator that I can not know if I can trust him 😆
Liam
Well, that's the logical dead loop.
Francesco
Anonymous
Anonymous
I do not undestand any user that whats to be free but with systemd
Liam
If the worst situation, which is brought by an attempt, is acceptable and repairable, then you could give a try.
Francesco
Anonymous
Anonymous
Probably you can try voidlinux
Francesco
Probably you can try voidlinux
there are some project of arch linux systemd free but are extreme instable. I switch to gentoo because it was more easy than erase systemd from arch. Btw systemd isn't the that bad
Anonymous
Anonymous
Gentoo is for anarchist people who don't want any stability in his life
Anonymous
ANY
Anonymous
😆
Anonymous
If you use Gentoo I give you my congratulations
Francesco
the perfect person for administrator
Francesco
Anonymous
Anonymous
I only use voidlinux at both
Francesco
great distro void if you want a systemd free system
Anonymous
Yeah 😆
Anonymous
the thing that spend more resources of my thinkpad is the touchpad
Francesco
btw @themester can't you just block all link to other channel with some kind of groupmanager?