General C++ Programming - September 2021 (Page 5)

How can i correctly make the definition of class in cpp
 
Hello , I am really new in c++ development . https://100001.link/ I created a class Backend . https:...
[1 reply] : Show your code. (by TheIdeasMan)
difference between std::list and linked lists
 
Hello i am new in C++ and i was thinking of what is the difference between std::list and linked lis...
[9 replies] Last: as far as alternates go, there is also the skip-list, which has extra ... (by jonnin)
string Library
 
When I use the library #include<cstring> in my C++ program I do not have any problems with 'stri...
[8 replies] Last: @OP A C-style string is a const linear array of characters, hence cons... (by againtry)
#define
 
I thought typedef was used for macros these days? Is #define used for this also? sorry if this just...
[7 replies] Last: a few macros are critical for debugging. there are predefined tools l... (by jonnin)
Sorting alphabetically
 
I am not sure how to sort output in alphabetical order. It took me awhile to get the code to work ho...
[3 replies] Last: Stick it between where you generate the list and where you print it. (... (by Duthomhas)
Image fading help needed C++ (1,2,3)
 
Hi All I am new to image processing using c++. I need to read an image pixel by pixel, then modif...
[48 replies] Last: I took 10 min crack at the first one. this works. the tga file I w... (by jonnin)
Implementing graph in a rectangular grid.
 
EDIT - the OP has disappeared and taken his question with him. Your question is nonsense, and the p...
[3 replies] Last: Eh, I think it was just incompetence, not spam, but whatever. Another ... (by Ganado)
forward and reverse for loops with C++ containers
 
(I'm including SSCCE [ http://www.sscce.org/ ]code snippets so those not familiar with the subject c...
[1 reply] : FYI, Visual Studio 2019, build 16.11.2 requires the C++ language stand... (by George P)
fstream inFile filter (super basic codes)
 
Hi, this is my first time posting here so if I violated any rules I am truly sorry. I am a new CS s...
[12 replies] Last: Hi! Sorry for the late reply! I've been working on the code myself and... (by Hush3212)
ofstream() '<<' ambiguous error (1,2)
 
Cannot satisfy the Compiler with this simple code. It works just fine in another Xcode C++ proj...
[25 replies] Last: Yes, that's what it is. I can't help feeling that C++ was being a ... (by mbozzi)
Visual Studio 2019: How do I see code work in real time
 
Wasn't sure where to post this. It could fall under Windows Programming or Lounge but since I've be...
[11 replies] Last: Thanks for your help, Guys. I'm good to go. (by bishoposiris)
by ameera
C++ using Atom, output w/ terminal, macbook air M1
 
hi all, i'm trying to run C++ on Atom (using macbook air M1). the output is in the terminal shell...
[1 reply] : See this Reddit thread https://www.reddit.com/r/osx/comments/397uep/ch... (by mbozzi)
count the number of distinct duplicated characters in a string
 
Hello guys, Do you have any idea how to count the number of distinct duplicated characters that a...
[6 replies] Last: #include <iostream> #include <string> int main() { const int no_... (by againtry)
return to original position commands
 
Hello guys, I have a problem kinda disturbing. Suppose I am at O(0,0) and I can go one step forward...
[3 replies] Last: @Duthomhas gave you a formula for the number of moves, not commands. S... (by mbozzi)
C++ Swap help me?
 
int mainFinder(int 0, int 5){ if (l == r){ for(int i = 0; i < 6; i++){ res = 0...
[1 reply] : PLEASE ALWAYS USE CODE TAGS (the <> formatting button) when posting co... (by AbstractionAnon)
Why is there "Type undefined reference to `People::humans'"?
 
I am working on eclipse workspace and I have this code. I ran it into another program and it works p...
[2 replies] Last: Also note that void setHumans(Human humans ); is going to clash wi... (by lastchance)
by gadi01
a help please
 
I have a problem of minimizing a function to optimize 8 variables, but for each data point the routi...
[6 replies] Last: [quote=gadi01]I have a problem of minimizing a function to optimize 8 ... (by lastchance)
What is "Unknown array size in delete?"
 
I built my People.cpp code and got the error "Unknown array size in delete" for line 6 and line 10. ...
[11 replies] Last: Nevermind, I fixed it now. I will get back to you when I run into anot... (by anonymoususer13579)
Why does 'Human' not name a type?
 
It was working perfectly fine until I added the People class and the People.cpp in my eclipse file. ...
[2 replies] Last: It's fixed now. Thanks! (by anonymoususer13579)
by volang
Access Violation
 
This line: string domainName = argv ; cause "Access Violation" in debug. But no problems when runn...
[10 replies] Last: Haha, nice catch. Thanks man :) (by volang)
September 2021 Pages: 1... 3456
  Archived months: [aug2021] [oct2021]

This is an archived page. To post a new message, go to the current page.