Recent content by blue_tiger30

  1. B

    Help in upgrading my code that converts a lower-case string to upper c

    no it was not :) the homw work was to use a delay function , this was something I wanted to know for future programs
  2. B

    Does a hamming code always corrects one error and detect 2 errors ?

    sorry I meant is the minimum distance always 3 ?
  3. B

    Does a hamming code always corrects one error and detect 2 errors ?

    does a hamming code always corrects one error and detect 2 errors ? and is the distance always 3 ? I know that that is true for (7,4) hamming code but does that apply to a (11,7) or (15,11) ? if not please let me how to get the answers
  4. B

    How to make the clock refresh instead of it repeating every second

    thanks for all your help , I glade to see a discussion in my thread and a lot of ideas . I still didn't understand what I should do :) I got really confused now rcgldr : here is how I use cygwin , I think it uses the dos console
  5. B

    How to make the clock refresh instead of it repeating every second

    tired the backspace and /r it just gave my an extra empty row it seems that this compiler doesn't like anything
  6. B

    How to make the clock refresh instead of it repeating every second

    didn't work please enter the the time in the following format hh:mm:ss :23:10:30 blank the code #include<stdio.h> #include <time.h> void delay ( int seconds ); int main (void) { int sec,min,h; printf("please enter the the time in the following format hh:mm:ss :")...
  7. B

    How to make the clock refresh instead of it repeating every second

    printf("The time is %02d:%02d:%02d\b",h,min,sec); printf("\bThe time is %02d:%02d:%02d",h,min,sec); printf("The time is %02d:%02d:%02d\b\b\b\b\b\b\b\b\b",h,min,sec) this doesn't work
  8. B

    How to make the clock refresh instead of it repeating every second

    in the exam I have to be using the same compiler :(
  9. B

    How to make the clock refresh instead of it repeating every second

    printf("\rThe time is %02d:%02d:%02d",h,min,sec); just tried that now didnt work :(
  10. B

    How to make the clock refresh instead of it repeating every second

    printf("The time is %02d:%02d:%02d\b",h,min,sec) printf("The time is %02d:%02d:%02d\b\b\b\b\b\b\b\b\b",h,min,sec) printf("The time is %02d:%02d:%02d\r",h,min,sec) printf("The time is %02d:%02d:%02d\r\n",h,min,sec)
  11. B

    How to make the clock refresh instead of it repeating every second

    I tried both , I got no display at all :P yah the simpler the better since that I'm a beginner
  12. B

    How to make the clock refresh instead of it repeating every second

    I did the following program #include<stdio.h> #include <stdlib.h> #include <time.h> int main (void) { int sec,min,h; printf("please enter the the time in the following format hh:mm:ss :"); scanf("%d:%d:%d",&h,&min,&sec); for ( ; ; ) { sleep(1);// a delay function which delays by a second...
  13. B

    Help in upgrading my code that converts a lower-case string to upper c

    hello I'm a beginner in c programming. I wrote a code that converts the lower case that the user entered to upper case characters. I want to improve my program , but since I'm a beginner i might not be aware of some technics . my program can only allow you to enter as many characters as...
Back
Top