Click here to Skip to main content
15,440,014 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Shred a folder Pin
MehdiHazrati27-Nov-12 5:23
MemberMehdiHazrati27-Nov-12 5:23 
QuestionRe: Shred a folder Pin
David Crow27-Nov-12 6:04
MemberDavid Crow27-Nov-12 6:04 
GeneralRe: Shred a folder Pin
Richard MacCutchan27-Nov-12 6:29
mveRichard MacCutchan27-Nov-12 6:29 
QuestionRe: Shred a folder Pin
David Crow27-Nov-12 6:03
MemberDavid Crow27-Nov-12 6:03 
AnswerRe: Shred a folder Pin
jschell27-Nov-12 13:08
Memberjschell27-Nov-12 13:08 
GeneralRe: Shred a folder Pin
MehdiHazrati27-Nov-12 17:45
MemberMehdiHazrati27-Nov-12 17:45 
GeneralRe: Shred a folder Pin
jschell28-Nov-12 8:33
Memberjschell28-Nov-12 8:33 
Questiondo-while did not work Pin
ho_khalaf26-Nov-12 19:36
Memberho_khalaf26-Nov-12 19:36 
XML
#include <stdio.h>
#include <stdlib.h>

int main(void) {
    char again;
    do{
        printf("insert y or Y to repeat");
        fflush(stdout);
        scanf("%c",&again);
    }while(again=='y'||again=='Y');
}

i wrote this code to create a loop that when insert y or Y do the job again but did not work.when i enter first y the loop be end.
AnswerRe: do-while did not work Pin
Andy41126-Nov-12 19:55
MemberAndy41126-Nov-12 19:55 
GeneralRe: do-while did not work Pin
ho_khalaf26-Nov-12 20:04
Memberho_khalaf26-Nov-12 20:04 
GeneralRe: do-while did not work Pin
Andy41126-Nov-12 20:08
MemberAndy41126-Nov-12 20:08 
AnswerRe: do-while did not work Pin
water-moon201226-Nov-12 20:20
Memberwater-moon201226-Nov-12 20:20 
Questioneclipse Pin
ho_khalaf26-Nov-12 8:02
Memberho_khalaf26-Nov-12 8:02 
QuestionRe: eclipse Pin
Maximilien26-Nov-12 8:04
MemberMaximilien26-Nov-12 8:04 
AnswerRe: eclipse Pin
ho_khalaf26-Nov-12 8:08
Memberho_khalaf26-Nov-12 8:08 
AnswerRe: eclipse Pin
Richard MacCutchan26-Nov-12 8:15
mveRichard MacCutchan26-Nov-12 8:15 
Questiondo-while did not work in eclipse c\c++ IDE ? Pin
ho_khalaf26-Nov-12 6:50
Memberho_khalaf26-Nov-12 6:50 
AnswerRe: do-while did not work in eclipse c\c++ IDE ? Pin
Chris Meech26-Nov-12 7:07
MemberChris Meech26-Nov-12 7:07 
AnswerRe: do-while did not work in eclipse c\c++ IDE ? Pin
Richard MacCutchan26-Nov-12 8:00
mveRichard MacCutchan26-Nov-12 8:00 
GeneralRe: do-while did not work in eclipse c\c++ IDE ? Pin
ho_khalaf26-Nov-12 8:12
Memberho_khalaf26-Nov-12 8:12 
GeneralRe: do-while did not work in eclipse c\c++ IDE ? Pin
Richard MacCutchan26-Nov-12 8:14
mveRichard MacCutchan26-Nov-12 8:14 
GeneralRe: do-while did not work in eclipse c\c++ IDE ? Pin
ho_khalaf26-Nov-12 8:16
Memberho_khalaf26-Nov-12 8:16 
GeneralRe: do-while did not work in eclipse c\c++ IDE ? Pin
ho_khalaf26-Nov-12 8:20
Memberho_khalaf26-Nov-12 8:20 
GeneralRe: do-while did not work in eclipse c\c++ IDE ? Pin
Richard MacCutchan26-Nov-12 8:22
mveRichard MacCutchan26-Nov-12 8:22 
GeneralRe: do-while did not work in eclipse c\c++ IDE ? Pin
ho_khalaf26-Nov-12 8:27
Memberho_khalaf26-Nov-12 8:27 

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.