Beginners - February 2016 (Page 19)

HW Help
 
Hello guys, I'm having trouble with my project. When I compile the program I get "expected unqualified-id {" How do I fix this problem? Here's my code below...
[2 replies] Last: shoot! thanks i fixed that now it works (by oscClippers)
99 beers
 
I'm new to programming and here is my assignment. Problem: Write a program that outputs all 99 stanzas of the "Ninety-Nine Bottles of Beer on the Wall" so...
[6 replies] Last: Got it thank you for your help (by doctterdre)
friend class?
 
Hi, I'm trying to access the vector foodOrder from customerOrder (via printorder) by declaring it a friend but it's not working? class food : virtual pu...
[4 replies] Last: here's my code now, or parts of it ... class food : virtual public ... (by closed account N8RzwA7f)
How does the boolean operators work on <string>?
 
What is happening behind the Boolean operators (<) and (>) when comparing two strings? Is it logically like this? string Word1 = char Word1 ..where Word1 =...
[1 reply] : http://stackoverflow.com/questions/13829434/using-the-less-than-compa... (by TarikNeaj)
How to determine the lowest number from a list of numbers.
 
I have been assigned to write a program that utilizes functions. I must use a function to acquire 6 test scores, a function to drop the smallest value of the t...
[4 replies] Last: // int& score : reference to int parameter void getScore(int& score)... (by integralfx)
Future Value Program
 
My program is not running, my class use this compiler cpp.sh/5cgy would appreciate someone helping me get this to run, im new to this so i need to it to be expl...
[2 replies] Last: r is the interest rate in a period of time, t is the number of per... (by Zeromos)
[sfml] Math help?
 
I'm not sure if this is the place for this, but I am struggling with doing the math for a game I am making. I am making code to fill the screen(Stretch the til...
[12 replies] Last: I use it in the line: _textureSize.x = (_texture.getSize().x) / NUMBER... (by jdm1891)
Calculating salary (feedback on code)
 
Hey all, I getting some practice using functions and would like some feedback on my code. I wrote this to calculate weekly pay, monthly pay, and annual pay. I'...
[2 replies] Last: ahh thank you. I think I was testing to see if it works and forgot it ... (by cstudentc)
by gaara1
Audio manipulation
 
how to change a word in an audio file using c++?
[no replies]
Insertion Sort of an Array
 
I am given instructions to "Write a sort function that takes an array and sorts the values." I believe I have the gist of it here, but I forced myself to increm...
[4 replies] Last: Again, keep things simple. You have your output inside the input loop.... (by keskiverto)
Char to Int variable
 
Hello! I need to transform character to int variable. For example: int x=1; char ch='x'; and I need to return ch as an int variable (which is 1) n...
[12 replies] Last: @TarikNeaj Thank you, you are correct. [quote=MagicKriss]I have to ma... (by Chervil)
Access specifier in Inheritance
 
The following text is from the link: http://www.cplusplus.com/doc/tutorial/inheritance/ "Actually, most use cases of inheritance in C++ should use public ...
[2 replies] Last: thanks for your reply. (by saherch)
Help with making plurals in code
 
So for class we have to write a program like below - it breaks down cents into USD in that format. The only problem I have is that there is one of a unit it has...
[no replies]
Calling An Individual Class When There Is Many With Same Name
 
Calling An Individual Class When There Is Many With Same Name? The below code creates many instances of the Property class. However how would I go about call...
[5 replies] Last: @Moschops thank you for the reply, It says I need to create a pointer ... (by connormcwood)
How do I check for a palindrome and check the n amount of numbers to make it one?
 
Write your question here. I'm trying to make a program that takes user input of an integer and outputs whether or not it is a palindrome. If it is not a palind...
[no replies]
My last Bool Function
 
I do not Understand how to make a function that checks to see if the linked lists are in Ascending order, especially since you can not index in Linked Lists. Th...
[no replies]
Help with Summation Loop
 
I'm trying to figure this loop out but the output isn't showing because I keep making an infinite loop I think. Can anyone help me fix this? Radius and error...
[6 replies] Last: Yeah I'm pretty sure. The whole code is one giant choice statement. Sh... (by Spaceman Zeta)
by Masego
Raising the second integer as a power to the first
 
My instructor assigns Design and Implement a C++ program to do math. Accept two integers from the user and Output their sum, difference, product, quotient, rema...
[2 replies] Last: I apologize for not using code tags. But thank you! (by Masego)
number guessing game no more than 5 tries
 
QUESTION: I'm trying to write a program to plays a number guessing game. The program currently gives the user as many tries need to guess the correct number. H...
[7 replies] Last: Thank you for all your tips! I solved it thank you! (by alexexcl)
by froz
Basic C++ assignment guidance needed.
 
Hello. I'm new to C++ and I need to create a program like this: You first ask for a number, let's say I input 6 and this is what I should get ****** ***** ***...
[5 replies] Last: My pleasure^^ (by TarikNeaj)
February 2016 Pages: 1... 1718192021... 46
  Archived months: [jan2016] [mar2016]

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