Click here to Skip to main content
15,913,758 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problems in lock hotkeys like Alt+Tab,Alt+Esc,Ctrl+Alt+Del etc Pin
David Crow23-May-07 2:53
David Crow23-May-07 2:53 
GeneralRe: Problems in lock hotkeys like Alt+Tab,Alt+Esc,Ctrl+Alt+Del etc Pin
abhiakude24-May-07 21:13
abhiakude24-May-07 21:13 
GeneralRe: Problems in lock hotkeys like Alt+Tab,Alt+Esc,Ctrl+Alt+Del etc Pin
David Crow25-May-07 2:38
David Crow25-May-07 2:38 
QuestionReference Pin
Kiran Pinjala22-May-07 4:18
Kiran Pinjala22-May-07 4:18 
AnswerRe: Reference Pin
Manoj Kumar Rai22-May-07 4:38
professionalManoj Kumar Rai22-May-07 4:38 
GeneralRe: Reference Pin
Arman S.22-May-07 5:13
Arman S.22-May-07 5:13 
AnswerRe: Reference Pin
Arman S.22-May-07 5:18
Arman S.22-May-07 5:18 
AnswerRe: Reference Pin
jhwurmbach22-May-07 5:43
jhwurmbach22-May-07 5:43 
kiran.pinjarla wrote:
Is it possible to have reference to a reference varible.


Sure:
// _Template.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "iostream"

int _tmain(int argc, _TCHAR* argv[])
{
	int i = 5;
	int& ri = i;
	int& rri = ri;

	std::cout << i << ri << rri << std::endl;

	rri = 6;

	std::cout << i << ri << rri << std::endl;

	return system("pause");
}

kiran.pinjarla wrote:
Why?


Hmm. To not make up a special case by not allowing it?
After all, an int& is supposed to be like an int in all respects. It is just another name for a variable.






Failure is not an option - it's built right in.

Question[Message Deleted] Pin
dodoxor22-May-07 4:17
dodoxor22-May-07 4:17 
AnswerRe: Return pointer Pin
Manoj Kumar Rai22-May-07 4:43
professionalManoj Kumar Rai22-May-07 4:43 
AnswerTry to post you question in the C++/CLI forum. Pin
CPallini22-May-07 4:44
mveCPallini22-May-07 4:44 
GeneralRe: Try to post you question in the C++/CLI forum. Pin
Hamid_RT22-May-07 7:52
Hamid_RT22-May-07 7:52 
GeneralRe: Try to post you question in the C++/CLI forum. Pin
CPallini22-May-07 7:56
mveCPallini22-May-07 7:56 
GeneralRe: Try to post you question in the C++/CLI forum. Pin
Hamid_RT22-May-07 8:20
Hamid_RT22-May-07 8:20 
GeneralRe: Try to post you question in the C++/CLI forum. Pin
CPallini22-May-07 9:32
mveCPallini22-May-07 9:32 
GeneralRe: Try to post you question in the C++/CLI forum. Pin
Hamid_RT22-May-07 9:58
Hamid_RT22-May-07 9:58 
QuestionTab order and active x control Pin
amyvt22-May-07 3:43
amyvt22-May-07 3:43 
QuestionIDispatch::Invoke() function Pin
Syamlal S Nair22-May-07 2:27
Syamlal S Nair22-May-07 2:27 
AnswerRe: IDispatch::Invoke() function Pin
Arman S.22-May-07 3:32
Arman S.22-May-07 3:32 
AnswerRe: IDispatch::Invoke() function Pin
CPallini22-May-07 4:13
mveCPallini22-May-07 4:13 
GeneralRe: IDispatch::Invoke() function Pin
Syamlal S Nair22-May-07 23:19
Syamlal S Nair22-May-07 23:19 
GeneralRe: IDispatch::Invoke() function Pin
CPallini23-May-07 0:16
mveCPallini23-May-07 0:16 
QuestionFile operation problem. Pin
sandeepkavade22-May-07 1:57
sandeepkavade22-May-07 1:57 
QuestionRe: File operation problem. Pin
David Crow22-May-07 2:47
David Crow22-May-07 2:47 
QuestionWorker threads and GUI Pin
iayd22-May-07 1:21
iayd22-May-07 1:21 

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.