Anonymous
If you want real brain exercise — go to cppquiz.org
Tekipeps
1
why not -1?
Anonymous
why not -1?
Because 1 is the right option :)
doordarshan
Okay
Engineer
Why you use c-style output in c++?
This is like a job test. So it has all that fun🤓
Engineer
If you want real brain exercise — go to cppquiz.org
That's good sharing @unterumarmung
Hermann
is possible get last element of pointer in c++?
Talula
is possible get last element of pointer in c++?
I would love to understand what you mean by that.
Anonymous
Hermann
I would love to understand what you mean by that.
i received uint8_t * pointer, but the size of the data pointed to by the pointer is at the end
Talula
i received uint8_t * pointer, but the size of the data pointed to by the pointer is at the end
I am still unavailable to understand what you’re talking about… pointer is limitless, size you set for a pointer is just memory allocation, you can go back and forth.
systemQuery
The query does not fail with wrong credentials, it returns an empty result set. To determine whether a statement returns a result set, call mysql_field_count().
int numrows = mysql_num_rows(res); int col = mysql_num_fields(res); Ok so i m getting some alphanumeric value when i print result set in console and int count = mysql_field_count(conn); shows 9 (which is total # of col. in table) but the issue is even on invalid email and password it shows login successful
Hermann
but i dont know vector in receiver side
Talula
Hermann
What do you mean by that?
data are stored in std::vector and i serialize it, in receiver side i deserialize this vector and i need to know size of vector
Mar!o
data are stored in std::vector and i serialize it, in receiver side i deserialize this vector and i need to know size of vector
Pointers do not contain the size of the data. You can either pass the size or a pointer to the end: std::uint8_t* begin = ..., *end = begin + size; std::ptrdiff_t size = end - begin;
Jasur Fozilov 🐳
What is cmake used for? What are the advantages?
Mar!o
What is cmake used for? What are the advantages?
Cross platform project configuration if you use CMAKE you can generate build files for all plattform so it's an easy way to write and build cross platform code
Yuichi
i think we need auto-clean
Sukhrob
hi everyone. I need Daniel Liang's 'Introduction to programming with C++ with algorithms and data structures' book. whoever has an electronic version of this book can should send it to my account. (sorry my english)
Anonymous
Lakshay
/getcbook
Lakshay
/getcbook
Anonymous
/getcbook
/get cbook
Lakshay
/get cppbookguide
Engineer
/get cppbookguide
Yuichi
ez dude
Anonymous
while(-9!=0)
It's not what he wrote
Yuichi
It's not what he wrote
i thought he about while
Merve
hello everyone, I want to read 3 bits of 1 byte for example this is for 1 bit read, but ı want to read 3 bit if (0x12 & (1 << 1))
Merve
For example ı want to see and read that 0. Bit is 0, 1. Bit is 1, 2.bit is 0
Merve
Oh so, if(0x12 & 0b111)?
klimi
um if you want to read 3 bits then 0x12 & 0b111 if you want te read 3 bites separatedly then you need to use bitsift or mask each element0x12 & (1 << 1)) 0x12 & (1 << 2))... etc
Merve
if( (ch & (0<<2)) & (ch & (0<<1))&(ch & (0<<0)))
Merve
ı tryed this but not successfull
Muhammet
Hello any expert in ubuntu
Yuichi
idk
Anonymous
why do i get this? kernel/samsung/universal8895/net/netfilter/xt_qtaguid.c:1195:27: error: address of array '(*el_dev)->name' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion] if (unlikely(!(*el_dev)->name)) { ` ~~~~~~~~~~^~` kernel/samsung/universal8895/include/linux/compiler.h:166:42: note: expanded from macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ 1 error generated.
Anonymous
`^` rip it cannot code block this :(
Anonymous
how?
Read the error
Anonymous
It's literally there
Anonymous
why does this always evaluate to true? (unlikely(!(*el_dev)->name) is the same as __builtin_expect(!!!(*el_dev)->name, 0) which is the same as __builtin_expect(!(*el_dev)->name, 0) right?
Anonymous
https://gist.github.com/Total-Control-9985/48a1e5818cb0e9ce09c062a913670894 this is the full function
Anuj
Hello everyone
Anuj
Write a program to print the number of non zero elements in the list.
Anuj
Can anyone send the code for this question
.
/ban
This dude sucks, a kid with a toy bye people. A big and nice group with and stupid admin
Aura
This dude sucks, a kid with a toy bye people. A big and nice group with and stupid admin
Tho i agree he is shit af and sucks. But i guess its definitely within the rules bro
Dima
Nice
Anonymous
Nice
Your turn
Dima
Nah
Anonymous
Nah
Shall I?
Dima
¯\_(ツ)_/¯
Dima
I can’t think now
klimi
at least put the ban reasons tho, when i am searching it in the history it is messy af
klimi
like, if you dont want to think of a reason just put the message in that
Anonymous
Is insulting admins against the rules? @K11M1 @neko_code
Anonymous
klimi
i don't mind ¯\_(ツ)_/¯ i mean if it is harrasment, thats no good... but otherwise ¯\_(ツ)_/¯
klimi
(that doesn mean much when read later... )