Beginners (Page 45)

Value not coming out correctly in .txt file
I'm unsure what I did wrong, but whenever I run my program the value for mCost comes out incorrectly...
[1 reply] : I fixed your program. I also made it a bit cleaner. I took all of your... (by IceStorm)
Better Way to Write this Code?
Is there a better way I could have written this trivial program? Basically, it takes an n-sized arra...
[3 replies] Last: > "a" would be the first element, incrementing the pointer by N-1 retu... (by JLBorges)
Confused about binding rvalue to copy ctor
I was looking at cppreference here: ...
[1 reply] : Can someone give a code example of when an rvalue can be bound to a c... (by Peter87)
iterator and algorithm
i have a question about std::for_each should i be using this with list or should i use something dif...
[1 reply] : Write the captures inside the of the lambda. [&os] - captures os... (by Peter87)
by marcb
Calculating max combinations you can buy given a certain amount of money
I'm trying to write a program that will give me the maximum amount of items i can buy given a certai...
[9 replies] Last: Exactly what I was trying to say about getting them to a common term. ... (by jonnin)
Input error help
I am having trouble running my program. My computer said the error has to do with my input. I would ...
[1 reply] : Line 53 should be: cin >> myCookies.cookiesToMake; and not: cin >> ... (by chicofeo)
Help with simple desktop background generator
I am a beginner in c++, but I wanted to try making a simple bitmap desktop background generator usin...
[no replies]
by EbestG
How to Encrypt / Decrypt a text file c++
i tried working on an application that is pretty much on the spot. has a switch on it to choose b...
[2 replies] Last: #include <iostream> #include <fstream> #include <cctype> #include <it... (by lastchance)
Misused (while) for loop, and program no longer functions
Hey, I tried writing a program to simulate D&D dice. It seemed to work fine until I tried to loop i...
[4 replies] Last: Hey, I managed to get the code functioning thanks for the help, still... (by studyoctopus)
Flowchart help
Can someone help me create a good algorithm and flowchart for this program? #include <iostream> ...
[2 replies] Last: @simonferry, The answer is 42. See this: (by Handy Andy)
shaders in opengl
exception is coming in shaders.cpp #include <iostream> #include <fstream> #include <string> #inc...
[1 reply] : exception is coming on return program instruction A return statement... (by Ganado)
C++ Code Error
On line 69 I receive an error saying that total is not declared in this scope, I am unsure what I di...
[2 replies] Last: 1) Please use code tags when posting code, to make it readable: http... (by MikeyBoy)
Terminate called after throwing an instance of 'char const*'?
Did a little bit of research and those were all saying something about "catch"... Didn't get it... ...
[2 replies] Last: There are two errors on line 21 (at least) - non-existent fout and, so... (by lastchance)
Pages: 1... 434445
  Archived months: [jan2018]

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