Vlad
2^31 - 1
Anonymous
One bit goes to the sign
So , 1111111..... 31 times , And the last 1 bit is for negative or positive ?
Anonymous
Last bit containing true means negative value
Suppose , I enter +8 in decimal , How many bits are assigned to it?
Vlad
Because 8 is a power of two
Kanni
/get cppbookguide
Anonymous
Because 8 is a power of two
Thank you , after extensive searching , I finally understand , Why they say , integer is 4byte .. And that 2^32-1 ..
Elifas
Excuse me , anybody knows how to make library managemnt using linked list?
Elifas
Library management program using linked list in C
Chandresh
#include<iostream> using namespace std; int main(){ int temp=0; int arr[10]={5,2,3,15,12,11,10,6,20,1}; for(int i=1 ;i<10 ;i++){ for(int j=0;j<i;j++){ if(arr[i]<arr[j]){ temp=arr[j]; arr[j]=arr[i]; arr[i]=temp; } } } for(int i=0;i<10 ;i++){ cout << "\n"; cout << arr[i]; } return 0; }
Chandresh
Is This code is of insertion sort??
armandofsanchez
Buble sort
Mandarino
Date n stringhe di caratteri dispari, trovare la media dei caratteri e la parola più grande inserita
Mandarino
do i have to write it in english?
Vlad
Otherwise it'll get you banned
Mandarino
Given n odd character strings, find the average of the characters and the largest word entered
Mandarino
you can solve it for me
Vlad
Please would you read the rules
Vlad
> * Asking to solve an assignment/test/whatever without trying it first yourself will get you a warn or will get you BANNED. We won’t write a code for you, but we can push you forward and suggest something.
Gustavo
Hello, everyone I've been trying to make a deep copy constructor for a linked list class, I really don't understand why it's not working, the logic seems fine https://pastebin.com/7Hrd9tQz If someone can give a look at the constructor, I'd be glad :)
Pavel
Hello, everyone I've been trying to make a deep copy constructor for a linked list class, I really don't understand why it's not working, the logic seems fine https://pastebin.com/7Hrd9tQz If someone can give a look at the constructor, I'd be glad :)
It's a bit overcomplicated to reason about, but overall looks correct. What exact issue you have with it? Crash? Incorrect values? You have extra assignments to nullptr for node next (you have it assigned by default, then when you set the value in the constructor, then again explicitly in the list. Not a big deal, but kinda unneded extra code. Default assignment would be enough. std::exchange in the destructor makes it less readable IMHO. You always create head node, but then check it for nullptr for some reason. Can it be nullptr or not?
Pavel
Hello, everyone I've been trying to make a deep copy constructor for a linked list class, I really don't understand why it's not working, the logic seems fine https://pastebin.com/7Hrd9tQz If someone can give a look at the constructor, I'd be glad :)
By the way, if you have some code example that reproduces the issue that you have with the list, it can be helpful if you can share this code. If you don't mind sharing it of course.
Fern
/get cppbookguide
Gustavo
I've used ASAN and got some memory leak but I did't really understand why
Abhishek
Anyone send a program for define student college time and add working time and overtime display collage time and actual working time .
Abhishek
Anyone send a program
Anonymous
Sorry
Diego
Anyone send a program
My dude we can help you out with questions and such, but we're not going to do your work for you
Diego
If that's what you want chances are you'll have to pay someone to do your assignment lmao
Nisal
😂
MRT
hi
MRT
i have problem with qt 6, i get 0xbaadf00dbaadf065 error when use object
MRT
It is as if the memory allocated to the program is running out, and from that point on, accessing any object of the program gives an error 😡😡😡
MRT
I wrote the same program with vc and saw no problem
H
i have problem with qt 6, i get 0xbaadf00dbaadf065 error when use object
why you use qt6 , it suck for production ... use qt5.15.2 , its really stable ... qt6 just its «its» version.
MRT
Need more context pls
i just add one object to my class !private: private: .. .. bool isApi =false;
MRT
and when i use the object QString MessengerJsonApi::chatMessages(){ if(isApi){} return "nothing"; }
MRT
my app crashing, even if i print isApi with qDebug 😐
H
my app crashing, even if i print isApi with qDebug 😐
show us code : https://paste.ofcode.org/
MRT
Locals this 0xbaadf00dbaadf065 MessengerJsonApi* Inspector Expressions Return Value Tooltip
Nils
my app crashing, even if i print isApi with qDebug 😐
You might also want to ask here: @CplusplusQt They are a C++ group specialised on Qt
MRT
i create a sample class
MRT
all codes work in vc fine ,but in qt ,app crashing with sigsegv segmentation fault trow
Nils
mingw
try mscv
Mandelbröt
#cpp-vscode
Mandelbröt
"message": "#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit
Mandelbröt
???? I have got a error
Mandelbröt
cannot open source file "crtdbg.h" (dependency of "iostream")
Mandelbröt
And this too
Mandelbröt
@MissRose_bot How to setup the launch.json comfig in vs code for c++
Dima
Bruhhhh
Mandelbröt
Bruhhhh
Yeah !!
Mandelbröt
Mandelbröt
Anonymous
麻了,tg没有实时翻译
Vinay
gwaro english hi bol lo😂
Defarmer
Thanks
klimi
麻了,tg没有实时翻译
Yeah, it doesn't but please use only english here thank you
klimi
gwaro english hi bol lo😂
same goes to you :)
Vinay
same goes to you :)
i used hindi as they wont understand the word gwaro
klimi
i used hindi as they wont understand the word gwaro
yes, please use english only. not hindi here
Vinay
👌