General C++ Programming (Page 18)

Vector of strings to bitset
vector<string> alphabet; alphabet.push_back("ABCDEFGHIJKLMNOPQRSTUVWXYZ"); vector<bits...
[1 reply] : A vector of strings that you push one string into has a size of 1. I t... (by tpb)
Need help with dynamic array of objects with user defined functions.
Suppose how had a text file that looks like this, Lemon 1 Apple 2 Orange 3 How would you create ...
[14 replies] Last: [quote=Repeater]Was assembly used when the concept being taught was "h... (by CodeMonkey)
sales receipt help
#include <iostream> #include <iomanip> using namespace std; int numb; int word=1+0; int cost; ...
[1 reply] : Please use coding tags (, ... (by Nwb)
I need to use a loop to calculate average rather than the Array.Average() method
I need to use a loop to calculate average rather than the Array.Average() method and I'm very new wi...
[3 replies] Last: The code doesn't even compile. The name 'iceCounter' does not exist i... (by Thomas1965)
I need help
------Input Enter in the number of sales items Enter in the name of the sales item Enter in t...
[1 reply] : Welcome. If you have a specific question, we'd love to help, but we ar... (by Ganado)
Need help on loops
Please help me on having the following requirements If the user uses an incorrect format, an erro...
[4 replies] Last: > Also, for the changeColor it is a function that my teacher provided ... (by ne555)
Simple C++ 2D game engine with Drag and drop
Anybody know a simple yet popular 2D C++ game engine with a drag-and-drop feature? I'd use Cocos ...
[1 reply] : Perhaps this? -> (by toad)
The output is not right
Hello, I am working on a small program for the school. I have done everything, but the output is no...
[4 replies] Last: int main(){ const int n = 15; std::string name ; double hourly_wag... (by ne555)
assigning values from text files.
Hello, I need to have a project where the console looks like this. (
[2 replies] Last: Oh my. Thanks a lot for all of this. I will give this a try tonight. I... (by noshkren)
Comparing values from array
Hello everyone, Let's say I have an array with these values: int foo = { 1, 2, 3, 4, 5 }; I ...
[4 replies] Last: You did miss the point of the shuffle: int v { 1, 2, 3, 4, 5 }; ... (by keskiverto)
Octal to binary conversion using functions
Can any one please explain the working of loop while converting octal to binary number
[1 reply] : All numbers are numbers for the computer. "octal" and "binary" are sim... (by keskiverto)
Random Numbers, if statements, loop
I am programming monopoly, and I have this program. I have two players, both start from "GO" which ...
[1 reply] : After newPosition = POSITION(storeValues , totalDice, positionArray);... (by Thomas1965)
need help if else
hi guys i am trying to program this 1. Write a program to compute the pension of an employee ...
[8 replies] Last: THANKS TO ALL (by even better)
“extensible singleton” using template function create instance Instance with singleton pattern in C++ ? How is it done?
I am totally stuck on how to make this work and i just want a straight explanation that i don't need...
[2 replies] Last: While I agree we shouldn't strive for them, having just a few singleto... (by Ganado)
by lolol
How do I store different numbers into a array and than compare them later on. The variable I'm trying to store is y.
#include <iostream> #include <cmath> #include <vector> using namespace std; double incom...
[1 reply] : int t; double great ; variables cant be used for array sizes in standa... (by jonnin)
by Nwb
C++ Book recommendations?
Any recommendations? Feel free to give me more than one recommendation.
[5 replies] Last: The ISO C++ site has some advice about learning the language in the fo... (by mbozzi)
Tricky XOR
A project was going on related to image processing and to perform experiments and get desired result...
[2 replies] Last: xor itself is reversible. Do you understand that much? This is just ... (by jonnin)
by Mapler
Can malloc or the new operator be used to obtain random values?
I'm implementing the socket part of my C++ program and I was wondering on how to implement the IV fo...
[6 replies] Last: when I was in school, I colored a fractal for an assignment by using a... (by jonnin)
by waruqi
xmake v2.2.2, We can also manage package dependencies for C/C++
[no replies]
by Selmac
While loop problems
So I have created program that will take a set of numbers from a file on the command line such as 8...
[1 reply] : You're closing the file at the end of the loop block. It should be aft... (by tpb)
Pages: 1... 161718
  Archived months: [oct2018]

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