Click here to Skip to main content
15,891,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionsegmentation fault- gdb output : at 0x00ac315a meaning?? Pin
shrims4u10-May-09 19:51
shrims4u10-May-09 19:51 
AnswerRe: segmentation fault- gdb output : at 0x00ac315a meaning?? Pin
Cedric Moonen10-May-09 20:20
Cedric Moonen10-May-09 20:20 
GeneralRe: segmentation fault- gdb output : at 0x00ac315a meaning?? Pin
shrims4u11-May-09 16:53
shrims4u11-May-09 16:53 
GeneralRe: segmentation fault- gdb output : at 0x00ac315a meaning?? Pin
Cedric Moonen11-May-09 20:07
Cedric Moonen11-May-09 20:07 
QuestionGetting a crash when using the below code. Pin
V K 210-May-09 19:36
V K 210-May-09 19:36 
AnswerRe: Getting a crash when using the below code. Pin
Code-o-mat10-May-09 22:25
Code-o-mat10-May-09 22:25 
QuestionRe: Getting a crash when using the below code. Pin
David Crow11-May-09 3:36
David Crow11-May-09 3:36 
Questionconvert tiff to pdf using pdflib ? Pin
aa_zz10-May-09 17:35
aa_zz10-May-09 17:35 
AnswerRe: convert tiff to pdf using pdflib ? Pin
Stuart Dootson10-May-09 21:54
professionalStuart Dootson10-May-09 21:54 
Questionhi i need this program immediately in c++ Pin
sonuchill10-May-09 6:13
sonuchill10-May-09 6:13 
AnswerRe: hi i need this program immediately in c++ Pin
Wes Aday10-May-09 6:29
professionalWes Aday10-May-09 6:29 
AnswerRe: hi i need this program immediately in c++ Pin
David Crow10-May-09 7:05
David Crow10-May-09 7:05 
AnswerRe: hi i need this program immediately in c++ Pin
Hamid_RT10-May-09 8:31
Hamid_RT10-May-09 8:31 
GeneralRe: hi i need this program immediately in c++ Pin
Stuart Dootson10-May-09 9:28
professionalStuart Dootson10-May-09 9:28 
AnswerRe: hi i need this program immediately in c++ Pin
CPallini10-May-09 11:45
mveCPallini10-May-09 11:45 
GeneralRe: hi i need this program immediately in c++ Pin
«_Superman_»10-May-09 16:37
professional«_Superman_»10-May-09 16:37 
GeneralRe: hi i need this program immediately in c++ Pin
CPallini10-May-09 21:22
mveCPallini10-May-09 21:22 
GeneralRe: hi i need this program immediately in c++ Pin
«_Superman_»10-May-09 22:11
professional«_Superman_»10-May-09 22:11 
GeneralRe: hi i need this program immediately in c++ Pin
Hamid_RT10-May-09 19:46
Hamid_RT10-May-09 19:46 
AnswerRe: hi i need this program immediately in c++ Pin
Yusuf10-May-09 16:44
Yusuf10-May-09 16:44 
JokeRe: hi i need this program immediately in c++ Pin
«_Superman_»10-May-09 17:04
professional«_Superman_»10-May-09 17:04 
Questionpointer to std::list problem! Pin
Avion859-May-09 6:03
Avion859-May-09 6:03 
Hi everyone. I have a rather simple(or so i thought) problem. I cant seem to pass, and recieve a pointer to a list.I need access to this list so i can add a newly created object(of the class sphere) into it!
I am calling a method of a class Sphere like this:

//sphere.h
class sphere{
int id, promjer, x, y;

  sphere(int idd, int ppromj, int xx, int yy, std::list<sphere> *llist_of_classes) //adding newly created object to the list, or so i thought
      : id(idd), promjer(ppromj), x(xx), y(yy){
		llist_of_classes.push_back(this);
}

//main.cpp
std::list<sphere> list_of_classes;

void main(){
...

  sphere Ball(1,2,3, &list_of_classes); //this is the point where i call the constructor to create the object, and add it to the list

}


I get the 'cannot convert paramater 5 from..to..' error msg. Does anyone have any idea how to solve this problem?
Or more generally, how do i pass and recieve pointers to std::list?!
thx!
AnswerRe: pointer to std::list problem! Pin
Code-o-mat9-May-09 7:09
Code-o-mat9-May-09 7:09 
GeneralRe: pointer to std::list problem! Pin
Avion859-May-09 8:15
Avion859-May-09 8:15 
GeneralRe: pointer to std::list problem! Pin
Code-o-mat9-May-09 8:22
Code-o-mat9-May-09 8:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.