Click here to Skip to main content
14,387,050 members

C / C++ / MFC

 
GeneralRe: C++ Callback process is dea Pin
Victor Nijegorodov13-Jun-19 11:24
MemberVictor Nijegorodov13-Jun-19 11:24 
QuestionProblem using strings Pin
Rodrigo Lourenço7-Jun-19 12:01
MemberRodrigo Lourenço7-Jun-19 12:01 
AnswerRe: Problem using strings Pin
Victor Nijegorodov7-Jun-19 12:26
MemberVictor Nijegorodov7-Jun-19 12:26 
GeneralRe: Problem using strings Pin
Rodrigo Lourenço8-Jun-19 0:55
MemberRodrigo Lourenço8-Jun-19 0:55 
GeneralMessage Closed Pin
11-Jun-19 3:34
MemberMember 1449432111-Jun-19 3:34 
AnswerRe: Problem using strings Pin
k50547-Jun-19 12:39
Memberk50547-Jun-19 12:39 
GeneralRe: Problem using strings Pin
Rodrigo Lourenço8-Jun-19 1:03
MemberRodrigo Lourenço8-Jun-19 1:03 
SuggestionRe: Problem using strings Pin
David Crow7-Jun-19 17:50
MemberDavid Crow7-Jun-19 17:50 
GeneralRe: Problem using strings Pin
Rodrigo Lourenço8-Jun-19 1:02
MemberRodrigo Lourenço8-Jun-19 1:02 
AnswerRe: Problem using strings Pin
Joe Woodbury7-Jun-19 19:47
professionalJoe Woodbury7-Jun-19 19:47 
GeneralRe: Problem using strings Pin
Rodrigo Lourenço8-Jun-19 0:59
MemberRodrigo Lourenço8-Jun-19 0:59 
AnswerRe: Problem using strings Pin
Richard MacCutchan7-Jun-19 22:52
mveRichard MacCutchan7-Jun-19 22:52 
GeneralRe: Problem using strings Pin
Rodrigo Lourenço8-Jun-19 1:00
MemberRodrigo Lourenço8-Jun-19 1:00 
AnswerRe: Problem using strings Pin
Rodrigo Lourenço8-Jun-19 1:05
MemberRodrigo Lourenço8-Jun-19 1:05 
GeneralRe: Problem using strings Pin
jschell8-Jun-19 5:36
Memberjschell8-Jun-19 5:36 
GeneralRe: Problem using strings Pin
CPallini9-Jun-19 23:41
mveCPallini9-Jun-19 23:41 
JokeRe: Problem using strings Pin
Peter_in_278010-Jun-19 2:41
professionalPeter_in_278010-Jun-19 2:41 
GeneralRe: Problem using strings Pin
CPallini10-Jun-19 6:51
mveCPallini10-Jun-19 6:51 
GeneralRe: Problem using strings Pin
John R. Shaw11-Jun-19 18:47
MemberJohn R. Shaw11-Jun-19 18:47 
QuestionProblem in binary search using C++ Pin
Member 144829306-Jun-19 0:01
MemberMember 144829306-Jun-19 0:01 
AnswerRe: Problem in binary search using C++ Pin
CPallini6-Jun-19 0:27
mveCPallini6-Jun-19 0:27 
Quote:
cout<<"\nEnter ">>count>>" numbers:\n";

Should be
out << "\nEnter " << count << " numbers:\n"; 


You should ask the user for an ordered sequence, in order to make the binary search work.

Your code is very C-like, you didn't take advantange of the wonderful features of modern C++. Smile | :)
GeneralRe: Problem in binary search using C++ Pin
Member 144829306-Jun-19 0:44
MemberMember 144829306-Jun-19 0:44 
GeneralRe: Problem in binary search using C++ Pin
CPallini6-Jun-19 0:47
mveCPallini6-Jun-19 0:47 
AnswerRe: Problem in binary search using C++ Pin
Victor Nijegorodov6-Jun-19 8:20
MemberVictor Nijegorodov6-Jun-19 8:20 
QuestionGlobal Event in C++ Pin
Member 142210415-Jun-19 22:29
MemberMember 142210415-Jun-19 22:29 

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.