General C++ Programming (Page 13)

by arr
dp with bitsets
 
iam trying to solve a dp problem using maps as follows - #include<bits/stdc++.h> using namespace...
[1 reply] : You need to define operator< to compare the map elements. It's unlike... (by dutch)
operator overloading? or overriding? What is the right?
 
I know the difference between overloading and overriding. overloading is doing add function anoth...
[2 replies] Last: Thanks for your answer! (by woohyeon)
by fog22
What does this error code mean? exit code -1073741819 (0xC0000005)
 
I am trying to recursively sort by job title. Job Title is declared in the Employee class. Whenev...
[3 replies] Last: Check for null before using a pointer. Top is null in this case.... (by kbw)
can you help me for Data Structures
 
Hello guys I can't do this can you help me please. In computer science, an arithmetic expression ...
[1 reply] : If you google "infix to prefix" you'll find some solutions. (by dhayden)
Can you check me if this is valid program ? because i dont find an output screen
 
//Example: Write a program that reads grades from a file and store them in 2x4 array. Then it finds ...
[1 reply] : add a cin statement the end of it, see if that helps. if so, you are ... (by jonnin)
by b p t
Open mailbox
 
Hi I need some code wich will open mailbox like "mailto" in html. Thanks
[2 replies] Last: It worked. Thank you (by b p t)
Allocate a length of new C++ string dynamically
 
How to create/allocate a length of new C++ string variable in in runtime ,ie. dynamically
[6 replies] Last: you can also just take &var If you need a non-const char* you can j... (by Peter87)
by volang
Read in more than memory allocated
 
Good day everyone! char * l = new char ; //Creating pointer to a block of memory, length 4. int l...
[10 replies] Last: Great! Thanks alot, it's appreciated (by volang)
by volang
Increase stack size. Why is it bad?
 
I want a function that creates a char array that can handle 1GB data, because I like idea that a...
[15 replies] Last: I've read/seen some opinions from "experts" that using exception hand... (by Repeater)
Modify a tree to get edge weights less than vertex's values
 
So, this question goes like this: Given a weighted tree with values assigned to each node, you ar...
[no replies]
How to remove xml declaration <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
 
Hi All, I am using xerces for XML parsing. After parsing in new XML file I am getting below is a...
[5 replies] Last: I want to read data on one of tag in CDATA section. But unable to pars... (by akash16)
Why need a size_type arg in deallocate function?
 
In alloctor<T> Class as a member function, there is a deallocate(). void deallocate(_Ty* const _P...
[3 replies] Last: Thank you for answers, guys! you helped me. (by woohyeon)
Questions for DP and recursion
 
Hi, I have a few questions about these two algorithms. Below is my recognition. Recursive is a ki...
[1 reply] : I will circle back on this but right away: recursion can be used in a ... (by jonnin)
what is the raw memory?
 
Hello. I'm studying about allocator<T> class and I saw the word "raw memory". What is the meaning ...
[2 replies] Last: // JLBorges Thank you. (by woohyeon)
by volang
Append/concat strings and char arrays
 
I have a char array(400MB-1GB) and need to have another string(300 chars) appended to the beginning...
[2 replies] Last: Why not keep the 300 bytes where it is? You really shouldn't need to ... (by kbw)
Getting specific amount of values from the line
 
As title says, I need to get the specific amount of values from the input file’s line. The amount ...
[6 replies] Last: The code that you posted is not an infinite loop, although it's possi... (by yucecoder)
Memory allocation problem
 
Dear all, I'm studying C++ and now I started implementing a code to solve some numerical methods. I...
[6 replies] Last: Thank you ne555! As I'm a beginner, it would be great to count with y... (by nunesanderson)
function's argument alias for any type
 
How is the mechanism of a function's argument alias for any type, just like pointer to void function...
[1 reply] : @Ganado gave you a response in the other thread you opened. Why did y... (by doug4)
XOR of permutation of strings
 
This is a competitive programming question I came across, but couldn't solve. The question gives ...
[2 replies] Last: ^^ you should find a way to directly compute the result (by jonnin)
by volang
How do I store a returned class? (1,2)
 
auto test(){ class yo { public: int a = 2; }; yo yo1; return yo1; } ...
[23 replies] Last: Peter87 used a C++17 class template - std::optional - that manages a... (by Furry Guy)
Pages: 1... 1112131415... 17
  Archived months: [nov2019]

Cannot post in this page. To post a new message, go to the first page.