General C++ Programming - March 2010

by NGen
Implementing std::auto_ptr::operator ->
 
I'm making my own auto_ptr-type class (I'd use the STL version, but I can't use it with containers),...
[1 reply] : you could just use shared_ptr. I don't think there's a standard lib v... (by Disch)
by meesa
[C++] Error C2075? (1,2)
 
So what I'm doing is trying to get the two highest numbers out of a vector. int size=sizeof(so...
[31 replies] Last: meesa: I think you are confusing "typeid" with "typeof". typeof is not... (by imi)
by onako
Recursion with matrix parts
 
As a part of the project I'm working on, the input matrix needs to be deflated, meaning split into 2...
[no replies]
by kerlon
different outputs from 'identical' codes...
 
Ok, I've edited this post to make this problem a bit clearer (i think!) #include "yhead...
[15 replies] Last: .. so it seems that for uninitialized values.. c++ assigns a very sma... (by Disch)
How to call a function using its name as a string?
 
Hi, guys! I got a problem. I need to call several functions based on a previous statement and I h...
[7 replies] Last: standard comp. sci. answer to all this, is to parse the expression int... (by choisum)
by babli
IFilter.GetText throwing exception
 
Hi, I am stuck with this method for more than 2 days... I am using the GetText method of IFilter...
[no replies]
Initialise const struct in a class constructor? [solved]
 
Estimated C++ programmers, if I wish to have a struct object icons like this: const struct { ...
[9 replies] Last: Or since a struct is really a class with public members by default, yo... (by choisum)
by qabil
searching+sorting
 
#include<iostream.h> typedef enum boolean{false=0,true=1}; boolean found; void sorting(int arr...
[4 replies] Last: the easiest way would be to do a linear search, though not efficient. ... (by blackcoder41)
Restarting i in for loop???
 
Hi all, I have a little problem with the following code, I have to check to see if the idnumber t...
[5 replies] Last: what do you mean by "while is freelancer's meat"? Aww. nothing part... (by imi)
by Arx
strange issue with input from a file
 
Alright, I've been confounded by this problem, and I honestly don't understand whats causing it. ...
[3 replies] Last: objects/tower/tower.mtl Segmentation fault hm.. if this code b... (by imi)
Can i have some .....
 
hi guys i have a complicated home work...... i done the most of it but the last part which is prime ...
[1 reply] : Err... Did you post a link to a binary intentionally? Maybe you want t... (by imi)
operators and operands
 
Hi please i need help with this home work it's due tomorrow. Any will be highly appreciated. ...
[9 replies] Last: Thanks IMI but how will the compiler realize that 'is_an_operator' is... (by imi)
copy one string to another string up to some no of characters
 
char* category;//i'll pass some string using function for( i=0;i<noOfRec...
[2 replies] Last: thank you dude ... (by yakubpasha)
Problem in Linked List
 
Hello Everyone! Here is what I am working on: Design your own linked list class to hold a series...
[2 replies] Last: Head is supposed to point to newNode. Can't believe I forgot that but ... (by ohsnap1319)
by NGen
vector::clear Method Causing Errors
 
#define PrimaryContainer std::vector // ... for ( PrimaryContainer<ObjectBase*>::iterator iter = ...
[4 replies] Last: Also note that you'll need a virtual destructor to delete the derived ... (by moorecm)
Data Structure..I shouldn't make it !!!!! information system
 
QUESTİON Write a C++ program for the student information system of a university. The information a...
[2 replies] Last: Well.... you better get started! (by Return 0)
by A Atta
Problem with passing Array by reference
 
Hi all, I have a small problem with passing array by reference. When i call a function like this: ...
[5 replies] Last: If you went off the boundaries of an array, the result can be anything... (by Bazzy)
Why derived class can’t access to static data member of parent class?
 
1) I have a based class with a static data member, and I have a derived class from this based class....
[2 replies] Last: Thanks for the suggestion, Disch. I tried what you suggested, it do... (by starquest1000)
"multiple definition of " error
 
I´m trying to make a control for an hexapod robot. This is not a problem of robotics but an C++ imp...
[3 replies] Last: Even if you include a standard header more than once, it won't raise a... (by helios)
by ARWA
adding new element in the array
 
i dont now what to do else; i have afunction that will read data from the screen and then save it u...
[2 replies] Last: yes global this is the porgram but by parts so to not get confused:: ... (by ARWA)
March 2010 Pages: 123... 23
  Archived months: [feb2010] [apr2010]

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