Click here to Skip to main content
15,880,469 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Arithmetic operation in pointer using C Pin
Bill_Hallahan1-Nov-13 18:22
Bill_Hallahan1-Nov-13 18:22 
QuestionListView::LVN_EndLabelEdit problem Pin
jackheroes31-Oct-13 8:51
jackheroes31-Oct-13 8:51 
SuggestionRe: ListView::LVN_EndLabelEdit problem Pin
Richard MacCutchan31-Oct-13 15:09
mveRichard MacCutchan31-Oct-13 15:09 
GeneralRe: ListView::LVN_EndLabelEdit problem Pin
jackheroes31-Oct-13 19:52
jackheroes31-Oct-13 19:52 
GeneralRe: ListView::LVN_EndLabelEdit problem Pin
Richard MacCutchan31-Oct-13 23:37
mveRichard MacCutchan31-Oct-13 23:37 
Questiontest Pin
Member 1036994131-Oct-13 5:37
Member 1036994131-Oct-13 5:37 
AnswerRe: test Pin
jeron131-Oct-13 6:01
jeron131-Oct-13 6:01 
Questionreturn value Pin
messages28-Oct-13 4:20
messages28-Oct-13 4:20 
This recursive function doesnt have a end point,becuase 12 item is not exist in the array.How we can fix this recursive function to solve this problem?
C++
int _tmain(int argc, _TCHAR* argv[])
{
     int arr[10] = {1,2,3,4,5,6,7,8,9,10};
    int sum;

	  sum=BinSearch(arr,12,0,9);
		  cout<<sum;

	return 0;

}

int BinSearch(int A[],int item,int low,int height)
{
		int mid;
		mid=(low+height)/2;
		if(A[mid]==item)
			return mid;
		else if(item > A[mid])
			return Binary_Search(A,item,mid+1,height);
		else
			return Binary_Search(A,item,low,mid-1);
}

AnswerRe: return value Pin
Joe79428-Oct-13 5:00
Joe79428-Oct-13 5:00 
GeneralRe: return value Pin
messages28-Oct-13 5:33
messages28-Oct-13 5:33 
AnswerRe: return value Pin
Aescleal28-Oct-13 6:11
Aescleal28-Oct-13 6:11 
GeneralRe: return value Pin
messages28-Oct-13 6:28
messages28-Oct-13 6:28 
QuestionSend POSITION through wParam Pin
_Flaviu27-Oct-13 22:04
_Flaviu27-Oct-13 22:04 
AnswerRe: Send POSITION through wParam Pin
Jochen Arndt27-Oct-13 22:23
professionalJochen Arndt27-Oct-13 22:23 
GeneralRe: Send POSITION through wParam Pin
_Flaviu27-Oct-13 22:35
_Flaviu27-Oct-13 22:35 
QuestionLAN port on/off LED Pin
coolerfantasy26-Oct-13 20:39
coolerfantasy26-Oct-13 20:39 
QuestionRe: LAN port on/off LED Pin
Richard MacCutchan26-Oct-13 21:37
mveRichard MacCutchan26-Oct-13 21:37 
AnswerRe: LAN port on/off LED Pin
coolerfantasy26-Oct-13 21:43
coolerfantasy26-Oct-13 21:43 
GeneralRe: LAN port on/off LED Pin
Richard MacCutchan26-Oct-13 22:09
mveRichard MacCutchan26-Oct-13 22:09 
QuestionNeed help with C++ programming. Pin
B-Sho26-Oct-13 10:04
B-Sho26-Oct-13 10:04 
AnswerRe: Need help with C++ programming. Pin
CPallini26-Oct-13 10:38
mveCPallini26-Oct-13 10:38 
AnswerRe: Need help with C++ programming. Pin
André Kraak26-Oct-13 10:42
André Kraak26-Oct-13 10:42 
GeneralRe: Need help with C++ programming. Pin
B-Sho26-Oct-13 13:04
B-Sho26-Oct-13 13:04 
AnswerRe: Need help with C++ programming. Pin
jackheroes31-Oct-13 9:07
jackheroes31-Oct-13 9:07 
GeneralRe: Need help with C++ programming. Pin
David Crow31-Oct-13 10:54
David Crow31-Oct-13 10:54 

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.