General C++ Programming - April 2019

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)
by Susie
How I can optimize my timer?
Hello everyone! I made a simple timer, but when I run the program, it's laggy. How I can make i...
[10 replies] Last: yes, cout is very slow (its terrible on windows and varies from terri... (by zapshe)
by NickB
Username and password code
This is a code I c+p, it works perfectly , is there a way I can make it accept multiple usernames an...
[8 replies] Last: But whats the problem of hardcoded passwords? You can look at the... (by Repeater)
How to make search program in phone book by number
/// Phonebook project //=============================== #include <iostream> #include <conio.h> #in...
[1 reply] : You have already posted two threads: (by keskiverto)
How to make search program in phone book by number
// Phonebook project //=============================== #include <iostream> #include <conio.h> ...
[1 reply] : Nobody wants to read 100's... (by salem c)
Ternary Search Trie- Finding all the Strings
Hello, I'm trying to implement a TST where each node contains a character and I mark certain nodes a...
[1 reply] : Sounds good to me. (by salem c)
How to make search program in phone book by number
// Phonebook project //=============================== #include <iostream> #include <conio.h> ...
[1 reply] : In case 3 you for (i = 0; i<100; i++) if ( person .show(temp_name) ... (by keskiverto)
Need help reading data into 3 arrays!!!!!!!
I have to write a c++ program ram to declare 3 arrays, ArrayA, ArrayB, ArrayC, to hold 25 integers e...
[4 replies] Last: I can't use void and need to use two different data files, each conta... (by doug4)
Need Help!! Min, Max, and Ave not correct!
So my program keeps displaying weird numbers and the calculations are wrong! I can't seem to figure ...
[1 reply] : Please edit your post to put [co de] tags around your code. ... (by salem c)
Merging two C language codes into one of Arduino
Hello, I have two codes in C language which are to be merged and used in Arduino, in order to make t...
[2 replies] Last: Rename all the functions to be respectively. setup_pad() loop_pad() s... (by salem c)
April 2019 Pages: 123... 9
  Archived months: [mar2019]

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