Beginners - October 2014 (Page 34)

Invalid Input Check....
 
Heres the Problem: Write a program to gauge the rate of inflation for the past year. The program asksfor the price of an item (such as a hot dog or a one-carat ...
[3 replies] Last: #include <iostream> #include <cstdlib> using namespace std; int main... (by shadowCODE)
by csharp
vector array function question
 
came back with other question about vector array function I am writing. I need some hints on how to return the number next to the interesting number I am lookin...
[17 replies] Last: Thanks, I hope this will work even if the interesting function is deal... (by csharp)
by bea456
how to put addition,sub,multiply, and division
 
Hello, I need help adding, subtracting, multiplying, and dividing two fractions. It should show up like this: Enter your operation: 1/2 + 3/4 but the ...
[7 replies] Last: I need help adding, subtracting, multiplying, and dividing two fracti... (by cire)
can't seem to find the error...in the code
 
after entering the roll no i have to press enter twice to get the program to ask me for my id. Why is it happening? I can't see any problem in my code. ...
[1 reply] : The problem was with the cin.ignore(); after entering the roll no. (by omkarborkar95)
Help with Functions!!!
 
Can someone help me with my code, I keep having issues in several lines. This is what I wanted to accomplish. MAIN FUNCTION () : This function will call th...
[2 replies] Last: You need to remove "return 0" from line 85, it doesn't belong there. ... (by art1986)
OS-X Xcode Question, as well as code.
 
I have to write a program as an assignment homework that outputs from a textfile as infile, the Low average temps, high average temps, Lowest temp and that city...
[2 replies] Last: Thank you, that was the issue. For some reason XCode compiles the exec... (by sparkler17)
Calendar for the year
 
I have made the code to where it makes the calendar for a month, now I need to find a way to loop it for a year when inputed. It should display all the months. ...
[2 replies] Last: It's been a long day, lol. Thanks for the help, man. I literally had t... (by Joshcannon)
Help Formatting
 
Write your question here. #include <iostream> #include <cmath> #include <iomanip> using namespace std; const double Project_Weight = 0.40; const...
[2 replies] Last: You can't return more than one variable ._. use reference or pointer p... (by LendraDwi)
c language split my zip code
 
my project want me to create 10 random zip code and convert the sum of each digit in zip code this is my code and when i run it, it only showing the last digit...
[2 replies] Last: thanks that works every well! (by qingcheng)
size of array being inserted into array contents
 
I am trying to sort an array from smallest to largest. When the program runs, it sorts the array correctly, but replaces '25' with '5'. What I have figured ou...
[2 replies] Last: ahhh thank you. (by pilotnate)
Operator overloading
 
Hello guys! I am learning operator overloading. I am kinda confused on how to define an operator. The below code has notes to make you understand what I ...
[2 replies] Last: #include <iostream> using namespace std; #define NUM 10 class A { ... (by mobotus)
IDK whats wrong...? Help please
 
#include <iostream> #include <ctime> #include <algorithm> using namespace std; class Deck { public: int cards ; void set() { int x = 1...
[1 reply] : Fixed it... :) The random_shuffle paramters needed to be passed by ref... (by coltehrman)
Euler's number
 
Hi guys i just have a quick question this is my homework. "Write a C++ program that will calculate the value of “e” (Euler’s number, e = 2.71828…) usin...
[1 reply] : as you did in the previous program that calculated the value of pi W... (by keskiverto)
Format the output from cout
 
Write your question here. ISBN Title Author Price Qtty ==== ===== ====== ===== ...
[2 replies] Last: #include <iomanip> #include <iostream> using namespace std; cout<<se... (by shadowCODE)
by Zion93
String Subscript out of Range
 
Hey there. I'm fairly new to C++ and I've encountered an error that I'm not certain how to solve. The aim of the program is for the user to input a 4 digit numb...
[3 replies] Last: No "should be". Make your program show the true length. That is one ... (by keskiverto)
Help me translate this very simple if function to C++
 
My function needs to go like this: if x is not equal to y and z is above(>) 1 I tried to write it but it didn't seem to work in the program, this is what...
[2 replies] Last: You need to use the logical operator && instead of the bitwise opera... (by TheKingOfTyrants)
Problem with .txt sorting algorithm [SOLVED]
 
I am writing a program which takes .txt file, finds all words that end with a specific letter, puts them into another .txt. Then I have to sort new .txt in alph...
[3 replies] Last: The problem is probably the fact that you are executing the while() un... (by jlb)
difference in char ch[10] and char* ch[10] ?
 
what is difference in char ch and char* ch ?
[1 reply] : char ch ; Creates an array of chars which means it holds actually le... (by TheKingOfTyrants)
Help me add arrays to this code.
 
Hi. This code reads data from file 3 times and do the calculations and write the results in other file. Would you please help me write the for loop with array? ...
[3 replies] Last: You'd have to iterate through the array and call the euler2m function ... (by TheKingOfTyrants)
need some help for this problem
 
Hello, Write a program that reads a sequence of numbers (at least three), The program must find out three smallest number for example : if we entered { 0.5 ,...
[2 replies] Last: First, I'd suggest taking all but the first number using a loop. The c... (by TheKingOfTyrants)
October 2014 Pages: 1... 3233343536... 70
  Archived months: [sep2014] [nov2014]

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