Beginners - August 2013 (Page 44)

Question concerning while (cin>>variable) {...} loop termination
 
Hi everyone, I was wondering if someone in the C++ community could help me out with a problem. I'm currently in the process of re-teaching myself C++. The te...
[4 replies] Last: > Change line 27 to contain the following: cin.clear(); cin.ignore(nu... (by ne555)
Nesting for loops.
 
If I typed it out right, the program below displays: 0,0 0,1 0,2 1,0 1,1 1,2 2,0 2,1 2,2 3,0 3,1 3,2 4,0 4,1 4,2 However, I don't understand why 'i' d...
[1 reply] : Each iteration of i produces (COLUMNS) number of iterations of the inn... (by Smac89)
Test Grading Program
 
This program is supposed to take in test answers from the user and compare them to a question bank. At the end, the program should output what exact questions w...
[4 replies] Last: Oh! Right on! Thank you so much. (by mombarke)
class inheritance bank account help
 
PLEASE HELP ME. You have been developing a BankAccount class for Parkville Bank that contains several fields and functions. a. Create BankAccount contain...
[1 reply] : Please don't do duplicate posts - you won't get help any quicker, rath... (by TheIdeasMan)
A problem with my poll question
 
I'm making a poll that has 3 choices and each choice adds 1 vote for that choice but for some reason when I enter a choice and press enter the program stops and...
[2 replies] Last: can you put it into code as an example I dont understand what you mean (by darthaq)
missing templates c++ file .cpp and header file .h?
 
i'am begginer in c++ language. i'm use visual studio 2010 ultimate. the problem is i can't add c++ file(.cpp) and header file(.h). can anybody help me?(sorry fo...
[2 replies] Last: There is no need to repeat the same topic in multiple forums. http://w... (by Zhuge)
Random Name Program
 
Hi there, I'm VERY new to C++ so bear with me on this. I'm trying to write a program that asks the user for 5 friends names, and the program will randomly sele...
[2 replies] Last: Thank you! I really appreciate it! :) (by mombarke)
by iwbagm
the for loop not get through..
 
Why my second part the "for" loop didn't get executed? #include "../std_lib_facilities.h" using namespace std; //iteration exercise int main(){ i...
[1 reply] : After the second while loop, i is >= 10, so the for loops are never ex... (by Zhuge)
by iwbagm
beginner's road test but error C2679
 
Below is my "second hello world" program, but I got complaint by ">>" (line no 9) , how can I fix this? #include <iostream> using namespace std; //to see how...
[2 replies] Last: Thank you!! I have thought string is one of the default type included ... (by iwbagm)
Classes and get/set methods
 
Ok so im having some problems with this program that uses classes and methods. instead of comments that say set the first/last/subject for paper1 should there b...
[7 replies] Last: Hi hagfish88 , This maybe a surprise for you, but I don't think you ... (by TheIdeasMan)
writing to file and newline
 
so am writing to file..and i want to be inserting newlines into the output am writing to file...but using std::endl or '/n' has no effect what so ever...how do ...
[5 replies] Last: Since your vector f only contains 10 items k is always less than 70 so... (by norm b)
Deleting account information from a file
 
I'm attempting to delete an account from my accounts.txt file, but I can't seem to get it to work. I'm attempting to put white spaces into the account file, bu...
[no replies]
Compile problem
 
Hi I cant get my program compile, it is suppose to display the negative numbers entered by the user #include <iostream> using namespace std; //*****...
[7 replies] Last: thanks for the help! finally got it to work. (by joeplus)
How To Read/Store Two Columns of Numbers From File of Unknown Size
 
Hi, I've looked really hard and can't find a straightforward way to use an array or vector to store the elements from files, each of varying/unknown length. Eac...
[1 reply] : Without testing while ( inFile >> x && inFile >> y ) { coordinate... (by vlad from moscow)
Simple game ideas?
 
First off, I made a thread about finishing my first real attempt at programming a game in SFML in General C++ Programming and I asked for some feedback on it, b...
[1 reply] : Tetris and pacman clones. (by ahcfan)
Runtime
 
Ok, im making a game and I get an error that is unknown to me, <filename>.exe has stopped working. This application requested the runtime to terminate in an unu...
[6 replies] Last: @abstractionanon It was because I assigned 0 to the string. None of th... (by RealGiganitris)
Using 'this' to pass a class
 
Hello, I have the following two relevant classes in this problem (see below). When I run this, I get the following erros: 1. Player.cpp:18:5: error: 'World...
[6 replies] Last: http://www.cplusplus.com/forum/articles/10627/ See that article for f... (by Disch)
Question about loading CSV into arrays
 
Hi there I am taking an intro c++ class and need some help loading data into arrays. I wouldn't have any problem loading rows into arrays but I need to load co...
[4 replies] Last: I thought about using a multi-dimensional array but our teacher says s... (by martialartjesse)
c# is equivalent in c++
 
Hi, I'm learning c++ and to start off i thought it might be a good experience to port some of my code. but i have come to a standstill on how one would do s...
[3 replies] Last: Disch: i don't really understand your warning. What i'm making is a s... (by Precious roy)
by Codeez
conditional operator
 
Why does this print 11 12: int x = 11, y = 11; (x > 10 && y > 10) ? ++x, ++y : --x, --y; cout << x << " " << y; // 11 12 If I parent...
[5 replies] Last: Hah, likewise! Thanks for the explanation :) (by Codeez)
August 2013 Pages: 1... 4243444546... 51
  Archived months: [jul2013] [sep2013]

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