Beginners - October 2013 (Page 55)

simple math program
 
Im trying to write a program to allow a grade to be entered then present a math problem of varying difficulty. The higher the grade the harder the problems are....
[5 replies] Last: bump. help please (by ohfinite)
Help understanding line in code
 
So my teacher helped out a bit with this program and I understand it all except for this one line. Can someone explain o me what is happening in the 22 line in ...
[2 replies] Last: It's very hard to read this code, since there is a lack of indentation... (by Chervil)
Quick question about a loop.
 
Shouldn't this be a loop that never ends? It does after about 10 seconds of the program running. for(int i = 0; i < i+1; i++) { } edit: This one is a ...
[3 replies] Last: @kong288 - Try it this way: #include <iostream> using std::cout; usin... (by norm b)
How to pass this class as an argument?
 
So here's what I want to do. I'm looking to generate an empty list and fill them with names via the STL function generate_n. The problem comes with the third ar...
[2 replies] Last: Hey, thanks for the suggestion. I managed to figure it out and keep th... (by catalanor0220)
by thepox
File I/O and While Statement
 
I have an assignment due at 8:00PM. I've had a ton of work to do this week and haven't really got to learn the topic before the assignment. I'm just trying to g...
[5 replies] Last: Don't read a file like this: while (!num_list.eof()) { num_list... (by MetalMilitia)
by CRock
Handle Ctrl+Z input
 
Why is it that, for any C++ console application, when a user is prompted for input and enters Ctrl+Z it causes the program to loop infinitely or crash? i....
[7 replies] Last: Great! Thanks to all for the help! (by CRock)
reading delmitited file to char array help
 
Currently I have ifstream inFile; inFile.open("tasks.txt", ifstream::in); if (!inFile) { cerr << "Error: file could not be opened" << endl; ...
[no replies]
Structs
 
Hello This is very simple question i am trying to create a generic list and i have seen some examples but,there is one issue that troubles me pls clear it ...
[1 reply] : That one is creating an object called NODE It is the same thing as no... (by giblit)
Desperate for help on homework
 
I need people to help me out with some homework. I need people to take a survey and do an interview with on this thread. http://www.cplusplus.com/forum/lounge...
[no replies]
by cshu
queue problem
 
Ive done most of this problem, and I have my file outputted but im stuck on what to do next. The program problem is that a veterinarian needs a program to m...
[no replies]
constructors
 
I wrote a class called Student that should asked the user lastname, firstname, credits, gpa, date of birth, date of matriculation. I wrote accessors(get functio...
[1 reply] : http://stackoverflow.com/questions/9336209/mixing-ifstream-getline-and... (by MiiNiPaa)
can i use a stringstream in this problem?
 
I'm beginning a problem in which I need to take each individual letter in a single word and output one word that is associated to each letter. For example, if I...
[1 reply] : A stringstream might be more than enough, a std::string would suffice.... (by Chervil)
is my class defination right?? plz rep fast anyone....
 
#include <iostream> #include <string.h> class Bank_account { private: int account_number; string ac_holder_name; double balance; pub...
[8 replies] Last: Only thing to add would probably be: void set_ac_holder_name(string& ... (by rdtr3548)
Temperature Conversion problem
 
I decided to get an early start to this, and I seem to have a good amount of it worked out. My problem is that it says that my C, F, R and K are unidentified, a...
[3 replies] Last: I also fixed all the if statements (same problem as the while loop, i ... (by dkarayof)
by nbnit
beginner Tic Tac Toe Game
 
so basically what im trying to do is set the private variable that is printed in the grid function to a value that is specified by the user. I can change any va...
[1 reply] : I hope that works: #include <iostream> #include <string> using nam... (by closed account 1v5E3TCk)
Student Grades Program
 
Write a C++ program that computes a student's grade for an assignment as a percentage given the student's score and total points. The final score should be roun...
[no replies]
Nested loop
 
Write a program using nested loops that asks the user to enter a value for the number of rows to display. It should then display that many rows of asterisks, wi...
[no replies]
Comparing two arrays
 
im programming to be able to enter two digits, and these two digits need to be read from the back in... I'm supposed to use pointers, but i worked on this thing...
[2 replies] Last: So you take two array of characters that the user input lines 8 and 10... (by andyman105070)
by AInoob
This code can not execute well in Ubuntu, but did work in Windows
 
I have no idea why this happened, but in terminal, it compile well, and when I execute it, it said Segmentation fault (core dumped) And in Eclipse, it is"warni...
[5 replies] Last: Thanks, I am now using gdb to debug this program, I think I find somet... (by AInoob)
Assist with while looping
 
Please lend me a helping hand. I have printed six different series of numbers. The requirement was to only use one and only one single while loop. #in...
[5 replies] Last: Change line 19: else if (k = 9) to: else if (k == 9) ... (by ShodanHo)
October 2013 Pages: 1... 5354555657... 86
  Archived months: [sep2013] [nov2013]

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