Dima
uh
robin
ok...
Dima
stupid bot, we should ignore github links, sorry
Dima
post it with spaces
S
a opensource RPC framework
Thanks ! I’ll have a look :)
robin
go github then search: google/leveldb
robin
you can see leveldb too
\Device\NUL
FlushConsoleInputBuffer is also deprecated as Microsoft planning to migrate to VT-x
DaviChan
fflush(stdin) is UB on C standards
So one should use just 'flash' ? Or? Good undefined behavior, or the one where it might go boom with a different compiler 😂😂
Olivia
what is lambda function?
Thadeu
what is lambda function?
https://en.m.wikipedia.org/wiki/Anonymous_function
DaviChan
what is lambda function?
stams from labda calculus if you are familiar with that? Maybe from school? But it is just a projection from input to output. Like a regular function 😅 only syntax is different to oversimplify.
DaviChan
Often used as "inline functions". In a sense that you can write them in line. (Not to confuse with functions marked as inline that might be inlined by the compiler)
Olivia
oh
Olivia
thankyou (:
Tulika
Can anyone help me out in one pattern programming of c
Tulika
Spiral no.one....
Tushar
Touch
Test Auto sent
Eligible
Is there any C# group please?
alessandro
hi guy i have that slice of code: auto result = std::max_element(psk8_table.begin(), psk8_table.end());
alessandro
but psk8_table is class
alessandro
so it can't find the max element because it don't know which variable compare
alessandro
i don't know how set which variable compare
Saideep
#include<iostream> int main(){ std::cout<<"Hello World"; return0; } Code is not running in vs code. And in new terminal I have done g++ .\tut1.cpp undefined reference to 'WinMain16'
Ilya
return0; u need to add a space between "return" and "0;"
Saideep
I had given space still problem exist
alessandro
pls i need a help
alessandro
someone knows operator bool?
alessandro
example bool operator<(const exampleclass &rhs) const etc..
Otniel
o- - -o | | | | o- - -o
Otniel
o- - -o | | | | o- - -o
Write a program that displays that
alessandro
i have some thing most important to do
Otniel
Like seriously
Otniel
Can I DM you ??
alessandro
nop
Otniel
Ahaha 😅
Dima
do not post your assignments here
S
someone knows operator bool?
For such questions just go google it, it’s surely already explained multiple times in stackoverflow
alessandro
on google said how implement it
alessandro
but i don't know how suit it in my code
alessandro
bool operator<( const mysclass& lhs, const myclass& rhs){ return lhs.data < rhs.data; )
alessandro
next i need do output for(auto &x : myclass ) { } my class in reality vector of one class, and i need print highest value, inside that class
alessandro
does someone knows the way to do that?
olli
next i need do output for(auto &x : myclass ) { } my class in reality vector of one class, and i need print highest value, inside that class
do you need to find the highest value in a vector or do you want to print all elements in that vector? you can use std::max_element to find the highest value in the vector [ref] If you want to iterate over your object you need to implement begin() and end() routines that return an iterator, e.g. like this: class MyClass { std::vector<int> Data; public: decltype(Data)::iterator begin() { return Data.begin(); } decltype(Data)::iterator end() { return Data.end(); } }; void foo(MyClass &Mc) { for (const int Element : Mc) { // .. } }
alessandro
in that class contains some values
alessandro
but i need compare one value of each box
alessandro
that make impossible to use max_element, and i have use otherwise way
olli
that make impossible to use max_element, and i have use otherwise way
not really, std::max_element can use a comparator to compare instances of your class void foo(std::vector<MyClass>& MCs) { auto Max = std::max_element( MCs.cbegin(), MCs.cend(), [](const auto &L, const auto &R) { return L < R; }); }
alessandro
ahh
alessandro
thx
Anonymous
heey guys how are you ?? How do i sort nodes in doubly linked list ??
Mr
Just do bubble sort technique, just like you do in array
Anonymous
Just do bubble sort technique, just like you do in array
actually, I can sort, but I can't change the location of row objects in my mange nodes.
Mr
You mean that you can't change node data part
Mr
Or unable to link nodes
Anonymous
I didn't get it can you explain it clearly
i have manege nodes. i have lines node. I have a row list object on the a manage node where I can access the row feeds. i can't change the row list objects when I sort the manage nodes
Anonymous
You mean that you can't change node data part
i am changing the node data partition and sorting. but I can't change the object inside the node
Mr
Address of next node?
Mr
Can you send the code
Anonymous
Okk bro
Alijon
Hello everyone
Alijon
#include<iostream> using namespace std; int main() { for(float i=0.1;i<=1;i=i+0.1) cout<<i<<endl; }
Alijon
Why this program doesn't print 1 ?
Alijon
Pls help if you can
klimi
Oh you add by 0.1, it is probably because the float arithmetics you cannot say that some floats is equal to number... Might be that
klimi
It can be like 1.0000000001 and that's not 1.0
Leonardo
Guys i need help with the reading of files in C