Beginners - February 2017 (Page 10)

by F95
C++ Switch Statements/Loop help
 
[1 reply] : The do ... while loop does not belong within the getFlight() function.... (by coder777)
c-string Palindrome using a do-while loop
 
I'm trying to figure out what equation should I do (after my if statement) to see if a c-string is palindrome or not using a do-while loop. Thanks in advanc...
[1 reply] : What you need is another variable like Line . Before the if you c... (by coder777)
Programming Project Help
 
The code compiles but it part of the input should not accept 0 or negative values and output certain statement in the code below. This is only the first part of...
[4 replies] Last: Hello StrikingSparrow, You may want to read this: http://www.cpluspl... (by Handy Andy)
How to read String, Int, and Floats from the same line in a File?
 
I'm trying to read and display variables that I have stored in a file. Here is what my textfile looks like on my computer. ABC 23 18.50 23.25 1.50 2.00 XYZ 5...
[2 replies] Last: Mantorr22, I tried something kind of similar to that earlier and it d... (by MisterTams)
by Frenzy
Algorithim help. Struct in Dbl. Linked List
 
Hello, first I am not asking for help with writing my code, but just thinking through the steps required to complete this task. I have a Doubly Linked List with...
[1 reply] : Double post waste everyone's time. http://www.cplusplus.com/forum/gene... (by SamuelAdams)
question (simple program)
 
My program says "volume" does not have a value when I build it. What would I enter for the volume? I'm confused. /* Program: repair1c - program prompts f...
[2 replies] Last: http://www.cplusplus.com/forum/beginner/209101/ You are missing somet... (by Hengry)
by Potion
For loop not looping?
 
(I'm learning to use "break" and thought to try it out with this) #include <iostream> #include <string> using namespace std; int main() { string respons...
[2 replies] Last: Thank-you very much! I hadn't known that was incorrect until now! (by Potion)
by xburdg
While statement problems
 
Hello everyone, this code is supposed to take tickets at a concert, count them, output them and say how many green/blue tickets you received. I am new and I wou...
[1 reply] : while (answer == 'y', 'Y') should be while (answer == 'y' || answer... (by Peter87)
Input validation and Logical OR
 
I am working with input validation and logical OR. I am trying to make an error message pop up after rejecting input where the first letter in the string is not...
[4 replies] Last: Yeah, I just edited my post before I saw yours after basically figurin... (by ghostk91)
Creating Poker Hands and comparing them
 
Currently have not written this portion of my code because im not sure how i should go about this. I'm writing a game (for fun) called dueces. Currently im work...
[no replies]
question
 
I'm a little confused on this program. Would I need to include another statement? /* Program: repair1a - program prompts for run and sine, displays th...
[1 reply] : Would I need to include another statement? You certainly need to re... (by lastchance)
by wasey
Trouble with a Nested Loop in a Vector
 
I have an assignment that is giving me some trouble and I was hoping somebody could help steer me in the right direction. I have to write a function that takes ...
[3 replies] Last: Change values to vector<int> values . I also thought that I was sto... (by dhayden)
Percent acting funny
 
Why is my percent giving me that strange number? #include <iostream> using namespace std; int main() { int assignmentamount, assignment, pointsreceived, po...
[6 replies] Last: These variables are not initialised , they contain garbage. pointsr... (by Chervil)
by n0rmal
help a newcomer
 
Hello, I am a beginner at coding, and i really need som help. I'm in the beginner stage of coding with c++, and i am using the tutorial found on this site, ...
[3 replies] Last: I have fixed my issue. Just realized i spelld' "court" and not "cout" ... (by n0rmal)
Create a templated linked list of an abstract class
 
I am trying to implement a linked list of a base class that would be filled with objects from the two derived classes. The base class itself is an abstract clas...
[2 replies] Last: I am trying to implement a linked list of a base class that would be ... (by gunnerfunner)
How can I remove spaces after an integer confirmation of a string evaluated by a function?
 
Hello, I have coded a function that confirms whether a string of chars is an int or not. But how can I code it to remove the spaces from the string before o...
[8 replies] Last: Hi Bdanielz, That's great. But I haven't started on pointers etc yet... (by Shishykish)
how to return to previous step
 
i want to design a program of temperature converter. Here is my pseudo code Pseudo-code representation 1.0 START. 2.0 DISPLAY MENU :Please choose th...
[4 replies] Last: Lines [45, 49] can be removed completely. Line 9 declares an unused fu... (by mbozzi)
undefined reference to `WinMain'
 
I write a code for creating multiplication table . When it is compiled, i meet some error. The error is 18 C:\crossdev\src\mingw-w64-v3-git\mingw-w64-crt\crt...
[3 replies] Last: ya rite. Thnx for help (by teopeishen)
Learning Pointers
 
My code does not work. It prints out 32822 instead of 12. Please help me solve. #include <iostream> using namespace std; class Help{ private: i...
[8 replies] Last: @Sanboro If you have a need to continue to use using namespace std; ... (by Pattako)
In need of help with basic functions for finding the area of a circle
 
Write a program that determines the area of a circle. It should include the following functions : getRadius - this function asks the user for the radius of ...
[3 replies] Last: Rather than having free-floating functions in the global namespace it ... (by dangrr888)
February 2017 Pages: 1... 89101112... 37
  Archived months: [jan2017] [mar2017]

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