Beginners (Page 108)

New! Join the C++ community on Google+
inheritance problem!!
 
In the below code i can't understand highlighted code... #include<iostream> #include<conio.h> #...
[3 replies] Last: You mean change the value of a member B inherits from A? You can just ... (by Zhuge)
Comparison of arrays created from a class
 
I need to create a program that creates an array of a class object and then compares it to another a...
[1 reply] : Your TestGrader has two arrays of size 20. You make two sets of TestG... (by LowestOne)
How to subtract numbers after decimal and place in new column?
 
Is there a way to take numbers after a decimal and put them into a completely new category? (i.e. th...
[3 replies] Last: I would place the value 0.3048 inside the function. No point passing i... (by Chervil)
Rational(long n,long d):N(n),D(d)
 
A constructor is declared inside a class. but I didn't understand what N(n) and D(d) are. note that ...
[1 reply] : It's initialisation. The effect is similar to this: Rational(long n,l... (by Chervil)
How do i find the max and min from a file using array and a loop?
 
#include <iostream> #include <fstream> using namespace std; int main() { //initialize my variables...
[5 replies] Last: Thank you so much for your help i will also help others with this prob... (by chikaibeneme)
by se67en
HELP! Can't correctly call my function
 
Hi! So I tested the function BrianTest below without the test function, and the output works. Howe...
[3 replies] Last: Moeljbcp beat me ...I wrote it below and it does work too..., guess a ... (by Kart)
Function Calling An Array
 
I am a brand new student to programming, and am trying to figure out how to do the following: Rea...
[3 replies] Last: The reason your code above doesn't get through the compiler is this fu... (by Moschops)
Best way to read files
 
I'm looking to make a text/2d RPG and I'm wondering what would be the best way to read/write text fi...
[no replies]
Help for 1D Array
 
I have an assignment where I was provided some code and I have to write a couple functions. I'll wr...
[7 replies] Last: Dear Standard Deviation calculated as squar root((x-(avg))*(x-(av... (by Awais Tahir)
Menu key, change from int to char
 
So wasn't quite sure how to word the problem for the Title but my problem should be quite simple for...
[no replies]
Copy x characters from a file to a c++ string?
 
I want to copy 15 characters at a time from a file into a c++ string until the eof is reached (if th...
[1 reply] : You can use fread to read exactly 15 bytes. http://www.cplusplus.com/r... (by Moschops)
by Hotice
How to make getline() work when you just called get()
 
I just learned how to get only a character for input! (I did it back in 2011, but I think I have a b...
[3 replies] Last: Thanks brandonator! Because it is a simple yes or no question I was as... (by Hotice)
by saugat
average program error
 
I am working on a project using 2D arrays to display a class's individual grades, averages, and a cl...
[1 reply] : The error message is clear enough. Where was devi declared? (by vlad from moscow)
segmentation fault/ basic array, menu driven program
 
I'm pretty new to c++, and am trying to make a menu driven program. When i run the fourth option, it...
[9 replies] Last: Ah ha, In this case, you are entering an infinite loop in Ascending... (by Stewbond)
Where to store the variables in this problem?
 
Hi guys, I have a task where I have to ask a user to enter a number between 1-10 and I have to ask ...
[4 replies] Last: @ Amishuchak, I must admit these two forum members are pros and know ... (by Kart)
by skarla
SDL help
 
I am trying to make a game that you have a player and when you hit with your ball the boxed,the boxe...
[1 reply] : Create some kind of variable to indicate whether or not the ball shoul... (by Disch)
[b] A little <fstream> mishap [/b]
 
Hi guys, hows your morning? I hopes its good! Im a little confused on file input and output. I have...
[1 reply] : I think it should be ofstream instead of ifstream. You can name file_... (by fg109)
Help with Craps game please
 
Hi there, I have written this craps game in C for my assignment and am just trying to put the finish...
[3 replies] Last: The problem is that you have the "junk" variable to get rid of the "\n... (by fg109)
Boolean
 
All declarations are given on my assignment but i dont understand what do i need to do with bool co...
[4 replies] Last: Two ways. 1) extract the age as a string, check that the string is a ... (by LowestOne)
Read data from file into structure in C++ ?
 
I have the code below to read data from file into structure using C. However, I would like to conver...
[2 replies] Last: change File to an fstream (and all of the stream's methods), and it's... (by LowestOne)
Pages: 1... 106107108109110... 113
  Archived months: [oct2012]

Cannot post in this page. To post a new message, go to the first page.