Beginners - October 2014 (Page 25)

Returning a value.
 
If you return 1 in this code, doesn't readinputrecord = 1? int ReadInputRecord(int &num1, int &num2, int &num3, int &num4, int &num5, int &num6, string &te...
[2 replies] Last: Yeah, thank you, I should have waited and looked at it more, thanks a... (by mishappp)
Tic Tac Toe: Build Error
 
My program isn't running. can someone please help me find whats wrong and how to fix it? thank you #include "stdafx.h" #include <iostream> using namespac...
[3 replies] Last: What do you mean by "weird"? Please be specific regarding the problem... (by AbstractionAnon)
by gto
Fibonacci max at 100
 
i will try to explain this as best as i can. let say that the user input 100. i want it to stop when the fibonacci numbers added up to 100. not the 100th time. ...
[7 replies] Last: #include<iostream> using namespace std; int main() { int range =1... (by anup30)
Calling a Function help
 
I need help making the program find which car has the highest mpg and also when i run this program it only asks for the input for the first car not the second.....
[1 reply] : when i run this program it only asks for the input for the first car ... (by coder777)
Creating a Class
 
So I suck at computer programming but really need to pass this class. The other day one of my assignments was to make the following program and after reading th...
[1 reply] : learn basic classes here http://www.cplusplus.com/doc/tutorial/classes... (by shadowCODE)
Tax reduction program
 
Write a C++ program If the person is a landlord the rent collected is added to taxable income, the taxable income is reduced by the amount of donations to ch...
[1 reply] : Question is this right? This is my code If your code outputs what yo... (by shadowCODE)
header guards
 
should i need to include standard libraries in header files? example standard calculator.h #ifndef STANDARD_CALCULATOR_H_INCLUDED #define STANDARD_CALCULA...
[3 replies] Last: Not necessarily. If you include the same header twice, include guards ... (by TwilightSpectre)
by Z feng
A very simple program but I can't figure out why it is wrong...
 
I was required to write a function to read the input and store it in a array. However, it didn't work. The size will somehow changed to a random number after 2 ...
[2 replies] Last: Thank you for the help! Yea, I wish I can use vector to solve it but ... (by Z feng)
Strange Symbols
 
I am writing a number guessing program. I have been debugging along the way to ensure that everything is running smoothly as I progress. Unfortunately, somewher...
[5 replies] Last: Alright, I have it running smoothly now. Thank you for steering me in ... (by SuperLauraRae)
static_cast<char>
 
Write your question here. Put the code you need help with here. if (num==17) cout << "Number output is: 'H' "<< endl; if (num==18) cout << "Num...
[3 replies] Last: Thanks you guys are a life saver :) (by happy11)
(5+6%4) (1,2,3,4)
 
I think the value of the above expression should be 6.5, but apparently this isn't correct. Can some one explain how to evaluate this correctly?
[70 replies] Last: do yourself a favor disch, and lose yourself. done with this post. on ... (by closed account 1CfG1hU5)
Fisher-Yates Shuffle?
 
Well, first off, this is homework for a c++ course. I just can't figure out how to get this fisher-yates shuffle to work without using arrays, as we haven't lea...
[7 replies] Last: Well, at least your instructor is getting you right into the STL ( via... (by Lowest0ne)
Display Arrays
 
I am trying to display the following arrays. int a ={5,9,2,10} int b ={1,2,3,4,5,6,7,8,9} int c ={1,2,3,4,5,6,7,8,9,10,11,12} Using these call statemen...
[no replies]
quick question!
 
Stupid question I'm sure, took a break from my learning of c++ to focus on a few other CS relates subjects. #include <iostream> #include <string> u...
[5 replies] Last: what do you mean by that? I was mistaken. I didn't understand that (... (by d1ff1cul1010)
by Cogs88
Assignment help with OOD
 
I am having a ton of trouble with understanding classes and objects, and i don't know why i just can't get this assignment to make sense to me. I've re written ...
[4 replies] Last: The first thing I notice is that your set methods don't do anything; l... (by Zhuge)
by bgmnk
Adding Int
 
I currently have a code that will create random numbers. int i; // counter srand(time(NULL)); // seed random number generator // loop 10 times for (i = ...
[8 replies] Last: Something like this relieves you of having to worry about the seed in ... (by Esslercuffi)
Need help with overloading functions
 
This is my first time using overloading functions and im stuff on how i would set up what will be returned as well as making it so the program out puts which ca...
[4 replies] Last: http://www.learncpp.com/cpp-tutorial/76-function-overloading/ This is ... (by closed account 2vD2y60M)
Having Issues With A Number To Words Converter Program
 
Hi, I'm a student taking an intro to programming course and I'm having some trouble with a recent assignment. The question asks for a program that will take...
[3 replies] Last: There are probably many ways but one that immediately springs to mind ... (by closed account 48T7M4Gy)
-sigh- My mac is acting oddly and no one knows why
 
My professor gave us some code to rewrite using cctype and string functions. When I run the code on a PC, it reads the input file and puts out an output just f...
[2 replies] Last: If it can't open the file the most likely reason is because it's looki... (by Disch)
Calling function
 
I just don't know how I would set the parameters in the main function to call this. Just the last one is all I need help with. Thanks void print_calendar(in...
[3 replies] Last: output is just the name of the variable inside the function. for calli... (by Darkmaster)
October 2014 Pages: 1... 2324252627... 70
  Archived months: [sep2014] [nov2014]

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