Beginners - March 2015 (Page 15)

Array problem
 
I don't know how to even start this one. The problem states: Ask the user for 9 values, either ‘X’ or ‘O’. Check the user input as it is entered. ...
[7 replies] Last: Refer to my above post @TarikNeaj (by shamieh)
by Dimsky
error in the output
 
can anyone help with this? the error is in the output . the output: http://s300.photobucket.com/user/Dimass_Kurniawan/media/Untitled_zpsuwlzkz0w.png.html ...
[4 replies] Last: thanks for fun2code for your help now the problem is solve ^^ (by Dimsky)
Can't get output to display decimals or last radius
 
I am doing a project in which I must display the volume for a sphere given the radius 0 thru 4 in increments of 0.2 For some reason I can't figure out why th...
[no replies]
Confused about CircleClass
 
I'm not so sure what to do here. I just need a little bit of direction as to where I should start. #include<iostream.h> #include<lvp\string.h> #include"Strin...
[3 replies] Last: First, in order to call "getVolume" on line 9, the function has to be ... (by keskiverto)
Prime Factors
 
I have an assignment that I just can't figure out: Write a program that displays the prime factors of an integer entered by the user. If a number is a prime fac...
[1 reply] : #include <iostream> using namespace std; int main() { char choice... (by JB252)
by Fink
WHAT IS THE BEST EXPLANATION FOR THIS OUTPUT??
 
"HOW DOES THIS PROGRAM WORK?" AND "WHAT IS THE CONCEPT OF THIS PROGRAM?? @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ A B C D ...
[8 replies] Last: So you have the code for the program, and yet when you ask how the pro... (by Smac89)
time in seconds
 
basically i need to create a function that calculates time in seconds before two objects meats which are moving forward each other #include <cstdlib> #inclu...
[4 replies] Last: a function should have type and parameters. I think you did not pass t... (by a3625799132)
by ayusch
Order of calculation in cascaded cout
 
when I run this code it gives the following output: 21 20 21 can somebody explain this output please. #include<iostream> using namespace std; in...
[7 replies] Last: it is the problem about postfix and prefix. You can look up online. (by a3625799132)
Help with a program
 
The program should read integers from a text file and then determine if the sum of the odd numbers is equal to the product of the equal numbers. the text fil...
[4 replies] Last: prodE should be initialized to 1 on line 15. (by fg109)
Converting unsigned Binary numbers to decimal
 
I've made a small little program to convert binary numbers to decimal, but the problem is that I have to type each individual number one by one. Is there any wa...
[2 replies] Last: Yep, That did it for me. This code works. Thank you very much :D #in... (by cbsestudent)
Help with function please
 
Write your question here. I want it to print the number i input however it only let me input number but it doesn't print out the result #include <iostream>...
[2 replies] Last: You need to define int myabs (int val); after main. Right now you... (by JB252)
Helpp!
 
Write a program that prompts the user to input a sequence of positive numbers to test whether each one is prime or not. The program should display a message in...
[2 replies] Last: create a bool for prime and set some conditions. Think about the basic... (by JB252)
pass arrays between functions
 
I just learned about arrays and am having trouble getting them to pass to another function. I have an array that gets fill with randomly generated scores th...
[13 replies] Last: The getScores() returns one double. That is why the line 16 is simi... (by keskiverto)
help me write comments on the following program
 
#include <iostream> #include <cstring> using namespace std; class Account { private: char number ; //account number char type; //account typ...
[6 replies] Last: Why would we write comments for you? You are best suited to do that an... (by JB252)
Sorting elements in array without repetition or vectors
 
Hello everybody. This is my first post here on the c++ forums :D I made a code for sorting the elements in an array in ascending order without repetition withou...
[7 replies] Last: int SZ= sizeof( nums ); That returns the number of bytes in th... (by AbstractionAnon)
How do you make a program check if an input is a float or a integer?
 
I'm making this program for math class, it's going to check what real number class a number is in. I want the program to check if an input is an integer or a fl...
[5 replies] Last: Do not use to_string(). If I entered a 3 and you store it as a double... (by fg109)
Help with prices !!
 
ok this is my first time asking for help but if someone could help me i would appreciate this. I have to make a program that calculate parking ticket prices ...
[4 replies] Last: Glad you did :) (by TarikNeaj)
error while debugging
 
Im trying to create a quadratic equation using class, and to put some values into it. first i was trying to print it in the form of "ax^2 + bx + c" and second i...
[6 replies] Last: try to put evaluate and print inside the class. They are members o... (by AbstractionAnon)
point of sale system and inventory
 
I need to create a point of sale system and a inventory. The point of sake system should reduce the inventory when a(n) item/s are purchased. It should save the...
[no replies]
by LGoh
Help with if else statements
 
I've been facing the problem in which an error message: In function 'int main()': 16:1: error: 'else' without a previous 'if'. I've included an "if" on line 11 ...
[4 replies] Last: You have semicolons (;) after the if on line 11, the else on line 16. ... (by kevinkjt2000)
March 2015 Pages: 1... 1314151617... 51
  Archived months: [feb2015] [apr2015]

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