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
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
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 :")...
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
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)
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...
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...