Beginners - April 2016 (Page 31)

calling function using stream
 
We just started working with stream in my class and I have to write a program that defines a function that is called with the two input-file streams and the out...
[8 replies] Last: Thanks. I had it there, didn't realize I needed to call out the .dat e... (by kanjiwa)
My Program Works but Im not sure why!
 
Hello I am new to the forum, I am teaching myself C++ using the book "Programming Principles and Practice Using C++". I am doing one of the drills were you are ...
[3 replies] Last: Awesome thanks for the help! I haven't been initializing my ints becau... (by sideways)
How should I start solving this class problem?
 
I need to check if it's possible to create 1 specific string from a selection of numbers and letters in another string. Like if I had an "available" string of "...
[2 replies] Last: You could make a map of available letters in the first string, then wh... (by phanalax)
What happens when you hi-light a header file then push Delete Key?
 
I am using visual studio 2013 I hi-lighted a header file (CandyBox.h) in Solution Explorer and hit the delete key. The file is gone in the folder. So I tho...
[7 replies] Last: thank you (by justcolorado)
Card Game
 
Hi, I am trying to figure out how to create a card game with 5 players in it. The mission of the game is to collect 7 cards of the same suit you choose. You ...
[3 replies] Last: Only 35 cards are in play. The rest ones are simply ignored. (by nikgun1984)
TIC TAC TOE. HELP
 
When Someone wins the game, it does not print out the winner. It just ends. How do i get it to print out the winner. #include <iostream> #include <stri...
[1 reply] : Lines 102-125: gameOn = false; bool wingame = true; if... (by ChajusSaib)
outputting
 
So using templates, I'm supposed to output the following: ] This is what I have so far, confused on how to do this. Any help appreciated. class pi...
[1 reply] : This is what int main() will call it by: const pizza<int> pizza1(5, ... (by tdownage)
Arrays in Classes
 
Happy Friday everyone. This program is 1/3 complete, but it still runs. I have to define a class and declare an array of strings with 7 colors. I set up a defau...
[5 replies] Last: #include <iostream> #include <string> using namespace std; class ... (by Ganado)
Tips on Multiple choice quiz
 
does any one know how to get the RNG to generate multiple choices for a problem and have the RNG also decide which of the choices is the correct one for problem...
[no replies]
Expression must have a pointer-to-object type error
 
Hey everyone I'm getting the error: expression must have pointer to object type. I'm supposed to be reading data from a .txt file. It's supposed to be for audio...
[1 reply] : amplitude is an int, not an array. The array access operators only wor... (by phanalax)
For loop in main function
 
Please help with including a for loop in main function that allows the user to repeat the calculation of the volume for new input values five times. The program...
[4 replies] Last: Thanks @keskiverto got it! I was using i >=5 instead of i <=5. (by christager)
by Bb83
Question about reading files/finding max number and name
 
So I am working on a project currently, that takes a name, gets 5 judge scores, finds the highest and lowest, and finds the average minus the highest and lowest...
[11 replies] Last: I figured it out! Thank you all for your help. (by Bb83)
square, square root, cube root
 
write a program that will display the square, square root, cube root, of numbers 1 to 100 and sum their totals
[1 reply] : Please note that this is not a homework site. We won't do your homewor... (by keskiverto)
problem with lvalue
 
I get two errors: error C2106: '=' : left operand must be l-value IntelliSense: expression must be a modifiable lvalue Here is my code Head.cpp void...
[3 replies] Last: The compiler has no idea what the "List" is on line 13. By the time i... (by keskiverto)
line-drawing box-drawing in console
 
I found this code in the archives (credit: andywestken): // Hello World! in a Box (for Windows console) #include <iostream> #include <string> using nam...
[1 reply] : See Code page 437 (IBM PC) http://www.ascii-codes.com/ Another way to... (by Chervil)
C++ intro class
 
I need help passing the "seat array" into the buyticket function. I have made the seating chart but i cant get the '#' to change into '*' when purchased. The se...
[1 reply] : Please post your code inside the code tags. Simply select all your cod... (by ephraimr)
Erro: Need typename because vector<type> is a dependent scope
 
I am writing a class for a priority vector, but I am facing trouble when I declare an iterator with <type> which is the typename of my class template. The error...
[3 replies] Last: > why does it need that? Type was already declared at the template. S... (by JLBorges)
cplus
 
Post reported for spam.
[no replies]
Confused about Implementing a Template
 
Hello all, I am trying to implement Template to my code listed below but I guess that I am very confused on the proper way to go about doing this. I read a coup...
[4 replies] Last: Awesome! I get it now thanks Peter87 (by stilts9119)
Proper of protecting from bad input. What is the professional way of dealing with it?
 
I am currently going through professor Stroustrup book: "Programming principles and practice, 2 nd ed.". It is a task from Chapter 5, task 5 - Write a Celsius ...
[2 replies] Last: YOu really need to convert the menu_choice to lower case, if you're go... (by mgoodall)
April 2016 Pages: 1... 2930313233... 43
  Archived months: [mar2016] [may2016]

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