Beginners - January 2018

Having Trouble With Nested Ifs
Hello, So I'm working on an assignment for a class in which we take user input and solve for a funct...
[1 reply] : #include <iostream> int main() { char again ; do { ... (by JLBorges)
Control structures, arrays, and File Input
I need some help with one some of my homework. I am having trouble. Write a C++ program: 1. Read...
[1 reply] : This assumes that we haven't been introduced to functions. Otherwise,... (by JLBorges)
Homework Help!
Hey all! Need help with some homework... basically i had to build a program where you input your nam...
[3 replies] Last: I suggest to add function to display time to simplify code. You can c... (by codehelper)
New to this type of programming
I need help :/ According to Good Housekeeping, “water is the most underutilized tool ...
[2 replies] Last: Please note that this is not a homework site. We won't do your homewor... (by keskiverto)
Need to call function from within switch statement
Im writing a text based adventure game. Im a huge noob to C++, did a Udemy course but didnt understa...
[1 reply] : Try this // REMOVED A BUNCH OF IRRELEVANT TEXT std::cout << "SCENE 1... (by blongho)
by Raf42
Please explain code
Hi, I'm having a hard time as to understand why the answer for b is 4 and for c is 3. Any clarifying...
[4 replies] Last: Ah, thanks jonnin (1964), for shedding some light here. All the best. (by Raf42)
ifstream from one class to another
Hello. Imagine a class named Poet, with a member FirstNAme, LastName and class named Verse as Poet's...
[2 replies] Last: @Eniozat Thank you so much for answering my question! But I've already... (by nick2361)
Pancake glutton 4 stars last step
Hello, I have been coding with c++ for about 2-3 weeks now and I have been stuck with one exercise c...
[1 reply] : @JustinPlusPlus you should make a struct that can hold each person and... (by blongho)
Having trouble with "double"
I am having trouble with double. The program seems to rounding when it feels like it depending on th...
[9 replies] Last: Hello CantSpel, Another thing you could is remove the comment from li... (by Handy Andy)
C++ Struct array calculate wage
I have to calculate the wage for each employee. How would I write a function to do this? And how wo...
[7 replies] Last: Thanks alot I got it to run properly. Appreciate it (by tidematic)
problem with extracting data from file
Hello, I'm trying to extract data from a text file and writing them to a vector of testLine objects ...
[3 replies] Last: Line 64 should be testLine t{ greeting, fruit, v1, v2 }; . Line 73: ... (by dhayden)
homework help
the problem states that the program will run but there are logical errors, im simply too noob to fin...
[4 replies] Last: Let’s say you can buy 2 pounds for 6$. That means 1 pound = 3$ So yo... (by Lager159)
Trouble getting percentage of number.
I am trying to finish the last bits of this homework assignment. My code works for the most part but...
[5 replies] Last: What is the difference between static_cast<double>(votesTotal) , and... (by Ganado)
HELLP!! I am a complete beginner
I want the input to be taken next to the text as shown in the image? image link:
[3 replies] Last: Hello punchingmachine, Now that you have a better understanding this ... (by Handy Andy)
by al8888
Segfault on deep copy
Hi I've got to write a class called course that makes two objects and has a function that one time h...
[7 replies] Last: You should always avoid pointers when you can. You should always avoid... (by Repeater)
Helllo,guys,the bug of 21point poker game
I have made a small game in 21point poker for player vs bot.However,the bot always draw the same poi...
[3 replies] Last: thx (by toby1a05)
C vs C ++ and is it worth it?
Hello. I have a question. What programming language should I use, C or C++, and should I even use t...
[3 replies] Last: /shrug one way to look at its that you can write c++ code exactly li... (by jonnin)
Help HW
The program runs and everything. So, I am guessing I am just missing something simple?
[8 replies] Last: Any one else willing to help? I appreciate everyones time! (by Wholetruth)
by Millet
Help With Class Homework
I've been working on the below question for a little bit. I answered all of the questions, but I'm n...
[1 reply] : duplicated (by ne555)
Problem reading char from file
The code reads the last character twice. I don't know where is the problem!! here is the code: int...
[3 replies] Last: To read in a character, the file stream simply needs read in a single... (by Ganado)
January 2018 Pages: 123... 22
  Archived months: [dec2017]

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