Vlad
the function is n*n ?
ok google, bubble sort complexity
Anonymous
i have a question from the lippman book "Explain how the compiler might inline the call to the deleter if we used DebugDelete with unique_ptr." DebugDelete class - https://paste.ubuntu.com/p/VyHJWY4r27/ relevant sections in the book - "...implementation strategy may have important performance impacts..." (compared to shared_ptr) "...Because the type of the deleter is part of the type of a unique_ptr, the type of the deleter member is known at compile time. The deleter can be stored directly in each unique_ptr object..." "...The type of del is either the default deleter type or a user-supplied type. It doesn’t matter; either way the code that will be executed is known at compile time. Indeed, if the deleter is something like our DebugDelete class this call might even be inlined at compile time..." what does it even mean for a class to be inlined based on template parameters, i get how functions are inlined.
Khan
Yes
what about the other?is that already correct?
Anonymous
what about the other?is that already correct?
The whole picture doesn't look correct https://youtu.be/v4cd1O4zkGw
Anonymous
but won't the inlined function still depend on the deleter object whose state may change at runtime?
Anonymous
also @unterumarmung
Anonymous
like a static data member whose value will decide how the call operator will behave
Anonymous
okay that makes sense
Nameful
in the first example the pointer is mutable, in the second example the pointer is immutable
Anonymous
const char* char const* char cont*
Anonymous
whats diff?
Nameful
cont?
Anonymous
i mean const*
Anonymous
const
Anonymous
const char* char const* char cont*
nothing as long as the const is on the left of the pointer
Anonymous
if it is in right then?
Anonymous
please give example
Anonymous
please give example
https://stackoverflow.com/questions/21476869/constant-pointer-vs-pointer-to-constant
Anonymous
can i please know that is it important to use MATH.h header file to calculate areas in C programming?
Anonymous
ok thank you
Mhmd
Guys hello how can I learn english well ?
Talula
Guys hello how can I learn english well ?
Err... by not talking about learning English here.
Mhmd
With wich program?
Anonymous
Hi
Nils
It's an in-compiler only restriction
Anonymous
Modern C by Jens Gustedt
AM
Hey guys
AM
Im new here, any good sources of info for learning C
AM
As a beginner
Vjaceslav
Oh jesus
Dima
lol
Pavel
Oh jesus
https://v.redd.it/gmx99de37rs51
Asdew
https://v.redd.it/gmx99de37rs51
https://youtube.com/watch?v=1S1fISh-pag
Mr.
Hey akosah
Mr.
Done start to learn
Anonymous
Ohk
Wisenky
guys I have a problem with my code . I cant use 2 functions (placed in header definition) whenever I use in my program I got segmentation fault but I couldnt solve it . then I want to share my noobish project tree without executables . Is it okay ?
Anonymous
guys I have a problem with my code . I cant use 2 functions (placed in header definition) whenever I use in my program I got segmentation fault but I couldnt solve it . then I want to share my noobish project tree without executables . Is it okay ?
Rules says that you can't send executables here. Rar archive can contain executables therefore it can be reported. Consider using github/gitlab/ or other source code hosting
Anonymous
Nope it contains just 1 header, 2 .c and makefile
So, person who will download and unpack this archive defenetely trust you
Mr.
Bro have you seen
Wisenky
So, person who will download and unpack this archive defenetely trust you
yes , and nonsense childish argue , I do use the source hosting thing
Z0OM
help with visual studio. when i run the program the solution explorer opens automatically. how to turn it off?
Vjaceslav
https://gist.github.com/pipd0un/1be3d996f39834b59dc6b5108bc40e03
What is this? All I see is magic numbers and zero comments
Rohan
class Array { private: int *array; int size; public: void setArray(int s); void printArray(void); }; void Array::setArray(int s) { size = s; array = new int[size] for(int i = 0; i < size; i++) { cout << "[" << i << "]"; cin >> array[i]; } } void Array::printArray() { for(int i = 0; i < size; i++) { cout << array[i]; } } Array obj; obj.setArray(5); obj.printArray(); Why this code is not working???
Rohan
It's not printing array values
Rohan
"array = new int[size];"
Rohan
Yup
Rohan
Every thing is in main
Rohan
Class is not in main... Object declaration is in main
Rohan
Rohan
Now, can you tell me how it is working?? And there is any other way to declare dynamic array?
Rohan
Oh'k
Rohan
private: int *array = new int[0] It is legit or not???
Rohan
int *array = new int[size] Is array declaration so it is legit... Am I right?
Rohan
Yup it is resolved
Konstantin
This is like 3rd time I see this link in this chat. WTF?
Anonymous
is there any best compiler for C programming except TURBO c++?
Anonymous
for beginners?
Konstantin
for beginners?
I have a feeling that you are asking for something else, but not for "C compiler for beginners". Please could you clarify your question?
Anonymous
actually iam an 16 year boy...and i wanna learn programming but C ........so i wanna know that which compiler should i use at this age?
Anonymous
ok thank you very much....
Anonymous
do u anybody have any suggestion on ...THAT FROM WHICH SITE SHOULD I GO FOR C PROGRAMMING? i mean i need consultancy!!
Anonymous
ok i got it thanks
Anonymous
/get
Anonymous
Hlo
Rohan
I don't know how to fix this??🥺🤯
Rohan
Rohan
Rohan
this is my header
Anonymous
I need help in Armstrong number checker program in C using for loop... I'm asking here because following reasons: 1. Most of the solutions of this program found on Google checks only 3 digit number but I want it to check any digit number. 2. Solution found on Google are done using while loop but I am doing it with for loop. 3. I am almost done doing it, but stuck at the final point. Can anyone help me with this. Then I'll share my code. Thank you..
correctmaninwrongplace
I don't know how to fix this??🥺🤯
you are trying to print what the method bubblesort returns, what type does it returns? can you print that type?
01000001011011010100000101101110