General C++ Programming (Page 6)

Poker StraightFlush and FourofaKind
 
#include <iostream> #include <cstdlib> #include <ctime> #include <vector> using namespace std; s...
[10 replies] Last: You don't need to sort to check for a flush. Just check if all cards h... (by dhayden)
Sub-Namespaces for organizing features: Yes or No?
 
I've been working on a personal library called J118 for a while now, and it's starting to gain in si...
[9 replies] Last: Documenting dependencies. That is something I hadn't considered. Tha... (by Furry Guy)
Help with HashMap / typename declarations
 
I am working on a HashMap to learn C++ and I am using iterators and const_iterator classes to go thr...
[1 reply] : The compiler doesn't know that std::list<std::pair<key_type, mapped_t... (by Peter87)
Unary Opeartions Inside Ternary Operator
 
Hi Guys , As per the operator precedence table, unary operators have a higher precedence over tern...
[6 replies] Last: Thanks everybody for your explanations,I got it . ne555 thx for usi... (by NiharRNanda)
by slei
Working with ptr to items in containers, thoughts?
 
I recently see my self often trying to take pointers from non dynamic allocated objects from smaller...
[5 replies] Last: By reading it, this would mean it is actually safe, and wouldn't inva... (by mbozzi)
Matrix and vector multiplication in different classes
 
I want to calculate the matrix multiplication with a matrix and a vector. the matrix and vector hav...
[4 replies] Last: The real problem is the manipulation of matrix and vector in vector cl... (by zaahm18)
Comparing 2 literal strings
 
I saw a member asking about a game like 'Boggle', and thought that sounded like a nice project to wr...
[4 replies] Last: @JLBorges Thank you for your answer. I did forget to put in the '== 0... (by whitenite1)
by Ryan15
Is there another way to stop this do while loop mid-loop?
 
without the break statement, the output would exceed 100 once before it stops. eg: Multiply= 5 ...
[7 replies] Last: I thought it was about the actual result of multiply and not just what... (by Ganado)
Multiple errors in File Handling Program (Quiz Contest System)
 
I am supposed to develop a following program, Quiz contest system is a simple database project. I...
[2 replies] Last: Third and probably the most important problem, I am unable to read th... (by jlb)
by Ojies
Input loop always does first option
 
There is a loop from lines 750-970 that has 2 options in an if statement for when you input a string...
[4 replies] Last: Shouldn't the syntax be something like this in your 'if' statements ?... (by kavala)
by Ryan15
I would like to assign variables in my if statements that will link to my switch statement but I'm not sure how I should do it
 
#include "stdafx.h" #include <iostream> using namespace std; int main() { //Declaring v...
[4 replies] Last: Thanks a lot! (by Ryan15)
BST Help
 
C++ Help please, Binary Search Tree I have written some code below, and need help to finish the r...
[1 reply] : > I have written some code below, More likely, you have found some cod... (by salem c)
by hixtus
Simple Tree Code/ Wrong Output Help
 
We've been tasked to create an Octree that has blue and white voxels. However, I've only been able t...
[3 replies] Last: You are passing root by value to Voxels. That means Voxels modifies it... (by dhayden)
help vector::erase understanding
 
So I want to use the vector::erase command to my remove contacts function, but I am kind of new to v...
[3 replies] Last: One bug fix to fiji885's solution: for (size_t i = 0; i < Names.size(... (by dhayden)
by zak100
Segmentation Fault: Implementation of Gauss Elimination Algorithm
 
using namespace std; void GaussianElimination(double **,double *b ,double *y); int main(int a...
[5 replies] Last: Thanks for your advice. I would try to search the algorithm of partia... (by zak100)
How to solve identifier "gets" is undefined and not found
 
I have problem with "gets" in my program, it's say that my identifier "gets" is undefined and not fo...
[7 replies] Last: I'm curious, did you use fgets() or gets_s() ?... (by Furry Guy)
by Guil
Random global variable
 
Hi, I would like to create a global variable (outside main()) with an random value inside it. Any...
[18 replies] Last: It would work just fine if you had tried the function I gave you. But... (by Duthomhas)
How can I rotate these 4 numbers each time I run the program?
 
I'm a freshman at my HS taking a C++ class, sorry for bad code or mistakes. How do I make these numb...
[9 replies] Last: @Grey Wolf Ha -- what a finding! :) Tnx In the OP I read rotate nu... (by MikeStgt)
Random generator and sorting
 
When i run my code a bunch of random numbers print out that shouldn't be there. Can someone please h...
[2 replies] Last: Thank you for your help. It's greatly appreciated. (by JJLB1981)
by elsa
Using a stack to determine if a string is a palindrome
 
I don't know how to create an isPalindrome() function and not sure if my getString() function is cor...
[16 replies] Last: thank you everyone who helped me. also thanks to keskiverto to guiding... (by elsa)
Pages: 1... 45678... 14
  Archived months: [mar2019]

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