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

C / C++ / MFC

 
AnswerRe: Merge sort for files (C++ realization) Pin
Chandrasekharan P30-Jun-09 23:47
Chandrasekharan P30-Jun-09 23:47 
QuestionRe: Merge sort for files (C++ realization) Pin
David Crow1-Jul-09 3:04
David Crow1-Jul-09 3:04 
Questiongenetic algorithm(G A) Pin
luckykhan30-Jun-09 20:59
luckykhan30-Jun-09 20:59 
AnswerRe: genetic algorithm(G A) Pin
Cedric Moonen30-Jun-09 21:07
Cedric Moonen30-Jun-09 21:07 
AnswerRe: genetic algorithm(G A) Pin
Rajesh R Subramanian30-Jun-09 22:58
professionalRajesh R Subramanian30-Jun-09 22:58 
JokeRe: genetic algorithm(G A) Pin
David Crow1-Jul-09 3:07
David Crow1-Jul-09 3:07 
Questionrunning a application as service Pin
rahuljin30-Jun-09 20:40
rahuljin30-Jun-09 20:40 
AnswerRe: running a application as service Pin
Madhu Nair30-Jun-09 20:46
Madhu Nair30-Jun-09 20:46 
GeneralRe: running a application as service Pin
Harsh Shankar30-Jun-09 21:00
Harsh Shankar30-Jun-09 21:00 
AnswerRe: running a application as service Pin
Michael Dunn30-Jun-09 20:47
sitebuilderMichael Dunn30-Jun-09 20:47 
AnswerRe: running a application as service Pin
David Crow1-Jul-09 3:13
David Crow1-Jul-09 3:13 
QuestionError "aggregate'main():: record r' has incomplete type and cannot be defined". ??? Pin
Razanust30-Jun-09 19:37
Razanust30-Jun-09 19:37 
AnswerRe: Error "aggregate'main():: record r' has incomplete type and cannot be defined". ??? Pin
Madhu Nair30-Jun-09 19:43
Madhu Nair30-Jun-09 19:43 
AnswerRe: Error "aggregate'main():: record r' has incomplete type and cannot be defined". ??? Pin
chandu00430-Jun-09 19:44
chandu00430-Jun-09 19:44 
AnswerRe: Error "aggregate'main():: record r' has incomplete type and cannot be defined". ??? Pin
David Crow1-Jul-09 3:39
David Crow1-Jul-09 3:39 
Question880410 - CtlColor Pin
ilostmyid230-Jun-09 19:25
professionalilostmyid230-Jun-09 19:25 
AnswerRe: 880410 - CtlColor Pin
«_Superman_»30-Jun-09 19:52
professional«_Superman_»30-Jun-09 19:52 
AnswerRe: 880410 - CtlColor Pin
Chuck O'Toole30-Jun-09 23:07
Chuck O'Toole30-Jun-09 23:07 
QuestionHow To Dynamically Create and Display CListView object Pin
CodeMacDaddy30-Jun-09 10:24
CodeMacDaddy30-Jun-09 10:24 
QuestionRe: How To Dynamically Create and Display CListView object Pin
David Crow30-Jun-09 10:49
David Crow30-Jun-09 10:49 
AnswerRe: How To Dynamically Create and Display CListView object Pin
CodeMacDaddy8-Jul-09 3:33
CodeMacDaddy8-Jul-09 3:33 
QuestionQuestion! Pin
Razanust30-Jun-09 8:42
Razanust30-Jun-09 8:42 
My object is to fill the buffer first and then make it empty. But the 'sizeof' command is returning the value '1', whatever input i give to it. Why? The code is mentioned below.


#include<stdio.h>
#include<conio.h>
main()
{
char dec;
static char ch[100];
int n=0,i,p,c,count;

while(1)
{
ch[n]=getche();
n=n+1;
if ( ch[n-1]=='\r')
break;
}

count=sizeof(ch[100]);
printf("%ld",count);
printf("Your name is");

for (c=0;c<count;c++)
{
printf(" %c",ch[c]);}

printf("\n\nWant to delete the array?");
dec=getche();
if (dec=='y')
{
for (i=0;i<99;i++)
ch[i]=0;
}
if (dec=='y')
{
for(p=0;p<99;p++)
printf("%c",ch[p]);
}


}
AnswerRe: Question! [modified] Pin
Nuri Ismail30-Jun-09 9:01
Nuri Ismail30-Jun-09 9:01 
AnswerRe: Question! Pin
thebeekeeper30-Jun-09 9:05
thebeekeeper30-Jun-09 9:05 
GeneralRe: Question! Pin
Luc Pattyn30-Jun-09 10:38
sitebuilderLuc Pattyn30-Jun-09 10:38 

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.