General C++ Programming (Page 8)

forward and reverse for loops with C++ containers
(I'm including SSCCE [ ]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 Furry Guy)
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 (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)
by szupek
Struggling with getting passed pointer to a double array type string. What am I doing wrong?
Hello. I am trying to get past "basic" functions in C++ and onto objects and passing pointers to ma...
[15 replies] Last: @jlb That's a good point :+) I guess I am always reading the docs fro... (by TheIdeasMan)
Algorith that finds best possible combination
Looks like one for back-tracking ...
[2 replies] Last: Is yours an algorithms class? This looks like a variation on the class... (by Duthomhas)
C++ Help me :(
For an integer specified as the target, 6 other integers and four operations (addition, subtraction...
[3 replies] Last: Heh, 25*10+50+2 does it have to write all the extra () pairs? Its u... (by jonnin)
Intermediate CPP Books
I am coming to grips with Composition and Aggregation. I have a great book I was using that carried...
[2 replies] Last: [quote=rhamm5798]I have a great book I was using that carried me all t... (by The Grey Wolf)
Pages: 1... 678
  Archived months: [aug2021]

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