Beginners - October 2017 (Page 25)

OOP - composition
 
I'm following learncpp tutorial(http://www.learncpp.com/cpp-tutorial/102-composition/) and linked ch...
[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 lowerca...
[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 m...
[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 onl...
[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 si...
[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 e...
[no replies]
Simple question
 
How could I get a program to check if a numbered entered it twice as big as the second number entere...
[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 throug...
[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 t...
[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 amoun...
[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 shipmen...
[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 "y...
[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 ...
[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 ...
[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 a...
[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...
[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 l...
[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 randoml...
[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 thing...
[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> #includ...
[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.