Beginners - October 2014 (Page 60)

What would be the formula in code for this?
 
The question: When equal amounts are invested in each of three accounts paying a1% a2% and a3% interest, one year's combined interest income is $S. How much ...
[4 replies] Last: using namespace std; and system calls are not preferred but that's... (by closed account 48T7M4Gy)
Int to String Conversion in Loop
 
I'm writing a program in which I have to concatenate an item name and item number. To do this I have written the following function: string catNameNum (In...
[3 replies] Last: Thanks @Keene. That's what I had in mind, just didn't know how. (by jdwright)
Help with Output
 
Hello. My main works properly but I believe my functions are not working. When I run the program, there is no output. What I'm trying to do is create an arr...
[8 replies] Last: Thank you MiiNiPaa. I have everything working now except for the 25th... (by WishonTD)
by JL360B
Enrollment System Help.
 
Hey guys! I was making some program related to file handling. though the codes are right. Creating a profile is good but my problem was displaying it. For exam...
[no replies]
Array question
 
Hello. I'm just a beginner. Here is my problem. I have a data file with an unknown number of integers. I initialized an array of 100. I then input the file...
[3 replies] Last: thank you hyperfine...that's exactly what I did and it worked out fine... (by WishonTD)
New to C++, Loops Help
 
Hello, I have an assignment to write a random number guessing game that generates a random number between 5 and 15 and asks the user to guess what the number is...
[11 replies] Last: #include<iostream> #include<ctime> using namespace std; int main() ... (by shadowCODE)
Display graph, showing how many times a digit appears in sequence
 
Hello! Im having some problems with my program. I need to display a graph, showing how many times a digit appears in the numbers of the sequence, for each possi...
[1 reply] : Something like this? #include <iostream> #include <ctime> const int... (by mobotus)
Please.....Help with new program!
 
Program has No errors, but the program only prints on the screen " Please enter student's name" continuously and does not stop. // The program will read...
[4 replies] Last: Will this work? // Programmer: David Weeks // // Course Name: CIS 301... (by David623)
Function overloaded help please
 
So I got 3 functions with different data types, and I also need to sort an array of numbers that are: valListInt = 23, 2, 34, 23, 43, 22, 32, 32, 43, 34 val...
[2 replies] Last: Yeah exact, I need to be more careful when making indexes, already fix... (by guirampani)
Function to sort numbers showing wrong output, can't find the error
 
Hi guys, I got an assigment for cpp and it asks me to create a program to sort a list of integers, long values and double values using function overloaded, I ha...
[3 replies] Last: Oh yeah I got it haha OMG took me so long to understand that. Fixed t... (by guirampani)
difference between <cmath> and <math.h>
 
Hello, I'm currently working on my homework assignment. I do not really need help on it because I understand it and i'm watching online tutorials to further...
[5 replies] Last: That looks correct, but note that you could also save yourself the tro... (by Ganado)
atoi instead of stoi
 
Hello, So I'm working on a program that computes the difference between two times that are input by the user. Below is a function to take the input, split i...
[no replies]
Syntax error
 
Hi am getting a syntax error in my pack_init function but I am not sure how should I fix it. I am basically trying to read from a file that reads in this format...
[no replies]
Entering Data into a 2d Array.
 
Hello everyone, I'm trying to enter data into a 2d array, but I am not sure if I am doing it right. I have entered data into a single array before, but not two....
[4 replies] Last: #include <iostream> using namespace std; int main() { const int r... (by anup30)
For loop troubles.
 
I'm having issues and for the life of me I cannot figure out what I'm doing wrong. I debugged this and when it gets to the for loop the variable bb3 is set t...
[2 replies] Last: doh, thanks a ton. (by mishappp)
Sum of random number
 
Here I have a program that asks for how many random numbers I would like to generate. Say one of the number is "6828". The sum of it would be 24 (6+8+2+8). How ...
[2 replies] Last: On a second thought, #include <iostream> #include <vector> #include ... (by shadowCODE)
input source
 
I always have this question but am not sure if I should ask it here Well am wondering if c++ programs only relay on inputs from Standard input and files on...
[6 replies] Last: Thenks i appreciate, lemmi check it out. (by closed account SECMoG1T)
Classes and inheritance
 
So I wrote a simple code about classes. I have two questions: 1) can I avoid giving definition of the default constructor? 2) can I put the default constructo...
[9 replies] Last: So I can't avoid not defining the default constructor in this case, b... (by MiiNiPaa)
Design a 4 bits Shifter.
 
Does anyone know how to design a 4 bits Shifter. In this circuit, you should have 4 inputs for input value, 4 outputs, and 1 input used to determine right/left ...
[2 replies] Last: Example: for the input value 1010, it is 0100 after a left shift or 01... (by whoovian11)
by iluv41
infinite loop issue
 
The goal of this function is to convert a large number of inches into the format 'miles, yards, feet, and inches'. But for some reason my code is stuck in an i...
[4 replies] Last: is your function complete? There should have been compiler errors from... (by shadowCODE)
October 2014 Pages: 1... 5859606162... 70
  Archived months: [sep2014] [nov2014]

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