Anonymous
/warn group ad
Anonymous
FOR ALL CODERS The S.C.R.I.P.T Group brings to you Battle Of Vars, a 24-hour online competitive coding session this lockdown period! With Battle Of Vars, we aim to: - Give a platform for all coders to utilise their time⏱ - Encourage all coders to participate from home (flattening the curve folks!📉) - Engage coders across the globe to hone their skills on what they are passionate about 🤩 Battle Of Vars is free for all to participate across the globe! ALL MAJOR PROGRAMMING LANGUAGES SUPPORTED! The e-certificates are verifiable on LinkedIn, so it'll boost your profile! 😎 Register here! Date & Time: 12th April (starts 9:30AM IST/4:00AM GMT) For any further updates, follow us on instagram!
Nameful
What do you guys think of GNOME Builder?
Anonymous
Okay guys, this is a non-profit event
Anonymous
I discussed it with other admins before posting and pinning
Anonymous
Don't freak out
Lord P∆RTH
yesss bro
klimi
It's alright
Anonymous
We have an OT guys chat
Рома
Guys !!! Is there are someone who programming in QT?
Рома
if(ui->tableWidget->item(row, column)->background().color() == Qt::red) { something; }
Рома
How I can get a color of certain cell in QTableWidget?
egor
if "const wchar_t" cannot convert to LPSTR what to do then
egor
Use multi-byte
Cyber9ja
Hello house, I'm Jubril, C++ program beginner Whenever I try to run a program on eclipse, it will return ''Binary not found''. Please what can I do? Thanks
Asad
definitely suggest you taking the same way
Asad
Which IDE can you recommend
for example CodeBlocks, VS, VS Code (text editor), Dev++ ...
Cyber9ja
Thanks Khasanov
Cyber9ja
How about compiler, is there any relationship between the compiler and IDE
Anonymous
One question: does the companies use Qt Designer to make GUI interface? or which platforms use to develop it in c++?
Asad
How about compiler, is there any relationship between the compiler and IDE
some IDEs come ready to use. with others, you have to download the compiler to be able to build projects...
Cyber9ja
Ok thanks
Dima
bruh
Jinlk
Jinlk
Is there a group for javascript
Dima
perhaps
Dima
but be smarter, use c++
Nameful
but be smarter, use c++
that is totally always a valid option
Asad
but be smarter, use c++
for front end? yes.
Jinlk
Can I use c++ to make a telegram bot?
Jinlk
Dima
yes you can make everything
egor
dll is not a valid win32 application
Dima
dll is not a valid win32 application
yes, you can’t run dll. only executable files (exe)
Dima
dll is a library
egor
why gives an error
Nameful
why gives an error
what are you trying to do?
Yoh
Hello, after I wrote this function I started to get this error: "crt detected that the application wrote to memory after end of heap buffer"
Yoh
I've read that it's basically saying that it's trying to write to a non-existing space in the array
Yoh
if I got it right
Yoh
but I increased the size, and the array has a lot of more space it's not full
klimi
what is size?
klimi
seems undefined to me...
Yoh
Size of the array, it is a private member in the class
klimi
(but i suck at programming... but i can work like rubber duck)
Yoh
the array being "list" which is a pointer that created a dynamic array using new
Nameful
seems undefined to me...
he's in a class
Nameful
but yeah, you're trying to write outside of your allocated memory
Yoh
How come?
Yoh
I tried removing the "size++" and it still gave me the same thing
Nameful
How come?
Hard to say without knowing the rest of the code
Yoh
For clarification, the function is supposed to get two integers one being an index the other being a number that the user wants to put in the array
Dima
Nameful
consider naming your variables better
Yoh
So if I give it 2 and 5 it should put 5 in position 2 of the array then shift the rest of the numbers
Yoh
var_num244
Nameful
yes, much better
Yoh
what can I do in this situation though
Nameful
how are you allocating the memory?
Yoh
Yoh
Nameful
When you increase size, do you allocate more memory?
Yoh
What do you mean?
Yoh
Oh I see what you're saying
Yoh
So basically I'm increasing the variable size, but the function is being called after the constructor
Yoh
so the size stays the same
Yoh
is that correct?
Nameful
Yes
Nameful
The heap-allocated memory stays the same
Yoh
But the thing is that increasing size is not the source of the problem
Yoh
because even if I remove it it's still the same, and if I change the condition in the for loop to let's say "length" which is how many elements are there in the array it would still give me the same error
Yoh
Okay figured it out
Yoh
It might be because the array is not full
Sasuke
What is the life span of a memory leak?
Sasuke
Does it remain untill main finishes or untill power cut in RAM?
Nameful