Beginners - September 2016 (Page 21)

by Tkey
For loop keep going until 1000 euro
 
Hi, I had to design and write a program to ask for five conversions. In each case ask the user for the exchange rate and for the sum (in pounds) to be conve...
[3 replies] Last: Yea, finally it's working! Thank you for help! (by Tkey)
Simple Problem (I Imagine It's Simple)
 
Hello and thank you for your time today. I'm having trouble putting this program together. Basically, a user is prompted to input a number between 10 and 100 an...
[1 reply] : The general form that I like for inputting and validating data is: wh... (by dhayden)
by Mak3
Outfile
 
Having issues with my output file. After I send the infile through the pig latin converter it doesn't output the translated words. #include <iostream> #i...
[4 replies] Last: I update the file every time i debug the program. (by Mak3)
vector<bool> erase iterator outside range expression
 
i am writing a rather simple program for huffman encoding and cant find out why this: "expression:vector<bool> erase iterator outside range" keeps appearing. I...
[11 replies] Last: i finally managed to solve the problem with printing the contents as t... (by globaltourist)
vector::push_back struct without destructor being called?
 
Is it possible to push a struct into a vector without the original object being destroyed and the copy constructor called (other than wrapping the vector in ano...
[5 replies] Last: Okay, then what is the problem? If you can't use modern C++ then you'r... (by jlb)
Streams and Files
 
hello everyone I have a little problem with my book (object oriented programming in c++ fourth addition) chapter 12 is very difficult to me,is it bad if I lea...
[5 replies] Last: thank you very mush (by EgyptianCoder)
Change it to one array only
 
Hello everyone can someone edit my code i need my program to run only 1 array for insertion,deletion,sorting,searching. #include<iostream> using namespa...
[3 replies] Last: now its great . beside my comments in the program I found that the ins... (by EgyptianCoder)
Check if player has any items in their inventory
 
Hi guys, so basically I am trying to write a code which check to see if the player has any items in their inventory, and if so, keep checking until it reaches a...
[3 replies] Last: I agree with the others that you should not place "empty" strings in y... (by AbstractionAnon)
Best Way To Learn C++?
 
Alright so this is my first thread and I was wondering what was the best way to learn C++? I did some visual basic back in high school and thought it was intere...
[5 replies] Last: http://www.learncpp.com/ http://www.tutorialspoint.com/cplusplus/index... (by closed account E0p9LyTq)
Array
 
I cant run my program i dont know the problem. someone help me fix it thanks #include<iostream> using namespace std; void insertion(int a, ); int ma...
[2 replies] Last: As jlb said, the compiler should be telling you what and where your ... (by AbstractionAnon)
Array Structure
 
When I run the program it always skips the input for the name, can someone help me out? #include<iostream> #include<string> #include<sstream> using n...
[3 replies] Last: Can I ask what the ws is for? When used with an input stream it tell... (by jlb)
Please Help
 
I wrote this little if...else statement but dont know where I got it wrong /* Question : Write your code to assign value -1 to 5 to the variable 'ageRe...
[3 replies] Last: Thanks so much. (by adesam1998)
by wolfv
How to overload constructor to instantiate polymorphic object?
 
Is this even possible in C++? I want to create a classA object that contains a classB object. If a classB object is passed in to the classA constructor, it beco...
[8 replies] Last: The problem is that line 35 will leak memory. Each new should have a c... (by coder777)
Average Calculating program (New to this Forum)
 
This is a homework problem, but I am stuck and looking for advice. The program is supposed give the average of the inputted values. It is also supposed to outpu...
[1 reply] : Hi, Don't know why your account is closed, but you are definitely cal... (by closed account LNboLyTq)
Vecter, Getline, and struct
 
So when I learned c++, i've never learned vecter, getline, and struct when i learned cpp. I would like someone to teach me or tell me some basics for these thre...
[3 replies] Last: @WheatFieldOnFire Can you create a simple struct? struct A { int ... (by closed account LNboLyTq)
why is cerr used here and not cout
 
So I was with Stroustrup's book PPP chapter 18 (link to chapter here) http://www.informit.com/articles/article.aspx?p=2216986&seqNum=4 and on the last two c...
[3 replies] Last: I was a bit confused by how my console was outputting things on the s... (by jlb)
Repeat a if-else loop.
 
What I'm wanting to know is how do I make this whole if else repeat until an invalid number is entered. I believe line 20 (the condition) does not function to d...
[1 reply] : When you declare house , it isn't initialized to a value, so it could... (by JayhawkZombie)
C++ and Graphics/Windowing
 
So I've been using SDL2 for quite some time now and quite enjoy it. However I've stumbled upon some beginner C++ questions on various places and one thing is me...
[5 replies] Last: So if I wanted to use C++ to create a window on the Windows OS using ... (by closed account E0p9LyTq)
Quadratic Hash issues
 
I am to create a hash table where I am in taking strings and converting them to ascii and totaling them. I am then to take the values and hash them ( value = (...
[2 replies] Last: Hi, After I added the required includes (Always remember to include t... (by TheIdeasMan)
Need help with C++ Loops
 
So I am doing a project regarding loops such as for, while, and do-while. I have no idea of where to start, but I know I have to include those types of loops ev...
[2 replies] Last: TheSmallGuy, You exhibit most of the traits of TheGentleGuy and we al... (by Handy Andy)
September 2016 Pages: 1... 1920212223... 34
  Archived months: [aug2016] [oct2016]

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