General C++ Programming (Page 5)

Concrete types - as described by Stroustrup - C++ Programming Language 4th ed
In my understanding: A type whose 'representation is part of its definition' is a type for which we...
[2 replies] Last: Sadly this question is another re-post. Wait for the edit and spam. h... (by lastchance)
How to append text to a text file in C++?
Dratted re-post bot: original question from
[1 reply] : See under mode in (by seeplus)
Is there a standard definition for __cplusplus in c++14?
__cplusplus denotes the version of C++ standard that is being used, expands to value 199711L(un...
[3 replies] Last: why does OP have a link to walgreens? Looks like a low quality spam o... (by jonnin)
by cmisip
How to make base class use derived class overloaded method
Is it possible? If I derive a class, then override one method, is there a way for the base class t...
[4 replies] Last: It's a publicly available arduino library called TM1637_6D. I derived... (by cmisip)
i need help
After level 5 lockdown, Rose, Rebecca and Rachael (three friends) realized that they had gained mu...
[9 replies] Last: PLEASE ALWAYS USE CODE TAGS (the <> formatting button) when posting co... (by AbstractionAnon)
How do i censor specific words in a string?
#include <iostream> #include <iterator> int main() { std::string vect = "one two n...
[4 replies] Last: Hey Einsteins, it's a two-year-old account blatantly posting spam. (by Ganado)
difference between char array and string in cplusplus
I need to know the difference between character array and string in c++. Can any one answer to th...
[1 reply] : (by salem c)
by cmisip
Can a struct in a vector access its index in the vector?
I am building a vector of structs. The struct will contain a data member which is a pointer to an a...
[13 replies] Last: You're right. There's not much to gain going down this road. The sim... (by cmisip)
by suckss
Dynamic array of char arrays
The title might seem a little confusing but I'll try to explain. I have a struct and I know I'm gett...
[8 replies] Last: that will cause you some troubles. If you leave off the space for th... (by jonnin)
Trying to print adresses of 2D dynamic arrays
I've created a program that is able to create a staggered 2D dynamic array. I pass this array to fun...
[1 reply] : arr is the value stored in the i'th element of arr . That means i... (by MikeyBoy)
Find the first two consecutive pairs in the vector with greatest equal second (1,2)
One last question regarding vector of pairs. Suppose we have a vector of pairs like the following: ...
[24 replies] Last: Well, I finally managed to run the code on Wandbox: https://wandbox.or... (by lastchance)
detect mouse cursor position in a particular window
Ok, so how do I detect mouse coordinates in a particular window ? detect mouse coordinates give ge...
[1 reply] : Try ScreenToClient: (by dutch)
aggregation relation
Why the case 3 cannot display? class Item { public: string itemName; double totPrice;...
[14 replies] Last: Well if you made Payment have a pure virtual function, you can't decla... (by Ganado)
I'm given a sequence containing from 3 to 30 words. Printing all words that occur more than once in the sequence.
I'm given a sequence containing from 3 to 30 words, each of which contains from 1 to 5 capital Latin...
[4 replies] Last: if Xcode lacks a friendly debugger, then just insert some print statem... (by jonnin)
Implement an array-based stack and count what is more in the stack
Implement an array-based stack and count what is more in the stack - vowels, consonants, or other ch...
[4 replies] Last: How can i do this in Xcode? (by sergeyutkin221)
Check if there is at least one sequence of three zeros in the list
I need to check if there is at least one sequence of three zeros in the list (array) using an array ...
[2 replies] Last: just please help me figure it out, Use the debugger to trace throug... (by seeplus)
Aggregation relationship and pointer
I have some question with the pointer, how should I do if I want to add the item array into a custom...
[2 replies] Last: Ouh I see, thank you so much! (by saltyyyyy)
Reading from multiple txt files (i.e 100 txt files) with one ifstream
Hello, Any ideas of how to read from multiple txt files (i.e 100 txt files) with one ifstream? Is...
[15 replies] Last: I saw it. Thanks really a lot for helping me out! (by gevCplus)
object oriented programming
I have problem in the pointer aggregation, if we aggregate an array in a class to another class, how...
[4 replies] Last: but it works! I doubt it. It doesn't crash because you forget to inc... (by kbw)
Plz your help!
Hello, I created a program doing the following thing: Read from txt files, calculate a number cal...
[16 replies] Last: No worries, you can read all about it at this link: https://en.cppref... (by TheIdeasMan)
Pages: 1... 34567... 9
  Archived months: [may2021]

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