Beginners - October 2018 (Page 21)

by Seyter
FInding Rectangle area with this method.
 
I need help here. I didn't get the right output. I am trying to make program using this method but it didn't return right output. Anything wrong here? inc...
[2 replies] Last: Hi... you meant like this? Doesn't work. #include <iostream> using n... (by Seyter)
by Cairus
What is "String Concatenation" exactly?
 
I have been instructed not to use string concatenation in a project but this terminology hasn't been defined yet in the book or in class. Looking online ever...
[3 replies] Last: Yes (by mbozzi)
Help fix my code please
 
I submit my code through mimir and get full credit for quality but fail when it comes to test input. Below is my prompt for writing a program for calculating di...
[3 replies] Last: Think of it this way, Step 1. call printDistance Step 2. (you're in p... (by ToeMater)
Inheritance Seg Fault
 
I'm writing a program that contains an Athlete class, and a college athlete class. A separate class AthleteList contains a list of college athletes first the S...
[2 replies] Last: Oh wow, silly mistake, in my efforts to reduce the code so that i coul... (by ToeMater)
by Cairus
Prime Number Function
 
Hi guys, I have a school projet for which I am supposed to make a function that will determine all the prime numbers between 3 and variable N. When I run the...
[2 replies] Last: You only need to check the odd numbers, and you only need to go up to ... (by tpb)
consecutive numbers
 
can anyone tell me what is wrong with my code please. We have to come up with a code to promt the user to enter the size of the herd. Then come up with the sum ...
[5 replies] Last: will do. thank you guys so much for your help (by rascon4444)
by Satan
What is the quickest/most efficient way to clear console screen?
 
Hello world! It's great to join a big forum like this but anyways cutting to the chase, I want your advice on what to use to clear the console screen. This ...
[4 replies] Last: system cls should not trigger normal antivirus software. Cls is a per... (by jonnin)
Simple Calculator
 
Hello, I have to write a code for a simple calculator that can add, subtract, multiply and divide. The conditions are that I am supposed to provide two numbe...
[1 reply] : #include <iostream> using namespace std; int main() { int a, b, re... (by Manga)
Box2d or cocos2d-x? + clouding
 
I intend on making a physics based wacky android slingshot game. For a more professional layout and easier physics compiling do you recommend Box2d or cocos2...
[2 replies] Last: I also really want to know how to share files. My friend and I are wo... (by helios)
Single-Level Control Break (1,2)
 
The program should produce a report for a supermarket manager to help her keep track of the hours worked by her part-time employees. The report should include t...
[34 replies] Last: Thanks keskiverto. I can't believe I had never realized any of this b... (by Manga)
Question on adding 10 sums
 
Hey, I nearly completed my code, however there is one problem. I have to add 10 customers' bills and vat. I'm not sure how to do that. I have tried to perform t...
[4 replies] Last: Thanks guys. I got it to add the sum of vat and total in the loops. Re... (by CheesyForde1)
Multiple conditions in if statement
 
I produced this code if ((16 <= age && race == Vulcan ) || (17 <= age && race != Romulan )) and this runs but the result is not what I want. ...
[9 replies] Last: Hello heeyehan, Sorry for the delay, I could not stay up any later la... (by Handy Andy)
how does one create two functions that get used in main?
 
How does one go about extracting the whole part of an integer and in another function, the decimal?
[3 replies] Last: The first version has issues: int integer( double number ) { cin >>... (by keskiverto)
Shapes
 
I am trying to draw shapes by receiving instructions from a file and then draw the shapes and output them into a separate file. The shapes I need to draw are bo...
[3 replies] Last: You need to read a char first then an int and a char again. Also you n... (by Thomas1965)
by Tduck
expected ')' before 'className'
 
When I compile the following files (using onlinegdb.com right now), I get the error: In file included from main.cpp:3:0: dayType.cpp:8:16: error: expected ‘...
[1 reply] : // dayType(string dayName) dayType:: dayType(string dayName) { ... (by JLBorges)
Generate a set of random numbers in the range of 50-100 and, for each set, count how many values fall into particular ranges
 
The counter at the bottom isn't adding up the correct amount of numbers in the different ranges and i'm not sure what I'm doing wrong. Any assistance would be g...
[1 reply] : You never inititalize your counters to 0. But your code is way too rep... (by tpb)
Figures using multiple files
 
Working on a figures assignment using multiple files and i keep getting int errors The program should allow for the choice of the shape you want and to choose t...
[14 replies] Last: Hello urawrath, You are welcome. You are doing well for six weeks. J... (by Handy Andy)
looping doesn't stop
 
Hi guys! Could you help me? So the logic here why did i use two loop syntax which is do while and while, so i wanted after i got the answer or to what am i look...
[6 replies] Last: @jonnin, Thank you for advice and tips. Based on my research, they sa... (by daryledevs)
by oterus
whats wrong with these code??
 
read 2 numbers (ex: 4 7) increment 2 and decrement 1 so it will be like these: 4 6 5 7 6 8 7. (4 plus 2 = 6 -1 = 5...) im stuck at this point, i end up getting ...
[2 replies] Last: Hello oterus, PLEASE ALWAYS USE CODE TAGS (the <> formatting button),... (by Handy Andy)
can anyone please solve this problem
 
...
[3 replies] Last: Hello shaheer, PLEASE ALWAYS USE CODE TAGS (the <> formatting button)... (by Handy Andy)
October 2018 Pages: 1... 1920212223... 28
  Archived months: [sep2018] [nov2018]

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