Beginners - April 2011 (Page 52)

by mozly
Copy constructors
 
So i'm having problems deep copying one vector to another. I have these classes: struct cloneable { virtual ~cloneable(){} virtual cl...
[2 replies] Last: Digit::Digit(const Digit &copy){ copy.svalue.rdbuf(); //statement h... (by ne555)
Help with a program
 
i want to write a program to display the following pattern: * ** *** **** or **** *** ** * or **** *** ** * or * ** **...
[no replies]
SFML?
 
Ok, so I have downloaded the 64-bit version of SFML for Mac. But, I can't figure out how to move on. I looked on the website for instructions, and it said to ...
[3 replies] Last: "x.y" is referred to the version of the library. You have to look for ... (by Paper Mario)
Passing a 2 dimensional array to a function
 
When attempting the following code, I get a memory violation when I get half way through the array. It seems as though the array is being treated as a one dime...
[no replies]
How to delete automatically created variable, array, etc.?
 
When I initialize some automatic object, how I can delete it from stack? I know that compiler takes care of that, but sometimes I want to free memory from unuse...
[2 replies] Last: Ok, thanks for help! (by delpins)
by snc413
Why it is not reading the checking interest and checking fee except for saving fee and interest fee???/
 
# include <iostream> using namespace std; int main() { int accountnumber, saving_minimum_balance, checking_minimum_balance, saving_fee, checking_fee, ba...
[no replies]
See declaration of exit error (Visual studio 2010 issue)
 
hi I have a massive weird error. I simply need to ask why this mind bending error occuring in visual studio 2010 but not 2008. Its giving me a right headac...
[3 replies] Last: Weird. That always works for me (though I'm using 2008). Well, you ca... (by hamsterman)
Dynamic allocated arrays
 
I dynamicly allocated char array with lenght of 30. Then I put x characters int it. Then i dynamicly allocated new char array with lenght of x. I transfered cha...
[5 replies] Last: Yes, I have done it. And after copying one space left me free in which... (by delpins)
by DiaBow
Remove Underscores from char array
 
I'm new to C++ programming and have really enjoyed learning about it. I've written a function for a larger program. The rest of the program executes, but my c...
[2 replies] Last: Thank you very much for your response and the reference link you sent.... (by DiaBow)
by tota90
about binary files
 
i want to read a binary file line by line , how can i do it?
[2 replies] Last: my binary file contain student's names and phones line for name and l... (by tota90)
cout << something that may not exist
 
I need to use an if statement to create an object of a class and then use std::cout to print the object data afterwards. The only problem is, that if I use a...
[2 replies] Last: Thanks. I've done that now. Created it before and passed params after... (by Lynx876)
Creating two objects - book1 and book2
 
how can one write a program containing 2 objects - book1 and book2. I need an explanation on how to do that
[4 replies] Last: Well, I wouldn't call it a library. That is correct syntax, and this ... (by gobblewobble123)
Question about bind
 
I am learning how to use std::tr1::bind, but there are some questions I don't know how to solve void adaptSpanRegionMono(int const MAX_AL, float const CO...
[6 replies] Last: It does not use its template parameter in the parameter list The tem... (by stereoMatching)
Question about rvalue reference
 
As I know, perfect forwarding is design for reducing the need of many overloaded functions when you pass the reference to the function and pass those referenc...
[1 reply] : Sounds like a bug in the compiler to me. I would expect it to call ve... (by jsmith)
Array of pointers structure type
 
There is no error while compiling but there is a run time error anyone knows why? #include<iostream> using namespace std; struct StrCar{ char RegCode ; int Ph...
[1 reply] : Currently Car points to memory location 0. This location is not acces... (by hamsterman)
getline() and array problem
 
Hi, This is my first post for a c++ issue, so if I didn't follow a proper format/guideline, I apologize. I'm a beginner in c++ and I'm having problems with my a...
[no replies]
writting to file
 
Hi again! :) I have this function void ZAPIS_PLAYERLOOSE(string myguild,string path){ fstream guild; string strin; guild.open(myguild....
[2 replies] Last: yes, thanks :) a hve forgotten that flag :D (by julof26)
What's Binary Sorting
 
Has anyone of you guys ever heard of binary sorting. If you have - could you explain it, or better yet - send me a link to a website where I can find some inf...
[1 reply] : googled. http://www.geneffects.com/briarskin/theory/binary/index.html (by hamsterman)
by dan104
How to get this format?
 
Need some help.I'm suppose to create a table based on the information shown below. The sample output is supposed to look like this: ------------------------...
[3 replies] Last: Actually in looking at point 4 above it would probably easier to just ... (by Alrededor)
simulation problem
 
hi guys, I have a problem with my program ... first my program is " The Problem: There are a number of problems known collectively as "Random Walk" problem...
[5 replies] Last: Your welcome. Let me know if you have any more questions. (by Mathhead200)
April 2011 Pages: 1... 505152535455
  Archived months: [mar2011] [may2011]

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