Click here to Skip to main content
15,919,422 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Upgrading old MFC look to .NET look Pin
sps-itsec4613-Sep-07 22:21
sps-itsec4613-Sep-07 22:21 
Questionneed to give the number of middle Pin
youbo13-Sep-07 15:53
youbo13-Sep-07 15:53 
AnswerRe: need to give the number of middle Pin
David Crow13-Sep-07 17:22
David Crow13-Sep-07 17:22 
GeneralRe: need to give the number of middle Pin
youbo13-Sep-07 17:24
youbo13-Sep-07 17:24 
QuestionRe: need to give the number of middle Pin
David Crow14-Sep-07 2:28
David Crow14-Sep-07 2:28 
AnswerRe: need to give the number of middle [modified] Pin
carrivick13-Sep-07 19:23
carrivick13-Sep-07 19:23 
GeneralRe: need to give the number of middle Pin
youbo13-Sep-07 20:38
youbo13-Sep-07 20:38 
GeneralRe: need to give the number of middle Pin
carrivick15-Sep-07 2:48
carrivick15-Sep-07 2:48 
Look more closely

void main()<br />
{<br />
int n=0,k,m,j;<br />
//n is Zero so you declare an array of zero size !<br />
int*p=new int[n];<br />
// To late you update the value of n<br />
cin>>n;<br />
k=n;<br />
j=n;<br />
m=n;<br />
for(;n>0;n--)<br />
{<br />
cin>>p[n-1];<br />
}<br />
int x=1;<br />
while(x)<br />
{<br />
x=0;<br />
for(;k>0;k--)<br />
{<br />
// This syntax is just wrong try to understand rather than just getting it to compile<br />
if(p[k-1] {<br />
swap(p[k-1],p[k]);<br />
x=1;<br />
<br />
}<br />
<br />
}<br />
}<br />
// What if only one element is enter opps were off the end of the array<br />
if(m%2==1){cout<<p[j/2+1];}<br />
else cout<<p[j/2]<<p[j/2+1];<br />
//cout<<p[m/2+j%2]<<endl;<br />
<br />
}<br />
void swap(int &a,int &b)<br />
{int c;<br />
c=a;<br />
a=b;<br />
b=c;}
get this,it is also wrong.please have
QuestionConvert DWORD_PTR back to my object Pin
paresh_joe13-Sep-07 9:48
paresh_joe13-Sep-07 9:48 
AnswerRe: Convert DWORD_PTR back to my object Pin
Michael Dunn13-Sep-07 10:03
sitebuilderMichael Dunn13-Sep-07 10:03 
GeneralRe: Convert DWORD_PTR back to my object Pin
paresh_joe13-Sep-07 17:22
paresh_joe13-Sep-07 17:22 
QuestionRe: Convert DWORD_PTR back to my object Pin
David Crow13-Sep-07 17:24
David Crow13-Sep-07 17:24 
AnswerRe: Convert DWORD_PTR back to my object Pin
carrivick13-Sep-07 19:29
carrivick13-Sep-07 19:29 
GeneralRe: Convert DWORD_PTR back to my object Pin
Michael Dunn13-Sep-07 22:13
sitebuilderMichael Dunn13-Sep-07 22:13 
AnswerRe: Convert DWORD_PTR back to my object Pin
paresh_joe13-Sep-07 19:41
paresh_joe13-Sep-07 19:41 
QuestionWindows XP Memory allocation questions Pin
Budric B.13-Sep-07 5:34
Budric B.13-Sep-07 5:34 
AnswerRe: Windows XP Memory allocation questions Pin
Mark Salsbery13-Sep-07 6:01
Mark Salsbery13-Sep-07 6:01 
AnswerRe: Windows XP Memory allocation questions Pin
Waldermort13-Sep-07 6:16
Waldermort13-Sep-07 6:16 
AnswerRe: Windows XP Memory allocation questions Pin
Nemanja Trifunovic13-Sep-07 6:34
Nemanja Trifunovic13-Sep-07 6:34 
GeneralRe: Windows XP Memory allocation questions Pin
Budric B.13-Sep-07 7:41
Budric B.13-Sep-07 7:41 
QuestionDatabase Embedding Pin
perrin486913-Sep-07 5:12
perrin486913-Sep-07 5:12 
QuestionRe: Database Embedding Pin
Maximilien13-Sep-07 5:47
Maximilien13-Sep-07 5:47 
AnswerRe: Database Embedding Pin
perrin486913-Sep-07 7:02
perrin486913-Sep-07 7:02 
GeneralRe: Database Embedding [modified] Pin
Nemanja Trifunovic13-Sep-07 7:32
Nemanja Trifunovic13-Sep-07 7:32 
GeneralRe: Database Embedding Pin
perrin486913-Sep-07 8:41
perrin486913-Sep-07 8:41 

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.