Beginners - April 2013 (Page 31)

overloaded function does not match the argument list
 
I am writing a program that has a customer class with a simple vector of strings in it. I want to delete a video if it has been returned and I'm using the eras...
[4 replies] Last: When you pass a string by value then either copy contsructor or move c... (by vlad from moscow)
Class and Constructors
 
I do not know where to begin this problem. Can anyone help me out? I do most of my programming in VB. C++ is proving to be a challenge. Write a program that ...
[1 reply] : http://www.cplusplus.com/doc/tutorial/classes/ http://www.cplusplus.co... (by LB)
thread error
 
Hello i have written a program with threads and its doing some weird things i dont understand. i think its an error somewhere but i don't know where could someo...
[7 replies] Last: in plain C++, it could look like this (note I had to change what your ... (by Cubbi)
by AbR
correct use of delete
 
Please consider this snippet int main() { std::vector<int*> intPointers; int* ip; for(int i=0; i<5; i++) { ip = new int; ...
[6 replies] Last: Thank you - a great answer indeed. (by AbR)
Array assistance please?
 
Hello, I was working on this problem, and I just need a point in the right direction....We're supposed to show the number of students taller than 60 inches and ...
[6 replies] Last: Thank you all so much for your extensive assistance, this is wonderful... (by halamaker)
array problem
 
I cannot understand why my program only spits out garbage. Here are the letters if you wish to plug them in with a .txt file: correctanswers.txt A B C D ...
[4 replies] Last: If you have time, can you please explain what I've done wrong so that ... (by geharbison)
create your own extension
 
Can anyone know How to create your own file extension like .something
[4 replies] Last: Are you asking about the way the Windows operating system may hide the... (by Chervil)
How long would it take
 
I just started C++, and i was just wondering, how long would it take, if i spent about 2 hours a day, learning C++ as much as i could, and as thoroughly as poss...
[1 reply] : I don't want to discourage you, but learning c++ all day long is not a... (by Smac89)
While Conditions
 
I'm trying to work through a program and I got it to work, but I'm wondering if there is a cleaner way to write what I'm trying to do. I need to get 2 numbers,...
[2 replies] Last: Thank you very much for your feedback! (by egg management fee)
exponents
 
basically im quite new to programming but i wanted to know how to do exponents. where someone can put in a first number and a second number. the answer would be...
[8 replies] Last: You may be able to tell the compiler to use the C++11 standard. From t... (by Chervil)
Reading from a file and putting it into an array
 
It reads the file but it isn't taking the numbers in. Also, where I am taking the data, is there a simple way to do it instead of all the ones in a row? The tex...
[3 replies] Last: The first thing I see is that the struct SStudent should be declaring ... (by IdivideBy0)
Operator Overloading
 
Hey Guys I have a question on operator overloading. I need to write an operator >> which suppoused to work with string. My question is, can I even do it, I mean...
[2 replies] Last: > I need to write an operator >> which suppoused to work with string. ... (by JLBorges)
Using array problem
 
I'm really confused. We are supposed to read in a students id, their 2 test scores and then their 7 homework scores. Then im supposed to be able to use those va...
[1 reply] : to fix: lines 40...43 change >> students .hw >> students .hw /*...*... (by MiiNiPaa)
by Lehel
Just need some feedback.
 
Hello World! I recently (2 months ago) decided to learn programming and started with C++ and i would like to get some feedback on this little number guessing...
[7 replies] Last: I'm trying to write some code that will only accept numbers and number... (by Lehel)
Why am i getting this error
 
I keep getting this error :ambiguous overload for 'operator>>' in 'std::cin >> O' on line 42 #include <iostream> using namespace std; int main() ...
[3 replies] Last: thanks freddy92, and good advice JLBorges. Im quite new to programmin... (by JEvans1234)
Explain the use of Pointers?
 
I just started with c++ and when I read about "Pointers" I got really confused. Could somebody explain to me why you should use a pointer for variables and ...
[14 replies] Last: This line will only confuse potential beginners even more. It also wil... (by IdivideBy0)
Help to complete the code
 
The assignment: To write a program that accepts the user's order and print the total cost of the order including tax or a message that says "Sorry, we do not ha...
[2 replies] Last: Thanks, let me try this then with arrays and see what I can come up wi... (by the nomad)
Trailer values with class arrays
 
I'm stumped. For some reason when I read the file I only get back weird numbers. The info in the file is the first five lines above the code below. I've tried ...
[1 reply] : I figured it out. I just had to move the count to the end. (by Gawaine)
Getting incorrect reads from file read into array
 
When i run my program i get a long string of numbers and letters when i should be getting normal data. ifstream fin; fin.open("data.txt"); if(!fin) { co...
[7 replies] Last: Use cout instead of cerr. I prefer use cerr since it flushes immediate... (by tfityo)
Program Keeps Crashing
 
Hello! I'm doing a programming exercise to a. Create an integer array of size 10 using malloc and populate it with random numbers between 500 & 1000. b. C...
[2 replies] Last: Thank you! I did the edits and ran the program and it's working expert... (by snailtier)
April 2013 Pages: 1... 2930313233... 83
  Archived months: [mar2013] [may2013]

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