Beginners (Page 55)

Histogram help
 
Can Someone help me with a histogram that gets its values from an array in an input file. #inc...
[3 replies] Last: In other words, for the first line, * the m is 0 initially * 0 < array... (by keskiverto)
ERROR ELSE
 
Upon asking recommendee, the R works and N works. But I want to add an else so that pressing buttons...
[4 replies] Last: Thanks for the help. I just added {} so that the else im talking abou... (by MikeyBoy)
Undefined Reference error
 
I have been staring at my makefile and my #includes for hours and I cannot figure out why this progr...
[5 replies] Last: You're welcome - glad it worked! (by MikeyBoy)
by kslo
Problem with binary
 
Hi Guys, I'm in my 2nd year of college and got a task of our lecturer to write a program that will r...
[no replies]
'+=' is not working on my vector
 
Hi guys, Hoping someone can help I am writing a poker game and at the moment im just simply try to ...
[2 replies] Last: DO YOU HAVE ANY IDEA HOW LONG IVE BEEN SCRATCHIN MY HEAD LOL.. .Thank... (by hashmi82)
by PattuX
ostream as argument & overloading an operator
 
First of all, sorry for putting 2 questions in one topic, but I feel like they belong together in th...
[2 replies] Last: Thanks, works perfectly fine. :) (by PattuX)
PROJECT IDEAS
 
I have just completed two pretty simple games in C++. I want to make a simple chat room but I don't ...
[1 reply] : This thread may help: http://www.cplusplus.com/forum/beginner/190294/#... (by AbstractionAnon)
write a line at the top of a reversed data file with C++
 
Dears, I have written the following code to reverse a data file with deleting 15 lines from the top ...
[2 replies] Last: after reversing, how to write a certain line at the top of the revers... (by Chervil)
CPP Phonebook
 
Write your question here: I have a project in my computer science class where i need to create a sim...
[2 replies] Last: Sounds easy. Have you learnt struct or class? Create one named Contact... (by ephraimr)
by leenzz
fuction parameter passing error
 
why the value is not passing between function what is wrong with this code. #include<iostream> ...
[1 reply] : void reduce(struct rational *r1, struct rational *or1) Your function... (by Thomas1965)
String as char array case conversion.
 
How do I write this code to where the program exits even if stop is written in all caps? This is an ...
[1 reply] : isupper/toupper only works on one char at a time so you will have to g... (by Peter87)
Issue with converting doubles to strings
 
For my code we are looking at making a program that can convert a dollar and cents amount given in n...
[5 replies] Last: Anybody got any tips? I'm going with the second algorithm but the iss... (by MichaelWilleTheFirst)
Heap with multiple elements.
 
I'm trying to find a way to make_heap a vector of a struct. And the "key" that I want it to sort w...
[5 replies] Last: Actually, it's if(a.price == b.price) return a.bidID > b.bidID; ... (by tomtran3110)
by dean
Template specialization
 
I'm trying to provide a specialization of std::begin & std::end for my custom class. I am still unab...
[5 replies] Last: > From a language perspective it looks to me as a draconian limitation... (by JLBorges)
Beginner need help
 
This is a work in progress for an assignment. I am doing it step by step and I am kind of stuck at...
[1 reply] : Error C2039 'Account': is not a member of 'Transaction' Customer acti... (by borabora)
Vectors and Populating
 
I really don't know what to do and I need help with my homework if anybody could help. The homework...
[3 replies] Last: Why the pointers in your vectors? Where are you allocating memory fo... (by jlb)
Function for opening a file for user input
 
Hello everyone. I got a new challenge and I don't even know where to start. I got to go do something...
[6 replies] Last: You can declare the variables in main(), then for the first function p... (by jlb)
How to apply numeric value to char variable?
 
int a = 10, b = 11, c = 12, d = 13, e = 14, f = 15; int n = 0; int num; string h; cout << "En...
[2 replies] Last: But how do I use that for char? h returns a char not a string (by mistersunnyd)
Logical for loop errors
 
Hi, I have a program that compiles but I am getting a scramble of numbers as an output. I am supp...
[8 replies] Last: ┬┐why you aren't indenting your posts? if (meet ) counter ++; els... (by ne555)
DYNAMIC MEMORY ALLOCATION. Something is wrong with the program. It's not giving out the correct output.
 
10 15 17 5 6 The numbers above are stored in a text file called "text.txt". I want to tr...
[5 replies] Last: No. It merely appears to work. Everything above one number in file i... (by keskiverto)
Pages: 1... 5354555657... 61
  Archived months: [apr2016]

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