Beginners - October 2017 (Page 25)

OOP - composition
 
I'm following learncpp tutorial(http://www.learncpp.com/cpp-tutorial/102-composition/) and linked chapter I see overloaded operator<< being completely defined i...
[2 replies] Last: There are three possibilities: a. The friend declaration in the class... (by JLBorges)
by agusx
Problem with cctype family
 
Hello, I'm doing a program that reads keyboard input, converting each uppercase character to lowercase and viceversa. However, the code doesn't work. In my opin...
[1 reply] : Line 14 means nothing (notice the semicolon at the end). You can remov... (by Duthomhas)
Stuck in an infinite loop
 
I'm trying to make a program that can convert Celsius to Fahrenheit and vice versa. I thing I have made it right, but when I try to run the code it enters into ...
[2 replies] Last: This looks sensible, while (degree != Q) { until we examine it more ... (by Chervil)
decimal to binary
 
Hey guys, I have to write a simple program that can convert decimal to binary but I can only use only nested if else statements.I just need to simply how to set...
[3 replies] Last: It is the quotient remainder mechanism. At line 22, if( number > 63 )... (by JLBorges)
Discard Single character in the array
 
Hello! I have a task to prompt user to enter file path, read it into array up to 1024 and discard single characters. I now that it is somehow connected to the A...
[1 reply] : #include <iostream> #include <string> #include <fstream> #include <io... (by JLBorges)
Help with file handling
 
Basically this is a homework assisgnment. So it is a .dat file about football. Their teams, scores etc. Now he wants us to filter and display some things. Would...
[no replies]
Simple question
 
How could I get a program to check if a numbered entered it twice as big as the second number entered. For example, If i enter 20 for my first number and 10...
[1 reply] : So instead of multiplying the first number (x) by two, you want to mul... (by wildblue)
by Joello
C++ function help
 
Hey guys so i'm trying to figure out why my code is returning all 0's for distance 'd'? I ran through the 'step over' tool and it seems like it's not even enter...
[2 replies] Last: OMG that explains everything. It worked! I was so confused. Thank you ... (by Joello)
by jsbd29
Please help with "loops"
 
I need to create a C++ program that the user type letter and the program convert the letter into a telephone number including the hyphen. Can anyone show me ho...
[2 replies] Last: thanks! I am trying it out without much success :( (by jsbd29)
Calculating the min and max using a loop
 
I am writing code for an assignment that wants me to make a program that asks the user for the amount of integers they'd like to input then it accepts each inpu...
[no replies]
by teeper
Comparing integers involving member functions & substructs
 
Hello all. I'm not getting any errors in my code, but I'm trying to do a bubble sort to sort shipment delivery dates in ascending order. Here's what I have: ...
[6 replies] Last: Hints: #include <array> #include <fstream> #include <iomanip> #inclu... (by Enoizat)
Hey, me again i need help with 2D Arrays
 
Hey guys so i just watched a lesson about 2D arrays and in the end of the video, the teacher said "you should challenge yourself with doing a multiplacition tab...
[2 replies] Last: Both dimensions of multip are size 10. this means valid indices are 0 ... (by Yanson)
Modulo operation with all elements of an array
 
Hello, I'm new to C++ and wanted to write some code which adds all natural numbers from 0 to the number given by the user except those, that are divisible by...
[1 reply] : You are testing divisibility by 5, for index 1 is the second element i... (by keskiverto)
Help me, fix this simple program
 
Guys, how i can use space in string? try this code lest you know 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 ...
[3 replies] Last: Hello duongthuan, If you are really interested in fixing this program... (by Handy Andy)
by Ch1156
Classes, Inheritance, Abstract Classes
 
I would like to figure out classes, inheritance, and polymorphism once and for all, I will combine all my questions and code about it in this post making it eas...
[11 replies] Last: Given your class definitions, are these ok and what they do: int main... (by keskiverto)
by chuvak
Creating a query function receiving an unmodifiable reference
 
Hi forum, I need to create a bool function that checks to see if an object referenced is compatible (more below) with the current object. So, here I have a P...
[4 replies] Last: Youre a genius, my friend, thank you for the help. (by chuvak)
How to pass one array element at a time to a search function
 
Hi guys, so i need to pass one array element at a time to a search function.I know I need to use a loop to pass each word separately into the search function bu...
[2 replies] Last: Thank you for the help chervil, and yea that do while loop was just my... (by closed account EAk1vCM9)
sorting random numbers?
 
hey guys i need help with a simple code. i'm super new to coding and i'm pretty sure sorting randomly generated numbers have not been taught by my profs yet. ho...
[3 replies] Last: what you are doing looks mostly like C. c++ would use <cstdlib> <cst... (by jonnin)
The program file specified in the launch configuration does not exist
 
Hi guys sorry about asking so many questions this week I'm just getting back into the swing of things,setting up my IDE,getting comfortable with the language ag...
[3 replies] Last: Still have not found a solution =( (by adam2016)
Pointer to pointer to structure
 
The problem is described in a comment in the code. Thank you for help. #include <stdio.h> #include <iostream> #include "check.h" #define MAX_DELKA 5 using ...
[6 replies] Last: Much appreciated, this is just what I need and it is far more simple t... (by Roach22)
October 2017 Pages: 1... 2324252627... 33
  Archived months: [sep2017] [nov2017]

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