Click here to Skip to main content
15,914,070 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerCross post!! Pin
SandipG 1-Sep-08 21:14
SandipG 1-Sep-08 21:14 
Questionexe to .bin file Pin
pooja_friends1-Sep-08 20:49
pooja_friends1-Sep-08 20:49 
AnswerRe: exe to .bin file Pin
Cedric Moonen1-Sep-08 20:54
Cedric Moonen1-Sep-08 20:54 
Questionset default icon Pin
ani_ikram1-Sep-08 20:40
ani_ikram1-Sep-08 20:40 
AnswerRe: set default icon Pin
ani_ikram1-Sep-08 21:21
ani_ikram1-Sep-08 21:21 
GeneralRe: set default icon Pin
Hamid_RT1-Sep-08 21:57
Hamid_RT1-Sep-08 21:57 
GeneralRe: set default icon [modified] Pin
Rane1-Sep-08 22:21
Rane1-Sep-08 22:21 
QuestionNested structure in c Pin
mdsameerahsan1-Sep-08 20:27
mdsameerahsan1-Sep-08 20:27 
Hi,

I am confused about nested structure in c. I define a structure inside a another structure. But I am not able to allocate memmry to nested structre variable;

Code is
struct student
	{
		struct student		 *sd;
		int rollno ;
		
		struct classroom
		{
			int		marks;
			struct classroom *claas ;
			
		};
			
        struct classroom	 *croom;

	};

	
	struct student *stud =  new student();//ignore new
	stud->croom =  new student :: classroom();  //This is true for c++ but what will be in c for this



I have allocated memory to classroom object using c++ method but how this can happen in c programming

efhghgfffhf

Questionconvert visual c++ project in to complete sw........ Pin
shaina22311-Sep-08 20:24
shaina22311-Sep-08 20:24 
AnswerRe: convert visual c++ project in to complete sw........ Pin
_AnsHUMAN_ 1-Sep-08 20:33
_AnsHUMAN_ 1-Sep-08 20:33 
AnswerRe: convert visual c++ project in to complete sw........ Pin
Cedric Moonen1-Sep-08 20:36
Cedric Moonen1-Sep-08 20:36 
GeneralRe: convert visual c++ project in to complete sw........ Pin
Rane1-Sep-08 20:58
Rane1-Sep-08 20:58 
GeneralRe: convert visual c++ project in to complete sw........ Pin
Cedric Moonen1-Sep-08 21:01
Cedric Moonen1-Sep-08 21:01 
GeneralRe: convert visual c++ project in to complete sw........ Pin
Rane1-Sep-08 21:15
Rane1-Sep-08 21:15 
Questionconvert visual c++ project in to complete sw........ Pin
shaina22311-Sep-08 20:08
shaina22311-Sep-08 20:08 
AnswerRe: convert visual c++ project in to complete sw........ Pin
Cedric Moonen1-Sep-08 20:11
Cedric Moonen1-Sep-08 20:11 
AnswerRe: convert visual c++ project in to complete sw........ Pin
ThatsAlok1-Sep-08 20:12
ThatsAlok1-Sep-08 20:12 
AnswerRe: convert visual c++ project in to complete sw........ Pin
Jijo.Raj1-Sep-08 20:26
Jijo.Raj1-Sep-08 20:26 
GeneralRe: convert visual c++ project in to complete sw........ Pin
Rane1-Sep-08 20:56
Rane1-Sep-08 20:56 
GeneralRe: convert visual c++ project in to complete sw........ Pin
Jijo.Raj1-Sep-08 21:50
Jijo.Raj1-Sep-08 21:50 
QuestionSend SMS Pin
Paulraj G1-Sep-08 19:41
Paulraj G1-Sep-08 19:41 
AnswerRe: Send SMS Pin
mdsameerahsan1-Sep-08 20:45
mdsameerahsan1-Sep-08 20:45 
GeneralRe: Send SMS Pin
Paulraj G1-Sep-08 20:51
Paulraj G1-Sep-08 20:51 
AnswerRe: Send SMS Pin
Hamid_RT1-Sep-08 22:29
Hamid_RT1-Sep-08 22:29 
Questionslow std::sort, hot to make it without object copy? Pin
Michele Bosi1-Sep-08 19:39
Michele Bosi1-Sep-08 19:39 

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.