
please wait
Hash tables |
Hi, I am trying to learn about hash tables, but everything is watch or read is either just saying what they are, or its really advanced and i dont understand a ... |
Nov 4, 2019 at 3:28am
[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 just so I can better understand how functions work. If I i... |
Nov 4, 2019 at 1:45am
[2 replies] Last: And it works! Thank your for the quick response! (by closed account 1Ck93TCk)
|
by codeq12
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 fullName; int* scores; status stStatus; int average; in... |
Nov 4, 2019 at 12:16am
[1 reply] : Here is how I dynamically allocated space for it, assuming I would ha... (by jlb)
|
by lost110
Converting maxheap to minheap
|
Hye! What changes I must make to convert the max heap funtion "heapify" to min heap! Thanks // C++ program for implement deletion in Heaps #include <... |
Nov 3, 2019 at 11:08pm
[1 reply] : I will continue under the assumption that you wrote that code. Theref... (by Duthomhas)
|
by Mungo1981
Type Mismatch between the same Type
|
Dear love Community, excause me for this little stupid Question. The Situation: I have a File x.h: typedef std::pair<float, float> Bund; I have new a y.h: #... |
Nov 3, 2019 at 11:00pm
[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. I watched their video but couldn't understand how it got t... |
Nov 3, 2019 at 10:47pm
[1 reply] : It doesn't work. Try making the last element of the array 10 instead ... (by lastchance)
|
by mdh1559
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 projects. Does visual studio let me just save an entire proj... |
Nov 3, 2019 at 10:46pm
[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 instead #include <iostream> #include <fstream> ... |
Nov 3, 2019 at 10:15pm
[2 replies] Last: Use strings Make sure you #include <string> string filename; cin... (by Ganado)
|
by codeq12
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 anything from the file. Here is the file: Joseph Blake ... |
Nov 3, 2019 at 8:39pm
[12 replies] Last: Thank you so much! It's honestly crazy how the smallest things can t... (by codeq12)
|
by dhavi546
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 isnt for my major but its a gen ed class i have to take. I ... |
Nov 3, 2019 at 6:55pm
[1 reply] : First half of your code is pretty fine, then you start to mix things u... (by Enoizat)
|
by mdh1559
User Input Validation
|
User Input Validation is frustrating. Is there a way I can make sure that spaces do not mess up my cin >> (a string here) from user and char input does not mess... |
Nov 3, 2019 at 6:22pm
[2 replies] Last: I will take a look at that in a few mins. Thank you very much. I was t... (by mdh1559)
|
by thorpedo
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 errors: 1. Stack around variable 'x' was corrupted. 2. ... |
Nov 3, 2019 at 5:04pm
[2 replies] Last: Hello thorpedo, PLEASE ALWAYS USE CODE TAGS (the <> formatting butt... (by Handy Andy)
|
by nickjonas
C++ code for this tough question
|
Can anyone explain me with c++ code of this question We know about an amazing jungle. The inhabitants of the jungle are either blue coloured or red coloure... |
Nov 3, 2019 at 3:43pm
[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 into a for one, kindly help me out. // CPP program to div... |
Nov 3, 2019 at 2:25pm
[6 replies] Last: [My apologies to the regulars, who've heard me say this about 7 billio... (by dhayden)
|
by lost110
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 for data: 10,8,3,5,12 Kindly help! #include <iostre... |
Nov 3, 2019 at 2:02pm
[1 reply] : In C++, arrays are indexed from 0 to size-1. Your code uses indexes 1 ... (by dhayden)
|
by valiciousx
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 functions but I get stucked at calling them in main .I don't kn... |
Nov 3, 2019 at 6:55am
[2 replies] Last: You haven't got enough arguments to your matrix product routine. You w... (by lastchance)
|
by ajent047
Calendar not displaying correctly
|
I am trying to get my calendar to display correctly for a project in my class. The calendar requires the user to input a number (1-12) for a month and a year no... |
Nov 3, 2019 at 6:46am
[2 replies] Last: Unfortunately, this fails all of the tests because the offset is wrong... (by ajent047)
|
by highwayman
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 added the result of a test to see whether rand() is bigger than ... |
Nov 3, 2019 at 1:58am
[8 replies] Last: Yeah you can do bit masking to get """uniform"""" distributions, e.g. ... (by Ganado)
|
by ninjz98
Graph Printing
|
Question : Draw a bar chart of 5 values entered by the user, where the y-axis is along the rows and the x-axis is along the columns of the screen. Y-axis must... |
Nov 3, 2019 at 1:24am
[7 replies] Last: Yeah, a fun challenge! // Draw a graph! // Guaranteed to get you ei... (by Duthomhas)
|
by BatJuan72
Help please
|
I don't know what I'm doing wrong, please help. Write a program that prints the day number of the year, given the date in the form month-day-year. For ... |
Nov 3, 2019 at 1:08am
[1 reply] : Don't put semi-colons after if-statements. Make sure every logical che... (by Ganado)
|