Beginners - September 2016 (Page 17)

by rlake
Overloading the <<, + and - operators for a matrix
 
Hello, I am having some difficulties with an assignment in my Data Structures class that I was hoping someone could help me with. The assignment is to cre...
[1 reply] : otherMatrix.board (by ne555)
Hint please!1
 
What is wrong with this code?? I am supposed to take the min and max in RandRange and the return should be the random no. b/t min and max using (rand() % (1 + ...
[2 replies] Last: Thanks dude I really appreciate it... Thank you. (by MichaelBhattacharya)
My project
 
Can someone check over this for me and see if its correct i still don't have my book lol a program to calculate sales totals for a general store. Your progra...
[2 replies] Last: hello jpadilla, My observations and suggestions: I would add the vari... (by Handy Andy)
C++ Code Help
 
Write your question here. Not sure how to go about doing this: : Roll an arbitrary sized die three times and total the rolls together. Ask the user for how ...
[2 replies] Last: Roll 6 sided die. dice1= rand() % 6 + 1; So change the 6 to your va... (by SamuelAdams)
by HG319
Comparing four number for min
 
I have four numbers and I need to find the min, but the min cannot be zero. What would be a simple algorithm for that? I originally used the std:min() but th...
[3 replies] Last: The check each value to make sure it's larger than 0. (by SamuelAdams)
by nixadD
Can you call a function from inside a class function?
 
Good morning everyone. Have a question about calling one of my dice roll functions from inside a class i have made. Is this possible to do with C++? I'm g...
[4 replies] Last: Still don't think i'm going about it corectly. What do you think about... (by nixadD)
by Frenzy
Logic Error: Validating a string input.
 
Hey guys, I've been working on some code that is supposed take in a string, test if the string contains integers only, and then convert it to a double. It is...
[no replies]
by darje
sorting link list from small to big number
 
iam already sitting 5 hours to understand how to make it without any sucsses can someone pls help me if i have link list like : 11->3->4->55 after the functi...
[no replies]
Professor marked me down because my code was lacking. What do you think of my code?
 
I'm very upset right now as I'm nearly failing my C++ part 2 class (I took part 1 last semester and got an A). So my C++ professor gave me a low score on a home...
[5 replies] Last: Program Output ***** This is the initial inventory ***** -----------... (by mpark4656)
Create a menu-driven program that allows the following
 
This is due soon and I cant seem to get it to work. I am working with Dev-C++. We are suppose to do the following and no matter what I have tried I can seem to ...
[4 replies] Last: I was able to get the main menu to print out but when I choose the fir... (by MoleskiH25)
Pointers & Function Signatures
 
Feedback to finish my program: 1. Once you assign the pointer addresses to the pointers, use them to get the value from those locations. 2. Also, you still ...
[no replies]
i have problems with if- else statements
 
how can i make this code works? it is supposed to give me "Unable to make a diagnosis" only when i answer the questions with characters other than 'y' or 'n', b...
[1 reply] : Try if (fever != ('Y') && ('N')) (by SamuelAdams)
by Tekkin
(Super Beginner) Need help multiplying to get percentage
 
I can't get my code to show a percent when I divide my percent/100 it just shows 0 when ran. I am extremely new to this but am enjoying the learning experience ...
[1 reply] : Int's will only show whole numbers, so percent needs to be a double. (by SamuelAdams)
Implement Binary Search Algorithm
 
The assignment I'm working on is creating a recursive binary tree function that runs O(log n) in the worst case. I tested this and it works, but I don't know i...
[no replies]
Why put parameters that are never used in a function?
 
I have been reading lots of code and there are lots of functions that have parameters that are not used. They just put a lot of the same parameters in. Why do t...
[1 reply] : Could you give us some examples? (by shadder)
Mean and Median of two different files.txt.
 
Write your question here. somebody please help, i've been on this since yesterday,it was compiling before but the calculations were wrong, now it's not even co...
[7 replies] Last: Some variables are still unitialized. Variables start off witha rando... (by kevinkjt2000)
Parallel Array Sorting HELP Beginner here
 
HELP! it seems my output only compare 2 element. Any1 can help me fix and tell me the problems much appreciated. Write a program to read 5 person's name and ...
[2 replies] Last: Okay. Thank you. I will try it out :) (by DesmondLee)
Help with this program.
 
Write a program that is able to compute some operations on an integer received from the user. At the beginning, the program displays the value of the integer en...
[4 replies] Last: Okay. Thank you (by DesmondLee)
by Verna
Arrays and stored doubles
 
I am trying to work through this assignment for a class discussion which I am late submitting because I am not well. I have started writting the code but I am...
[2 replies] Last: Thank you for your quick response I will give it a try and will also c... (by Verna)
CLRS Merge Sort Help
 
I'm trying to implement the merge sort algorithm explained in Intro to Algorithm, but I am unable to produce the correct result. Can anyone look at the code and...
[1 reply] : Nevermind. I figured out my mistake #include <iostream> void merge... (by mpark4656)
September 2016 Pages: 1... 1516171819... 34
  Archived months: [aug2016] [oct2016]

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