Beginners - December 2019 (Page 10)

Hash Tables: Ship Records
 
I'm currently writing a program that uses hash tables searching through ship records. It's based off a text file I named "shipRecords.txt" containing the follow...
[13 replies] Last: Hi dhayden, thank you for your clarification. I’ve spent some time w... (by Enoizat)
array of structs help
 
Hi, I searched and found this thread http://www.cplusplus.com/forum/beginner/226483/ with almost the exact same program that I'm working on, and it answe...
[2 replies] Last: Wow, thank you! I'm wondering about the findLow/findHigh function ty... (by closed account 1Ck93TCk)
Displaying hash table problem
 
Hello everyone, I just wanted some input on this program I'm working on for class. For some reason, my hash table seems to get deleted when I try to display it ...
[6 replies] Last: Don't be hard on yourself. This stuff is complex and takes time. The ... (by dhayden)
Program end problem
 
Hello everyone.So i am making a quiz program which you'll see below.My question is how to make the program end if the answer of the question is false. #inclu...
[3 replies] Last: Hello Mariyan, You are welcome. Glad it worked out for you. While wo... (by Handy Andy)
by ICantC
Template List not deleting items
 
I have a simple template list (only using it for ints so far), and all appears to work except deleting items always fails and i'm not sure why. Below is the ful...
[1 reply] : Line 89 should be just while (iterator != nullptr) However, your c... (by lastchance)
by hk1996
NEED guidence
 
I need guidance how to create a function tat does the down below as it is very urgent. As i have no idea on how to do this :/ extracts the second and thir...
[2 replies] Last: @hk1996, need you count from the most significant digit or from the le... (by nuderobmonkey)
HELP with classes.
 
i need to choose another class to add to my program/small game. I'm stuck at what type of class to add and what it will do. doesn't have to be complicated eithe...
[1 reply] : A class called Game, which has a constructor telling it how many playe... (by salem c)
Why Won't This Show Correct Average?
 
Everything runs fine so far. It reads from an option of 2 different files provided by my professor in his compiler containing various numbers. I just don't know...
[3 replies] Last: Further hints to expand: 1. lines 31 and 32 determine the extent of t... (by againtry)
by shuki
can get user assigned varables
 
Hey, I'm making a program that encrypts a phrase using a Ceaser cipher on which the key or offset is variable. I have very very little experience and I'm stuck ...
[1 reply] : cin >> key; cin.ignore(); so it discards the line break that you pre... (by ne555)
Count words and chars from a file
 
So basically the problem I have is that when it counts the words then it no longer counts the chars , (which ever function I put first it only does that one and...
[2 replies] Last: wow I didn't realize it works now Thank you (by Ripb123)
an old assignment that I cannot seem to solve
 
Part II (5 points) In the source file, declare another array of circles with 6 elements. Using a looping statement to put the circles in the array a into the...
[2 replies] Last: Thank you very much :) (by mdh1559)
Loading a map from a text file in SFML
 
Hey everyone, I am trying to create an SFML program that loads directly from a .txt file. To clarify, the .txt file contains a matrix For instance, 0 1 ...
[3 replies] Last: The code to read in four numbers from this file: 1 2 3 4 is identic... (by Repeater)
Loading a map from a text file in SFML
 
hey everyone, I am trying to create an sfml program that loads a map from a .txt file Let's say the .txt file contains the following 0 0 0 0 1 1 2 3 2 ...
[1 reply] : Duplication post: http://www.cplusplus.com/forum/beginner/266027/ (by Repeater)
AVL Tree this-> was a null ptr exception
 
I need help with my project for data structures. I am trying to construct an AVL Tree, I keep getting an exception thrown that states this -> was a null pointer...
[9 replies] Last: I think i've got it to work, thank you for all your help! (by Jorge626)
array vs vector problem
 
Hi; Please help me to solve my problem. There is an array of integers (tab ). I need to extract elements form this array (into a vector) in the following orde...
[7 replies] Last: Hi Lastchance my Father in Law solved it in Mathlab this way. Now I t... (by mierzvoj)
Letter Grades Counter does not work
 
Hi everyone, This program is supposed to count how many A B C D F, get the highest, lowest and average. I haven't figure out the highest and lowest yet but ...
[4 replies] Last: A second pair of eyes can be useful. Far more useful is your debugge... (by MikeyBoy)
Connect two Android devices via router
 
So what is your actual question?
[no replies]
void value not ignored as it ought to be
 
My programming is not running how to remove error #include<iostream> using namespace std; class Data { public: int a; void print() ...
[3 replies] Last: d.*ptr=10; makes no sense. What are you trying to do? (by Repeater)
Pointer declarations ane meaning
 
I need help interpretting these declarations for a homework assignment. No lecture given. And i'm having trouble googling this up. float (*x)(int *a); (b)...
[2 replies] Last: C's declarators are designed to be suggestive of usage. For example, ... (by mbozzi)
Grabbing different type variables
 
So, I'm not sure how to really go about this. Basically the user is going to enter 2 different pieces of data. A character and a number, think of it as a grade....
[3 replies] Last: Hello gradePerc, Since you asked for all help. Your first bit of pos... (by Handy Andy)
December 2019 Pages: 1... 8910111213
  Archived months: [nov2019] [jan2020]

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