Beginners - March 2016 (Page 17)

Need help with assignment
 
Hi, Last time this was really helpful. I am trying to get my C++ program to allow the customer to choose the type of car the user wants to buy and the quantity,...
[no replies]
Question about an int checker
 
I've been scratching my head all day today trying to figure out how to make an "int checker". Essentially, I want my program to ignore "guesses" that are not nu...
[2 replies] Last: Thank you for your help! After an hour or two of tweaking my code I fi... (by Sariasdong)
by Xyreh
Please help
 
Okay so my assignment is as follows: Write a program to calculate a salespersons commission based upon their monthly sales volume and years of service. The p...
[10 replies] Last: Got it to execute flawlessly now. Revised code is as follows: #incl... (by Xyreh)
Program needed to display a message
 
I need help to write a code in C++ in visual studio 2015 for displaying the following message.The program should ask the user to enter the amount in euros(doubl...
[10 replies] Last: Before system("pause"); add cout << '\n'; (by dhayden)
Code is not runing
 
i am beginner in c++, I am using Dev C++ for compiling and execution my code is not executing and return an error. $(CPP) $(LINKOBJ) -o $(BIN) $(LIBS) ...
[2 replies] Last: E:\Program Files (x86)\Dev-Cpp\collect2.exe ld returned 1 exit statu... (by sajidjavid2)
custom key value for associative container
 
Hello forum, I would like to have a customized key value in the multimap container. The type is as follows: struct HilbertCoordinate { short in...
[2 replies] Last: Hi I have the class defined as follows: class HilbertCoordinates ... (by sajis997)
I am getting an unexpected error.
 
hello guys , i am still a beginner and i am learning about random number generator and i am getting this error (error:expected primary-expression before '==' to...
[3 replies] Last: @TheideasMan yup that was the mistake, thank you (by tarekhojeiri)
by njo
Call by Reference
 
Hi, i've been struggling with learning C. I'm trying to take an input with the "get_input" function, pass it to main, then pass it to "get_output", cube it, the...
[1 reply] : Try scanf("%f", reliability); At this point in the code, reliabili... (by Moschops)
Use Linked-List Stack to Print Backwards
 
Hi, I am trying to use linked-list to print a sentence backwards. I got my program to run, but I am not getting the right output (it's not printing backwards). ...
[4 replies] Last: It worked. Thanks a lot. (by LibLife)
by sabasi
Rewriting graph in linked list
 
this is my code, i want to rewrite it in linked list rather than array bu not getting what to do. #include"graphtype.h" #include<queue> #include<stack...
[no replies]
Using 2-Dimensional Array to grade answers
 
So every time I run this code it properly calculates Student 1's answers as 100%, but when it loops to Student 2 I get 200% after typing in their answers. I d...
[1 reply] : Have you tried to reset your variables to zero at the end of the loop?... (by jlb)
Problem with classes
 
The program is supposed to do the following. I want to use a class, named student, which consists of 3 variables, name, grade and height. The name should be alp...
[5 replies] Last: Thanks everyone! (by jgg2002)
Calculating the amount of calories to maintain weight
 
I have the basis of what needs to be put down to finish this problem but I already know some of it is horribly wrong. The part where I try to implement candym a...
[2 replies] Last: Can anyone give advice as to what I'm trying to do in line 11 and 12 i... (by The117Vendetta)
Implementing a for loop.
 
I'm honestly at a loss as to what to do here. I know it's wrong but I do not know what to do differently. Any advice? The question i'm trying to solve is: Wr...
[11 replies] Last: Do you think I should form another if/else statement in my show the re... (by The117Vendetta)
Looping substring search
 
I'm just playing with substrings for the first time. At this point all I'm trying to do it take a command line argument and output the result. It works but it p...
[no replies]
by bbam19
Anyone willing to overlook my code for mortgage formulas?
 
I am extremely new, as in only doing this in university for just a few short weeks. I found that if i am extremely literal with my variable and constants it ma...
[no replies]
by skhjr
Help with overriding function
 
Can someone help me override a function? My noServiceChargeChecking is suppose to be inherited by my highInterestChecking. Everything seems to be working except...
[1 reply] : What we can tell you is that in the code that you have shown so far (n... (by keskiverto)
Help validation
 
when i type 2342342344 it will print the message out "Hey! Only one integer (1 and 2), please:", but after that i type 123123132 or 3, i have to enter twice to ...
[no replies]
by GabeJ
Trouble with strings
 
My program reads a person's name. It assigns the first name to the string first, the last name to the string last, and, if there is a middle name, assigns that...
[9 replies] Last: Hi, I meant a std::vector<std::string> There are various ways to i... (by TheIdeasMan)
Not able to figure Polynomial and Integration
 
Exercise from book pdf http://docdro.id/nrdKYMh poly.h #pragma once #include <iostream> #define MAX_DEGREE 20+1+1 class Polynomial { private: int fDegree;...
[no replies]
March 2016 Pages: 1... 1516171819... 47
  Archived months: [feb2016] [apr2016]

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