General C++ Programming - May 2017 (Page 13)

Assistance with insert function for AVL tree - C++
 
I also posted this to stack overflow but received no assistance. I have an AVL tree project and one of the functions I need to implement is an insert function w...
[no replies]
Some help to start?
 
Jerry’s Appliance has a special promotion for its week long Anniversary Sale. After Customers have picked out the merchandise they wish to buy, they can draw...
[1 reply] : This a duplicate of: http://www.cplusplus.com/forum/general/214460/ ... (by MikeyBoy)
by Hanif
struct array
 
Please help me out; The assignment is about Sales of Traditional Candy from your country for International Food Fair: Create 2 files using NotePad to read d...
[5 replies] Last: Thanks for the offer but I'll let you have the pleasure of doing your ... (by gunnerfunner)
by Atijaf
Parent and Child Classes
 
Hello. I have a base class and multiple derived classes that completely serve different purposes and would like to know if there is a way to store a child clas...
[2 replies] Last: … would like to know if there is a way to store a child class obje... (by gunnerfunner)
[SDL] Updated: How to handle delayed functions and is abusing multithreading bad?
 
Old Question: What is the difference between SDL_Thread and std::thread? Hi What is the difference between these 2? Which should I use and why? Thanks Edit: N...
[6 replies] Last: I want to call certain functions after a delay. you could start off... (by gunnerfunner)
Project help
 
Hi, this is my first time posting on this forum. I need help with a project of mine that is supposed to allow the user to input input video games to database. I...
[5 replies] Last: int findGame(const videoGame games , int currentTitles, string name) ... (by coder777)
Reading data from file into two arrays
 
#include <iostream> #include <fstream> using namespace std; int main() { const int ARRAY_SIZE = 1000; // Array size int accountNumbers...
[3 replies] Last: #include <iostream> #include <fstream> int main() { const int AR... (by JLBorges)
String Compare HELP!
 
How do it make desiredClass = classification & price < maxPrice & price > minPrice & year < maxYear & year > minYear into a strcmp.
[1 reply] : Dupe post http://www.cplusplus.com/forum/beginner/214742/ (by SamuelAdams)
how to directly store cmd/prompt outputs to a variable, without using file operations ???
 
I'm new here so forgive me if I post my question in the wrong place. Part of one of my programs filters the CMD output of "netsh wlan show networks bssid" into ...
[3 replies] Last: Alternatively, # include <boost/iostreams/device/file_descriptor.hpp... (by mbozzi)
HASH TABLE Exception thrown: read access violation.
 
Hello Cplusplus people, I have currently have a problem with my program where I am trying to create a hash table that has a structure of name, last name and ID ...
[1 reply] : As for the txt.file you can create anything like 1234 hello world 15... (by NoobCplusplusGuy)
Guess game summary
 
I created a guessing game where a user tries to guess a number between 1-100. Once the user wins they have the option to play again or quit. I am having troub...
[1 reply] : Line 28,36: Why are you using printf in a C++ program? Line 53: Do ... (by AbstractionAnon)
Finding the Depth of a Binary Tree
 
Hello, as the title states, I am trying to find the depth of an already created Binary Tree using the depth function below. I keep getting an error "invalid use...
[2 replies] Last: Shouldn't line 28 return 0 instead of -1? Right now a single node with... (by dhayden)
C++ and custom files
 
Lets say I have a .thescriptergeek file. Not even set up in registry, no program to edit it, etc. Could I treat it as if a .txt file?
[2 replies] Last: Like @coder777 said, file extensions don't matter at all for C++ (e.g.... (by boost lexical cast)
how to initialize an object array
 
I want to initialize an object array from another class with the default constructor, is it possible? and how? here's what I've done, but I'm getting an er...
[4 replies] Last: Don't double post. It only spams the forum - http://www.cplusplus.com... (by closed account 48T7M4Gy)
Read two specific lines from text file and doing arithmetic process between them. (1,2)
 
I have a text file that I would like to read a specific lines in it. All lines have the same amount of characters (one 3 numbers on each like x y z ), and I wo...
[31 replies] Last: @JLBorges Thanks for your always awesome answers :+D (by TheIdeasMan)
Calling parent class function within child
 
I'm not sure where I'm going wrong and google unfortunately isn't helping. How do I go about calling a function from the parent group within one from the child ...
[5 replies] Last: Your program is working correctly (gives the expected results). A few... (by JLBorges)
Overloaded Functions
 
Hi, I am to create two function that will sum the ASCII values in a string. The first ASCII function solves the first string and the second ASCII function solve...
[4 replies] Last: Note that this: int sumAscii(string &seqStr, string &seqString) { r... (by cire)
Binary Conversion
 
Calculate the minimum number of binary digits needed to represent a three digit hexadecimal value.
[6 replies] Last: whats to calculate?? Apart from already having done that in the other... (by jonnin)
C++ and custom extensions
 
I was wondering, if I have a custom extension(One not editable usually, and not set up with registry) like .thescriptergeek, could I still edit the file as if i...
[3 replies] Last: Yes. Files are conventionally just piles of bytes, so you can open the... (by mbozzi)
Else without a previous if
 
I'm just starting out at C++ and I keep getting the error: 'else' without a previous 'if' even though I'm sure it should work. Here's my code: http://cpp.s...
[5 replies] Last: Instead this, maybe? Or convert the input to upper or lower and check ... (by wildblue)
May 2017 Pages: 1... 11121314
  Archived months: [apr2017] [jun2017]

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