void display(int set[],int count){
int i;
printf("{");
for(i=0;i<count;i++)
printf("%d,",set[i]);
printf("\b}\n");
}
void add(int set[],int *count,int item){
if(!(contains(set,*count,item)))
set[(*count)++]=item;
}
int contains(int set[],int count,int item){
int i,found=0;
for(i=0;i<count;i++){
if(set[i]==item){
found=1;//return 1;
break;
}
}
return found;//return 0;
}
About this blog
These codes here are just based on my own knowledge learned from my IT subjects. I know there are more ways that this draft codes can be enhance, so..
Please feel free to comment & suggest.. Suggest Codes which makes my existing codes simpler.. Thanks!
Archives
Categories
Making Life Simple w/ Programming
Links
- w3schools.com
- Java & Textpad Setup Guide 2
- Java & Textpad Setup Guide
- ASCII Alphabet Characters
- File Handling - Forum
- File Handling - Tutorial 0.1
- File Handling - Tutorial 0.2
- Bin-Dec Conversion - Forum
- Use of getch(), getche(), & getchar()
- The C Book
- SEO
- Common C programming errors
- Tutorial - Array Functions
- August Council Tutorial - c
- C language tutorials
- cprogramminglanuage.net
0 comments