Beginners - October 2013 (Page 13)

Value always returned as 'nan'
 
I am running into trouble adding a variable to itself. I am trying to make a while loop that will ask you how many numbers you'd like to add together, then loop...
[7 replies] Last: I'd prefer to get my code working but i will check out that code. And... (by Pmiccich1)
Linked list help
 
Hello all I am trying to read in data from a file and while the program is still reading the file I need to sort the data and print out what data I can. For exa...
[no replies]
by vrakas
linked list in c
 
linked list in c -------------- hello i hope you can help me on this. the user gives you a number x. i want to create a list in C consisting of x , 2*x , 4...
[no replies]
Consecutive prime sum
 
I need to find "Which prime, below one-million, can be written as the sum of the most consecutive primes?". My program gives an answer that is very close to the...
[no replies]
HELP ABOUT LINKLIST POLYNOMIAL
 
Write your question here. How to modify the addterm(), polynomial add()? #ifndef POLYNOMIAL_H #define POLYNOMIAL_H #include "linkedListType.h" ...
[1 reply] : You would need to post linkedListType.h to get an exact answer. I will... (by ats15)
by anzhit
Vector as a class member
 
I am writing the followinf class to store marks in a assignment. Using a vector of floats. I keep on running into errors like not of class type while compiling ...
[2 replies] Last: Firstly, vector<float> marksvec(); The above statement does not decl... (by abhishekm71)
need help urgent
 
please help me out it is assignment of my class plz somebody solve this Write a program that inputs hour in 24-hour format and if the time is less than 4 p...
[9 replies] Last: You are welcome anytime, it was pleasure. (by Zaki Al Qudah)
C++ classes and inheritance
 
Why in void ClassB::count() the ++plus does not work? Can someone explain please. And how would be the best way to make it work? #include <iostream> #inc...
[5 replies] Last: It works all fine but i need the line 21 to stay. Is there any other o... (by DJOGUREC)
hello, newbie here. Got a quick question on basic File I/O
 
Hey there. Before i go on, im gonna say thanks for any help in advance. So, I want to make a file name, appended with ".dat", which is dependant on an input ...
[6 replies] Last: thank you, for what its worth hehe (by Sobroski)
Please review my simple way of making a game inventory? Is it practical?
 
I'm working on a small side project for a class, but I am in a bit of a mix-up. I got to the part of making an inventory where I have the derivative classes "...
[6 replies] Last: Yeah that looks like how I wanted to do it. However, I am unfamiliar w... (by Tiger58)
by wirowi
understanding loops
 
Hello everybody! I am really really new to C++ and programming in general. I'm just turning 2 weeks into it! I'm going to be honest here. The questions I'll...
[2 replies] Last: Oh, thanks! I can't believe I missed that! Rookie mistake, huh?! Than... (by wirowi)
Executable that tells you your IP?
 
I'm new to C++ and programming in general (I'm in my first programming class) and I have a quick question. I didn't have the code yet. I am just wondering if th...
[1 reply] : There are such programs, so it is possible. However, is it OS-specific... (by keskiverto)
How do I access a function of a class from another class, from the main file?
 
I hope it doesn't sound confusing, I will try to give an example of what I am trying to do. #include <iostream> #include <string> using namespace std; class...
[2 replies] Last: I see, I had the wrong idea of inheritance. Appreciate it. (by Tiger58)
Begginer simple program help. (math related)
 
Here is the assignment (not for marks). Situation A palindrome reads the same both ways. The largest palindrome made from the product of two 2-digit numbe...
[3 replies] Last: Skipping the first part: Code a solution that outputs all palindromic ... (by JLBorges)
function does not take 1 arguments?
 
Hey guys, so for my college class we have a project where we prompt the user to enter a sentence, then we take the first word (a contiguous sequence of letters ...
[9 replies] Last: Another thing I'd like to add, you do not have a return statement in y... (by abhishekm71)
Small problem but need help
 
Write your question here. cout << "Enter your guess: "; #include "stdafx.h" #include <iostream> #include <ctime> #include "targetver.h" usi...
[3 replies] Last: no, you will all those brackets, when one bracket is missing, you will... (by nvrmnd)
Cin Problem../quesiton
 
Program asks how many people contributed to a company. The user has to input the names and money. What I wanted to do was to make it so that I can input ...
[2 replies] Last: Oh.....! Thank you so much! (by Doc 4141)
by leo255
Finding Prime Numbers...What's wrong with my program?
 
I'm kind of stumped on this one - I'm not sure what I'm doing wrong. Everything in my program is working fine, except for determining prime numbers. For the pri...
[6 replies] Last: This may help! :) http://www.cplusplus.com/forum/beginner/101355/ (by eyenrique)
using functions for file streams
 
My program is supposed to take an infile and calculate the average of scores for each student and output to an outputfile. It compiles. But after running the pr...
[5 replies] Last: Okay nevermind...I figured it out. (by afleury1)
static int does not work! Help?
 
i always remains 0. Any idea why? (This is an over simplification of my code, so as to not waste everybody's time.) void solve(); { static int i = 0; i = i ...
[6 replies] Last: With corrections done so it compiles: http://ideone.com/9xAVXv Since... (by cire)
October 2013 Pages: 1... 1112131415... 86
  Archived months: [sep2013] [nov2013]

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