Beginners - October 2014 (Page 56)

by Jon15
Problem with using/calling function
 
I am writing a program that will output the roots of a 2nd degree polynomial. I have to use the function find_roots, I know i am using it wrong but i am lost as...
[1 reply] : Also, i wrote a similar program before and this is it, would this stil... (by Jon15)
Array Expander Function Using Pointers
 
Still working on this same problem. My assignment is to create a function that accepts an array as an argument and creates an array that is twice the size. Th...
[5 replies] Last: This works even better, thanks again! Don't I have to delete the poin... (by blairtch)
Need Help With Linking Files For A Class
 
Im not sure if this question belongs in beginner section but i need help with how to link my classes to the rest of my code? I would put my code up but it is s...
[3 replies] Last: I dont understand what are you trying to do (by closed account 28poGNh0)
spacing check trouble
 
hello i ran into some trouble with my function. we are required to check if the spacing is valid in our input. what i was trying to do is first check if the ver...
[4 replies] Last: You want to check if the following or preceding is a space so you need... (by danghotties)
Error calling function
 
The code below is currently unfinished. It's eventually going to calculate tuition via how many credits you are taking. My problem is that when I try to build a...
[1 reply] : COMPUTE_CHARGES should be passed a value of type double. but not the ... (by closed account 1CfG1hU5)
by mekovi
Simple C++ Help
 
We had to write a C++ Program to find the first five twin prime pairs of numbers (Twin Primes are primes that are only seperated by two numbers, i.e. 41 and 43)...
[7 replies] Last: something like this .. #include <iostream> using namespace std; boo... (by anup30)
by ayou
Need immediate help writing program due tomorrow
 
You are to write a complete C++ program that does the following. It will ask the user how many students there are to be processed. It will then, using a f...
[3 replies] Last: okay i have tried writing out the program out myself and this is what ... (by ayou)
How does the setw() work exactly?
 
I thought that for every number you have inside the parenthesis, it would indent the text by one space. The code below shows the spaces that I'm trying to add b...
[no replies]
Help with basic division in code?
 
Hey everyone! I'm taking a programming class in college, and it's been going really well so far. We do 2 labs a week, and each lab has us fix/write 3-5 programs...
[4 replies] Last: hi, Because of the nature of integer division : 155/ (66 * 66) is les... (by TheIdeasMan)
"==" question?
 
if z is an int and z=8 why would z=='8' be false?
[2 replies] Last: a very simple example using z. #include <stdio.h> int main() { ... (by closed account 1CfG1hU5)
by jbing
20 Line Function
 
Trying to write a source file with a function to give to "a company" to drive. Pseudocode For each Frequncy (Calculate degree of numerator and denominator) ...
[no replies]
error C2065: 'outfile' : undeclared identifier Help.
 
Someone please look and at my code and show how i need to fix this. Write a program to calculate and generate receipts for a grocery store. The items availab...
[no replies]
Random Number Loop to Array
 
I really struggle with arrays and I have found out I needed an array to retrieve the values the program prints out. I've looked at tutorials and examples but I ...
[1 reply] : Anyone? (by programmile592)
by CDavis
Strings
 
I have a current assignment where I need to take lets say a chunk of code and be able to analysis it line by line to see what percentage is C programming and C+...
[7 replies] Last: Ok this may make more sense the rest of the problem is to look for cer... (by CDavis)
Making a triangle and summing using while loops
 
I am trying to 1: Calculate the sum of the square numbers leading up to a user entered integer. For ex, if the user inputted 3, the function should calculate 1*...
[11 replies] Last: I edited my above comment. check it. (by Java90)
by davez
promp the user for invalid input
 
float num; cout<<"Enter Number: "; cin>>num; now what i need to is to display an invalid input if the user inputted a number with decimal.
[3 replies] Last: if (num != static_cast<int>(num)) (by MiiNiPaa)
Taylor series problems
 
I'm having 2 problems with this program. 2.I can't find out how to make the Taylor Series work with my variables on 63-75 . #include <iostream> #incl...
[no replies]
factorial
 
Ok so I am having trouble with my initial declaration of my factorial statement for my final output can anyone help me out? there are a couple other things but ...
[1 reply] : Line 19 and 61 remove that "long" you will be redeclaring your functio... (by closed account SECMoG1T)
Calculate the Days Between Two Dates?
 
This program should calculate the number of days between two months after validating that the inputs are actually dates. It is assumed that the second date is a...
[no replies]
Help pls Quadratic equation pass by value
 
Hey guys, help this beginner pls. The professor wants us to write the program below. The problem is I can only return one or the other value but not both.One f...
[5 replies] Last: Example: #include <vector> #include <limits> #include <cmath> std::v... (by MiiNiPaa)
October 2014 Pages: 1... 5455565758... 70
  Archived months: [sep2014] [nov2014]

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