Beginners - September 2016 (Page 18)

by Dez
How to compare a input string with a pre-set string??
 
I am relearning C++ after 2 years off and I have been using Lua lately, so I don't see exactly why this doesn't work...? Help void chooseTeam(void) { string...
[2 replies] Last: ty (by Dez)
Menu driven with switch class
 
Hey Guys! I'm kind of new to coding, and I apologize beforehand for my slowness. So i'm trying to make a menu driven code for practice. I have it so the user ...
[1 reply] : for(;;){ cin >> value; switch (value) { case 1: cout << "you've chose... (by SakurasouBusters)
Cin.peek() Help
 
"So, to enter the point (3,-4), the user should be able to enter any of: (3,-4), 3,-4), (3,-4, (3 -4), 3,-4, 3 -4), (3 -4, or even 3 -4." My teacher told us ...
[2 replies] Last: That is what i am trying to do. The tutorials dont really help me. Can... (by fivestar)
by mzq188
Heat transfer 2D to 3d
 
I wrote a 2D array for an equilibrum boundary condition problem that is a basic heat transfer problem. Now I need to go to 3D using this same code, if anyone co...
[3 replies] Last: i guess what i am really asking is if someone can help me expand upon ... (by mzq188)
How to get numbers in ascending order?
 
Hello! I have to write this program that gives a certain amount of cubes that the user requests. I've got the program all set up so that it allows the user ...
[7 replies] Last: Learn more about the for-loop : http://www.tutorialspoint.com/cpluspl... (by SakurasouBusters)
by saner
C++ a simple question
 
My code is below : #include <iostream> using namespace std; main() { bool a; int x; cout<< "Please enter number higher than 10" << endl ...
[4 replies] Last: Hello saner, Actually closed account has the answer. Once I changed l... (by Handy Andy)
Why wont My Program display the Average?
 
Why wont My Program display the Average? I keep getting numbers like -1.231230e044 no matter what i do... #include <iostream> #include <string> #include...
[5 replies] Last: Member initializer list. http://en.cppreference.com/w/cpp/language/ini... (by SakurasouBusters)
Cin.get is not working!Help...
 
Is there a reason why my program executes the last cout command, but skips over the cin.get at the end? #include <iostream> #include <iomanip> using n...
[1 reply] : cout << "Enter how many adult tickets were sold"; adultTickets = cin.... (by SakurasouBusters)
by machnu
C++ Celsius to Fahrenheit conversion assistance
 
Write your question here. I require assistance with my program that converts Fahrenheit to Celsius. The program does not report any errors but will not perform ...
[6 replies] Last: Please take this advice and edit your post : http://www.cplusplus.com... (by SakurasouBusters)
Heads or Tails Guessing Game Help
 
Write your question here. I need help on how I would go about coding this problem. My assignment is to write a program that lets the user guess whether the fli...
[6 replies] Last: Awesome! Thanks for the help :) (by salomonthesav)
g++11 update in netbeans(windows)
 
Hi all, I use Netbeans 8.1 and windows 7 (hate 10). I updated g++ to the latest version by typing in the command prompts: mingw-get update mingw-get upg...
[11 replies] Last: anyone? (by closed account N8RzwA7f)
"<" is not noticing 0.10 as being less then 0
 
I'm trying to get this program to only except numbers that are less then 0, but as far as i can see the program thinks 0.5 is not less then 0 please tell me ...
[6 replies] Last: Thanks, how did i not notice this (feeling real dump). Thanks for not... (by isaacthebro)
.txt files and internal sobbing.
 
Hey everyone. SO I just started my first C++ class and we are working on a Lab assignment. All I need to do is make a program that reads this Sandra...
[4 replies] Last: It printed! for the love of god yes! thank you lol. Okay so now all ... (by DanTheHuman)
Cin.getline() help
 
I want to check if the first char is a 'n'. Not sure why i get an error at the if(x=='n') part. #include <iostream> #include <string> #include <algori...
[2 replies] Last: Thank you (by fivestar)
Help with header/cpp files
 
The way that I have to submit files for schoolwork is all in one file. I cannot have separate header files or separate source files. The teacher did not really ...
[7 replies] Last: I just noticed the assignment in line 8 is reversed. It should be: ... (by AbstractionAnon)
Do, If, and While looping errors (any help is appreciated
 
I'm fairly new to C++ and i'm doing a coding assignment where a user imputed integer between 10 and 100 will output "Music" (Sounds written out) and for each ti...
[2 replies] Last: Hello arowsmitt, One thing I have tried was to change the condition i... (by Handy Andy)
find function
 
How do I find (find function) a unique character in a string that is read in from a file, without knowing what the unique character is? So, if another string i...
[3 replies] Last: a unique character in a string I don't think that "find" is the usua... (by keskiverto)
Manufacturing Job Rotation
 
I am new to C++. I learned the language on my own by reading tutorials online and on this site. I have created a program but with limited knowledge I am finding...
[1 reply] : It sounds like this is a worker training problem. For the workers who... (by closed account iw7Gy60M)
referencing current object from class definition
 
I want to call my class TLIST function "Display()" from my other functions, such as "Remove()". How do I reference the current object in this manner? v...
[1 reply] : Just Display() is enough. The current object is implied. If you wis... (by AbstractionAnon)
by Phil15
creating array with dynamic size on a stack
 
Hi guys, I have a small inconvenience here trying to create char array on a stack which would fit the key size. The only way so far is to allocate it on the ...
[5 replies] Last: You can use a std::vector. inline bool DBStoreBase::removeRecord( st... (by Phil15)
September 2016 Pages: 1... 1617181920... 34
  Archived months: [aug2016] [oct2016]

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