Azrul
Can someone help me solved this question
Azrul
Pleasee
Mihail
Like they even wrote a solution below the table
Mihail
Also no, no one will do your homework
Azrul
hahahahahahaahhhahahaa
Azrul
sorry
Azrul
Like they even wrote a solution below the table
thank you sir i almost get the coding
Azrul
thank you very muchh
cos
does anybody know any good micro benchmarking tool for c++?
Anonymous
I'm clicking the link and nothing happends^^
Roxifλsz 🇱🇹
I'm clicking the link and nothing happends^^
It already did it's thing, otherwise you wouldn't be able to write here
Anonymous
Ahh I see, thought I would get some feedback. Ok, hello then
klimi
i like it
klimi
omg furry and it likes gentoo
Anonymous
Yes^^
Anonymous
/warn
B K Sachin
How can I give colour to program?
B K Sachin
How can I give colour to program?
Anyone Ans this question
Ανδρέας 🇮🇹
How can I give colour to program?
are you talking about stdout?
Ανδρέας 🇮🇹
https://stackoverflow.com/questions/2616906/how-do-i-output-coloured-text-to-a-linux-terminal
rohit
es
Anonymous
can any one plz tell how to learn cad using c++
klimi
D
Sohel
Javier
Hi! I've to implement a NFA. I've designed each class and the delta function and epsilon closure too, but now I've to implement a method which outputs all possible paths for a given input string. Is there an algorithm (DFS, BFS,...) that I should use??? I'm so lost.
Ajeet
could anyone tell me why STRUCTURE generally used even consume maximum memory space while UNION consume minimum memory space
olli
could anyone tell me why STRUCTURE generally used even consume maximum memory space while UNION consume minimum memory space
They are completely different. In a union at most one element can be "active" at any given point in time. A struct contains multiple elements. Hence, the size of a struct is a least the sum of the size of its elements, whereas the size of a union is at least the same size of its "largest" member
lyph
Done.
lyph
😊
Pankaj
could anyone tell me why STRUCTURE generally used even consume maximum memory space while UNION consume minimum memory space
In Union memory allocation happens for largest member in union. So size of Union =size of largest member in union. But in structure size of structure is sum of size of all elements in structure
Anonymous
Hi! Do you guys know how to make files encrypted on an usb drive stay encrypted if they are copied from the usb drive?
Ritu Raj
could anyone tell me why STRUCTURE generally used even consume maximum memory space while UNION consume minimum memory space
Union looks for a single data type defined in its curly braces.No matter how many variables(datatype) define you in it... It can store only one datatype at a time
Ariana
Like if you have a union of a char and uint8, and store 65, and use it as char you get A, its kinda like typecasting
Ariana
#ot
Ariana
btw this exists
Anonymous
Ty
MS Rizal
Hi everyone
Anonymous
Hi guys
Anonymous
Can you tell me ICPC tournament
olli
What's about ICPC?
lyph
how to use html
lyph
css
Anonymous
With stackoverflow
Ǝlmar
Ǝlmar
I'm using bit fields in C
Ǝlmar
but cannot represet 2 digit months such as 10, 11, 12
Avezy
Mh just small idea 1 bit gender (0, 1) 2 bits for blood group (01,10,11,00) leaves 5 bits for month ( 00000 00001 00010 00011 00100 00110 00111 01000 01100 01110 01111 10000)
Avezy
Base 4
Ariana
There are actually even more types if you feel like
Avezy
without counting +-
Ariana
Month youll need 4 bits
Avezy
and you can signal that with the bit you have left
Ǝlmar
the problem is I'm using unsigned char
Avezy
Thats not the problem unsigned char is 1 byte -> 8 bit
Ariana
without counting +-
Bombay blood group exists:) and other weird types
Ariana
Birth month 4 bits Gender 1 bit Leaves 3 bits for blood group
Ariana
Classical ABO + Rh fits into 3 bits
Avezy
Yeah in general there are +100 possibe blood groups but I assume they just want the base 4 and the resus factor
Avezy
O-, A-, B-, and AB- O+, A+, B+, and AB+
Ǝlmar
olli
According to ISO C there is no way to guarantee the size of a struct
Ariana
O-, A-, B-, and AB- O+, A+, B+, and AB+
(theres actually hh too just extra info)
Avezy
Yeah
Ǝlmar
h1.bm outputs the result 2
Ǝlmar
not 12
olli
You store ASCII values, remove the ''