Beginners - November 2019 (Page 15)

Hash tables
 
Hi, I am trying to learn about hash tables, but everything is watch or read is either just saying wh...
[11 replies] Last: Yes, its the same thing. (by jonnin)
Unexpected output from function
 
Hello, I have this simple math program with multiple functions. The purpose of the program is jus...
[2 replies] Last: And it works! Thank your for the quick response! (by closed account 1Ck93TCk)
Populating a Dynamically Allocated (2D?) Array From File of a struct type
 
In my code, I am dynamically allocating an array from structure Athlete: struct Athlete { string...
[1 reply] : Here is how I dynamically allocated space for it, assuming I would ha... (by jlb)
Converting maxheap to minheap
 
Hye! What changes I must make to convert the max heap funtion "heapify" to min heap! Thanks /...
[1 reply] : I will continue under the assumption that you wrote that code. Theref... (by Duthomhas)
Type Mismatch between the same Type
 
Dear love Community, excause me for this little stupid Question. The Situation: I have a File x.h: ...
[7 replies] Last: std::make_pair can absolve a lot of sins when dealing with pairs: ... (by deleted account xyzzy)
Repeated numbers! Need help understanding the following function.
 
"Find duplicates in O(n) time and O(1) extra space" on geekesofgeeks is the source of the code below...
[1 reply] : It doesn't work. Try making the last element of the array 10 instead ... (by lastchance)
Is there a faster way to start up Visual Studios
 
I have to open visual studio, create the header files, copy and paste, and then start working on pro...
[2 replies] Last: you are doing something very wrong. it should save everything you nee... (by jonnin)
modifying my program
 
I need help modifying my code so that it prompts the user for the file and stores the data there ins...
[2 replies] Last: Use strings Make sure you #include <string> string filename; cin... (by Ganado)
File isn't storing into a string??
 
I've referenced my textbook, the internet, and some friends. I cannot figure out why I cannot grab a...
[12 replies] Last: Thank you so much! It's honestly crazy how the smallest things can t... (by codeq12)
Need help with this program for a project
 
I have to write a program that calculates and prints a bank’s service fees for a month. This class...
[1 reply] : First half of your code is pretty fine, then you start to mix things u... (by Enoizat)
User Input Validation
 
User Input Validation is frustrating. Is there a way I can make sure that spaces do not mess up my c...
[2 replies] Last: I will take a look at that in a few mins. Thank you very much. I was t... (by mdh1559)
Code running but with error
 
I have this code that separates an array into two. I does work but it shows 2 errors, Here are both ...
[2 replies] Last: Hello thorpedo, PLEASE ALWAYS USE CODE TAGS (the <> formatting butt... (by Handy Andy)
C++ code for this tough question
 
Can anyone explain me with c++ code of this question We know about an amazing jungle. The inhab...
[2 replies] Last: Start drawing diagrams like this -> https://ibb.co/9Gmp9mf I suppose ... (by salem c)
by Euno
I need to make it for every integer
 
Hello this is only for 13/2, I want to make it for every integer and also convert the while loop int...
[6 replies] Last: [My apologies to the regulars, who've heard me say this about 7 billio... (by dhayden)
Post order traversal of min heap
 
The code is showing the right children for data: 1,2,3,4,5 but shows wrong left and right children ...
[1 reply] : In C++, arrays are indexed from 0 to size-1. Your code uses indexes 1 ... (by dhayden)
sum and product of two matrix in C (with functions)
 
I have to write a program in C which finds the sum and the product of two matrix. I wrote the fun...
[2 replies] Last: You haven't got enough arguments to your matrix product routine. You w... (by lastchance)
Calendar not displaying correctly
 
I am trying to get my calendar to display correctly for a project in my class. The calendar requires...
[2 replies] Last: Unfortunately, this fails all of the tests because the offset is wrong... (by ajent047)
extremely inefficient but works....?
 
Ok so what if I took rand and instead of modding it by the number I want and adding one, I just adde...
[8 replies] Last: Yeah you can do bit masking to get """uniform"""" distributions, e.g. ... (by Ganado)
Graph Printing
 
Question : Draw a bar chart of 5 values entered by the user, where the y-axis is along the rows an...
[7 replies] Last: Yeah, a fun challenge! // Draw a graph! // Guaranteed to get you ei... (by Duthomhas)
Help please
 
I don't know what I'm doing wrong, please help. Write a program that prints the day number ...
[1 reply] : Don't put semi-colons after if-statements. Make sure every logical che... (by Ganado)
November 2019 Pages: 1... 1314151617
  Archived months: [oct2019] [dec2019]

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