Does instantiating classes without handles like this cause memory leaks in C++? new SomeClass(); What about passing them inside methods? SomeMethod ...
Does instantiating classes without handles like this cause memory leaks in C++? new SomeClass(); What about passing them inside methods? SomeMethod ...
I was looking at this tutorial about the stack and heap: When to use new operator in C++ and when it should not be used? And in the heap example, it ...
i am going to add special caracter in fiels like db.student.insert({"name":"abc","f/name":"abc"}) NOTE : Here mongodb show an error f/name is not addi ...
I came across an article on new / operator new: The many faces of operator new in C++ I couldn't understand the following example: Here, the mem ...
My task: show newly added and never seen items (by user's browser) in bold And on next visit or page refresh remove the bolding from the items that ha ...
. Answers to this question are eligible for a +50 reputation bounty. Bounty gr ...
How can I call to operator new[] with GDB? For example I want to allocate 0x40 bytes and print the address : operator new[](0x44u)); How can I do th ...
So I was trying to get back the menu settings that dissapear after ubutu made the upgrade to 22.04 version. Honestly I'm new in all this. This is the ...
My code opens new window (first one login window --> Main menu-->moudule-->Reports--> report name. Report name should be opened in next ta ...
If we allocate memeory by new in c++ we should deallocate them by using delete keyword. But i want to allocated memory dynamically inside a function a ...
Hello I am new to coding and just learn some basics of codding can anyone help me out with this problem :- I have written a code to find 1st and last ...
I have a list like : keyword_list = ['motorcycle love hobby ', 'bike love me', 'cycle', 'dirtbike cycle motorbike '] I want to find these words in t ...
now i want that everytime it creates an outpot.txt file if i am taking another tags from a video it will create a new one i tried making a loop tha ...
I'm very new to python and this is far beyond what I'm capable of. I have multiple text files: test01.txt test02.txt test03.txt test*.txt Each file ...
I wanted to practice with array and I don't get why it doesn't print the following out: The problem is that the terminal outputs: null Why is that and ...
Below is the source code which I wrote to deploy one smart contract using another smart contract Now this contract worked. Similar to this I wrote ...
I've broken down the pieces of this code individually and it all works fine. Yet the append() method only appends once and then refuses to add anythin ...
public class Bicycle { // the Bicycle class has three fields public int cadence; public int gear; public int speed; // the Bicyc ...
This source code is running but I feel like the delete operator is wrong? Like out of place? It's not suppose to be head. I expect to delete all the ...
I'm in a trouble in golang's interface. the interface{} means any type. but I new(interface{}) in golang. what would happen? it not equal to a variabl ...