Beginners - November 2016 (Page 28)

would like to exit loop with Y/n
 
Hello, everything works but I am having trouble exiting the program and having the user repeat the steps. Please advise on what to do n () { int i,rate,...
[9 replies] Last: Your final code, it is. #include <iostream> #include <string> using ... (by CarolStar)
OutFile not working
 
Hello everyone, I am new to c++, I am working on a project for school (completed) the only piece I am missing is that I need to also create an outputFile with d...
[7 replies] Last: IT WORKS!!!!! Thank you guys so much!!! (by asper18)
Almost There
 
In line 19 the inputs should be displayed in descending order but it remains the same as ascending and in line 59 the function seems to be alright but unfortuna...
[1 reply] : void Sort(double& number1, double& number2, bool ascending) { if (as... (by gunnerfunner)
by userco
unsigned/signed error code
 
I am suppose to convert all 1st letter of each word in a sentences. This is the function I created. I am getting an error code that signed/unsigned mismatch. ...
[6 replies] Last: when i input a sentences to convert it isn't converting why isn't my m... (by userco)
by nu123
multiplying final value
 
hi there can anyone help me with this. i found this program on the internet and have changed it a bit to suit my needs. but the final step I'm caught with is mu...
[2 replies] Last: i had put in the wrong code sorry, i had put up one i had been messing... (by nu123)
by bobby5
writing class for restaurant check
 
Hi, im having trouble writing the class for this homework assignment and im hoping you guys can help me out. You are to design a Class that will represent a...
[no replies]
Reading txt file into an array of strings
 
Hello, I've been trying to read a txt file into an array of strings for quite some time. There are a long list of errors but most of them say things similar to ...
[1 reply] : I ended up figuring it out. Here is the correct code that runs. ... (by parkhill)
Vectors and strings
 
Okay so I have to write a program that will read in a line of text and output the number of words in the line and the number of occurrences of each letter. And ...
[8 replies] Last: yes that did it thank you, I just hope that rest of my code works now. (by StevenHans96)
Help w/ avg, sum, num from file.
 
Struggling to get the program to work correctly. I'm needing to read a file and count the numbers, find the average, and figure the sum. #include <iostream...
[1 reply] : Well my sum and average is working but having issues with the count. H... (by ret squid)
by Kiramy
Numbers of palindromes
 
Can you please tell me what i did wrong? I have to enter some numbers and then to find out if they are palindromes or not,and if they are,how many of them are....
[2 replies] Last: Thanks gunnerfunner! Now it works :D (by Kiramy)
Erasing an element from Vector<Vecter<short>>
 
Hello, I ask if any one knows how it is possible to erase a random element in the vector< vector< cell> >? Also, I would appreciate help with the verify functi...
[14 replies] Last: Actually I am moving this to another thread. (by CelestialX)
by nu123
add numbers apart from last
 
hello there. I'm new here I may trying to write a c++ code that will add all of the numbers together apart from the last one. I can get all of the numbers to ad...
[3 replies] Last: that's brilliant thanks. i was trying to figure it out for ages. i hav... (by nu123)
What should be learnt first, GUI programming with Qt or game graphics programming with Opengl?
 
After learning cpluplus for 2 years now,i am migrating to learn GUI and game programming with opengl, but a problem lands in what should be learnt first?
[4 replies] Last: thanks (by MrPercy)
Getting loop code to output.
 
Hey so I am new to C++ and have been trying to write a piece of code that would sudo encrypt some text, basically I want to convert it to ascii then increase it...
[7 replies] Last: Fair enough, I will stick to VS for now until I stop making so many mi... (by WULTKB90)
structure and file
 
Hi there, I have to create a structure which includes student last name, his average mark and cipher whose first 2 letters indicates faculty in which student is...
[8 replies] Last: Well, I made the first mistake because i wanted to rewrite the program... (by WilliamMorris)
file to print single words per line
 
I'm trying to print each letter from a data file (will show data). but my program just ends up printing the while data file without the spaces and not going in...
[2 replies] Last: Hello awesomesause. As gunnerfunner pointed out you are trying to rea... (by Handy Andy)
Using Threads (Creating connecting etc)
 
I am trying to get cin on a different thread so that the cin will run without interfering with the cout stuff, but, this is my first time even thinking really o...
[1 reply] : I've figured out the threads now and got the thread running yet the re... (by ExSanity)
by ypamc
Find the sum of columns in a 3*4 matrix
 
I dont understand why this is wrong. I have to use the header given to help find the sum of the each of the columns, the first issue is that the matrix does ...
[1 reply] : #include <iostream> using namespace std; const int SIZE = 3; double ... (by ypamc)
by cpp82
subset handling in bitsets
 
My program deals with lots of bitsets that includes comparing subset of one bitset with another subset of same or other bitset. For example: std::bitset<100> ...
[1 reply] : Though iterators won't work with bitsets you can compare the subsets i... (by gunnerfunner)
Reading a file into an array
 
Trying to read from file into an array. Don't understand what this error is, "no matching function for call to 'std::basic_ifstream<char>::open(std::__cxx11::st...
[1 reply] : line 21 sales_file >> sales ; //semi-colon added sales_file is th... (by wildblue)
November 2016 Pages: 1... 2627282930... 44
  Archived months: [oct2016] [dec2016]

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