General C++ Programming - March 2012 (Page 33)

Recursive dependency creation from database id's
 
I need to recursively recreate dependencies via Dependency Injection using the database id's as shown below. 0001(0002,0003) 0003(0004,0005) ID C...
[no replies]
SMFL sprites and grids help!
 
Hi guys, ive got a bit of coursework that im stuck on! Basically i have to make a maze game, sprites etc using SFML and C++. Now I've made an array to cr...
[no replies]
Classes
 
Hi everyone, I need help with some coding: Given a class Window, with integer data members width, height, xPos, and yPos, write the following two constructo...
[11 replies] Last: its solved with the code i just posted. (by louflow)
Difficulty with pointer-vectors
 
Hey, so for this school project (Data structures) I need to store items from a text document in a matrix so that I may later sort them and merge lists. I've be...
[no replies]
Purpose of disassembly window?
 
Why am I taken to a disassembly window when I debug my program? This is the function I'm trying to step into and whenever I have this, I get taken into the disa...
[3 replies] Last: roberts answered your question already. (by Stewbond)
Constructor with this pointer
 
Hi, I have run the following program and got the following input. Out : this is constructor When I have removed below comment ( //cout<<this) into destructor ...
[1 reply] : I believe delete this; will call the destructor. Therefore your des... (by Stewbond)
Money and Time objects for iostream
 
I was browsing <iomanip> while writing this function: http://cplusplus.com/forum/beginner/64156/#msg347042 I created a class that simultaneously outputs to ost...
[3 replies] Last: > I created a class that simultaneously outputs to ostream and ofstrea... (by JLBorges)
Allocation behavior of STL containers.
 
There is only two places in my code that I do any memory allocation and the list of those allocated blocks are kept in a main class that iterates through the li...
[7 replies] Last: > I'll look into boost again No, unless you want to reduce the memory... (by JLBorges)
Problem
 
Hello I have a little problem: Is there someway to do this? string 1 = 1111 string 2 = 1010 string 3 = string1 + string 2 = 11111010 Best Regards ...
[1 reply] : Do you mean some thing like string one = "1111"; string two = "101... (by therockon7throw)
Intersection of two unsorted Linked LIst
 
Anyone can tell me logic for two unsorted linked list. I have create two linked list named First and second . Now how to generate intersection linked list named...
[15 replies] Last: k i got that difference that is current means address of that node and... (by CSharpque)
Copy constructor with increment operator program
 
Hi, I am doing some hands on and doing some program. I got the following input but not able to figure out the output. why am I getting this value. This is d...
[3 replies] Last: In statement sample d= ++s; copy constructor is called. When you did... (by vlad from moscow)
operator overloading
 
If I want to overload the == operator, and I do so by doing something like: bool Stack<T>::operator==(const Stack<T>& rhs) const{ for(int i = 0; i <...
[7 replies] Last: > I want to use the == operator to check if my Stacks are the equal. ... (by JLBorges)
by paky89
output problem
 
hi, I'm trying to write a code to read an input string (InputReaded) and divide it into 2 different string; the first one (Operazione) is maden up of the char...
[7 replies] Last: You don't understand pointers/iterators. strncpy(Parentesi, OpenBrack... (by ne555)
by jwings
Why is there an error when deleting an array of pointers to class object
 
void listDA::ExpandArray() { _size++; Product **newarray=new Product* ; for(int i=0;i<(_size-1);i++) { newarray =_arr ; } newarray[_size-1]=NU...
[8 replies] Last: You probably fucked up an invariance. Use std::vector instead. The e... (by ne555)
Array code
 
How to make an Array code???????
[5 replies] Last: This will explain things in full: http://cplusplus.com/doc/tutorial/ar... (by Stewbond)
UTF16 File Replication Help
 
I exported a file from an application. It exported as a CSV. I opened it in notepad and copied the info into my C++ file manipulation program. I read another da...
[1 reply] : I made a sloppy solution (that i understand at least). I created a fun... (by vdiddlodka)
Search string in a text file and display it
 
Can someone help me on searching and displaying string in a text file.. Thanks, I'm using Dev C++.. :)
[5 replies] Last: > how about number 4? ( possibly several lines) Somewhat similar to 2... (by JLBorges)
inline + gcc optimization level 0
 
Hello, does anybody know if the compiler respects the keyword inline at gcc optimization level 0? Best regards, Seth
[11 replies] Last: > does anybody know if the compiler respects the keyword inline at gcc... (by JLBorges)
[Code::Blocks] Error: 'Polygon' does not name a type
 
So I'm writing some simple graphic routines for C++ using the OpenGL methods. I wrote one class, Polygon, that has functions for drawing geometric primitives li...
[4 replies] Last: Reset code::blocks settings and make a new project. It will ask you if... (by modoran)
Pointer question
 
Hey! I've a question when it comes to pointers and allocation. Lets say we've a class called MyVector. class MyVector { private : float *arr; ...
[7 replies] Last: Thanx all. I think I understand. (by john1911)
March 2012 Pages: 1... 3132333435... 49
  Archived months: [feb2012] [apr2012]

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