Beginners - October 2015 (Page 9)

Stuck on my project
 
Hi guys im so close to finishing my project of building a coinflip game where you choose the percentage chance of it landing on heads and how many times u want ...
[4 replies] Last: By the way that call to rand() is not necessary. (by jlb)
Saving a value in a for loop.
 
It computes the value, but then i need it to save that value and compute it again with the new value. cout << "What is your deposit : "; cin >> p; cou...
[1 reply] : Since you're doing compound interest, you want to multiply a by pow((1... (by tallyman)
by yehozz
Vectors, linear search, bubblesorting program
 
Alright, i am not quite sure how to manage this but i am kinda stuck to get this program to work. so i am looking for comments on it, its probebly aloth of erro...
[5 replies] Last: Anyone have a suggestion to fix? (by yehozz)
Numbers of Interest using Input/Loops?
 
I just need help or at least a few pointers on how to get the computer to go through numbers 1-2000000000 and tell me which numbers contain the number seven. An...
[1 reply] : For the "bool" problem. Look at each of the if statements, do all of t... (by jlb)
Reading a file and defining an array
 
My program is suppose to read integer values from a .txt document of scores. It then is suppose to determine how many students have scores within ranges of 0...
[2 replies] Last: Why do you think that the program is not reading the file? Did you get... (by jlb)
couple quick questions
 
I am studying for my C++ test that is coming up later this week and I am a little confused on two of the review questions. Hoping someone is able to give me a l...
[5 replies] Last: @TheIdeasMan: That's right! Duh! Thanks for setting the record strai... (by koothkeeper)
if and switch statement need help
 
im not sure what im doing wrong im trying to use if and switch im trying to find the area of a rectangle or a triangle so i want the user to type in triangle...
[3 replies] Last: First thing you must know is that if/else is a statement or series of ... (by PopRockCandy)
by ottob
Error code
 
Hi all, I really need some help with a program I am creating. I keep getting segmentation fault (core dumped) when my program tries to display some information....
[3 replies] Last: first of all, segfault always appear when you access a byte or block o... (by xenovia12)
Descompose in prime numbers
 
I have to make an algorithm that descompose the number in prime factors. I did it but it`s not good because it shows "*" at the end and that`s the problem. My...
[no replies]
Problem with pointer
 
I'm a beginner in c++, and I try to solve a polynomial problem with linked list, when I execute the program it stop executing and a window shows up saying that...
[2 replies] Last: Thank you so much (by meagain)
Seg fault and bus error
 
Hi, Can anyone give examples on what cause segmentation fault and bus error? How do you know which part of the code is problematic and how should I resolve the...
[3 replies] Last: The input, N, is guaranteed to be from 4-10. So will I go past the end... (by lock988)
Need help with comparing an input to an array list
 
Hello I need some help here. i need to make a second for loop to cycle through all the numbers in the array and compare each number to the number entered by the...
[13 replies] Last: Run this... #include <iostream> #include <string> #include <time.h>... (by pearlyman)
clear screen
 
what is the function of system(pause)? what mean by clear screen?
[3 replies] Last: It depends on what you want to do... #include <iostream> #include <s... (by pearlyman)
ofstream outFile
 
I can't figure how to write the output to the file Pattern.txt
[7 replies] Last: For the sake of completeness, here's my original suggestion in full: ... (by Chervil)
Need help, please
 
Hey guys, got an assignment to write a code, but since I'm a newbie in programming world, I can't do it myself, I need some help or hints, and I would be very ...
[1 reply] : Hi, Start by writing some pseudo code, make it very simple to start w... (by TheIdeasMan)
by nazis
Prime number | homework
 
Hola, so recently I started my programming course and I am not good at it yet. So let's get into the main problem, I have to make a program: "user inserts two...
[9 replies] Last: Yes, inside the Loop, you are needing to check the value of number, g... (by Codermik)
by Sh0es
Unable to Construct ifstream Object
 
I'm trying to declare an ifstream intended to be opened upon a function call (I enter a filename into the program and then the ifstream opens), but every time I...
[5 replies] Last: That should work with a conforming implementation of the standard libr... (by JLBorges)
About if & if else statement
 
What is the dffrense between if{ & else if{ ???
[4 replies] Last: Choice between two options if (...) this else that Choice... (by closed account 48T7M4Gy)
Void data types
 
I can't figure out how to save the void data types onto a file. Can you guys help me? #include <iostream> #include <fstream> #include <string> using ...
[1 reply] : #include <iostream> #include <fstream> #include <string> #include <io... (by JLBorges)
by b1477
Weird Output
 
In this weather statistics assignment i am getting a weird number towards the end of my output. Right before "Average monthly rainfall: " I am getting a repetit...
[3 replies] Last: Hi, I compiled using the gear icon at the top right of the code, I tu... (by TheIdeasMan)
October 2015 Pages: 1... 7891011... 57
  Archived months: [sep2015] [nov2015]

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