Beginners - February 2016 (Page 24)

Hide input with ****
 
How do I make it so Player 2 cannot see what Player 1 is currently typing? here is the game concept: cout << "How to Play:" << endl; cout << "Player 1...
[4 replies] Last: If you know that you'll need commands with other namespaces than std, ... (by jgg2002)
by Aideux
Quick C++/C# Problem
 
So I wrote this guessing game in C#, and I want the user to be able to type 'y' or 'Y' at the end to restart the game. I've included a "do-while" loop, but for ...
[1 reply] : Hey, The problem is fairly simple. Essential things from your game ar... (by TarikNeaj)
by Lospwr
Using a program how do i solve this?
 
Design an application for the Homestead Furniture Store that gets sales transaction data, including an account number, customer name, and purchase price. Outp...
[1 reply] : http://www.cplusplus.com/doc/tutorial/basic_io/ (by TarikNeaj)
Error? help please?
 
Always error what's wrong with my code? #include <iostream> #include <fstream> #include <string> using namespace std; bool IsLoggedIn() { str...
[3 replies] Last: Here's the error ||=== Build: Debug in LoginSystem BYunknown (compil... (by TheGREAT)
Why cant i calculate how to get the sum?
 
The code compiles and it gives me -60 but i dont know how to get it. i tried 6 + 6 - 6*6 and i got -24. Any help is appreciated. #include<iostream> using n...
[3 replies] Last: Thank you guys. Saved my life. I cant believe i couldnt figure it out (by chang123)
by Dien09
Reversing a string using recursion
 
Hi, I am trying to do my homework where I need to reverse a string using recursion. I am able to reverse just the first word of a string, so far. Could someo...
[6 replies] Last: And jGRASP is also working fine after I restarted it. The program is d... (by Dien09)
Loop problem.
 
let's say user enter 1, the program will promt user to enter a txt file. whenever user input a txt file. my main menu will loop 2 times. how do i stop it from i...
[2 replies] Last: You problem is the mix of >> and getline() : http://en.cppreferenc... (by coder777)
Can't figure out whats wrong with the if statement in struct array
 
Hi.In the code below I need to create an array of structs that holds data about the patient's name and the hour of receipt.Then i have to search a patient using...
[6 replies] Last: Tnx you a lot man! :) (by etrusks)
print out even number from input using pointer
 
I'm a super beginner The only way I know how to print out even numbers is using a division. but the start form I'm given is below void validateUserInput(cha...
[3 replies] Last: It is unclear, but maybe you want to do something like this- (Note tha... (by PSYCHAMERON)
Passcode Lock
 
I need help writing a program that allows the user to input a 4 digit password. The correct password is hard coded "1234", after 3 incorrect attempts it should ...
[3 replies] Last: I saw your post and as a beginner I decided to create a passcode progr... (by cstudentc)
by bjl311
Need suggestion on how to solve this problem.
 
[8 replies] Last: I just looked at this part of your original post, Input grade (60-10... (by Jims)
by PlanC
Overloading for a polynomial program
 
Hi there, I'm kind of stumped on my program where I'm suppose to overload an addition operator (+) to add two Polynomials. Polynomial Polynomial::operator...
[5 replies] Last: How dows your class handle 2x 2 + 3x + 5 ? I am a little confused?... (by kbw)
Need help w/ using Vectors and Search
 
I am currently writing a program and am getting stuck in with what I should add in next. What I need: 1. Use a linear search function to search a two dime...
[1 reply] : I know this isn't too code heavy... You did not provide any code at... (by admkrk)
( Help please! :) )I'm having trouble reassigning values to my class' parameters default values
 
when I execute this program, nothing is returned. Help please :) Thank you! #include <iostream> using namespace std; class Student{ private: ...
[2 replies] Last: You need to cout << getGender or cout getMonth. You can't just leave... (by keanedawg)
by Mavs25
Help me with functions please?
 
Hey guys, I'm trying to output the statements from the "void storeCalculations(char requiredorsugg, char neworold, double possibilityconc)" but when I try to ru...
[1 reply] : A function call: system("pause"); A function declaration (not a call... (by ne555)
Loop problem with Newton-Raphson iteration
 
So I have a problem with the following code. In the functions NewRapHorner and HornerDivPol I am supposed to find the roots of the polynomial. If the polynomial...
[3 replies] Last: Hi, Sorry I haven't much time again, but I noticed you have this ever... (by TheIdeasMan)
by lalits
query on variable setting in unions
 
Write your question here. Setting value for id.d ,id.d ....id.d via sscanf, since its union other member which is a struct (len and s ) should have garbage ...
[9 replies] Last: Wow , you made it so simple . :( , Don't know why I couold not get it... (by lalits)
Logic Error in Basic Code
 
So we had a lab today in my CS class at the end of the period - for the last hour, we had to write a program that caculated the cost of renting a car based on t...
[1 reply] : The glaring problems are your if statements, let's just look at the ... (by xismn)
by Mavs25
Help me with my code? please?
 
For some reason, after I input 'Y' or 'N' its still showing me th error from the if statement. Am i doing something wrong in the toupper function? or is it the ...
[1 reply] : if (requiredorsugg != 'Y' || requiredorsugg != 'N') you need to use ... (by Yanson)
really need help
 
done.
[3 replies] Last: Comment your code. Make totalDays a static. That way it is only initi... (by dhayden)
February 2016 Pages: 1... 2223242526... 46
  Archived months: [jan2016] [mar2016]

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