- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
8 Posted Topics
Re: hi... i have given u an code that generates a tree from a given inorder and preorder array... [CODE] #define NULL 0 typedef struct btree { int data; struct btree *left; struct btree *right; }node; node *root; void create(int,int []); void inorder(node *),preorder(node *); void main() { int i=0,p[30],in[30]; node … | |
is it possible to send an sms through JAVA.. My requirement is a chat application like Rediff bol. am able to do chat using networks. but can i be able to send sms. just like when i press a button called send sms then a window needs to get a … | |
[CODE] for(i=0;i<n-1;i++) { for(j=i+1;j<n;j++) { if(a[i]>a[j]) { temp=a[i]; a[i]=a[j]; a[j]=temp; count++; } } } [/CODE] [CODE] void select(int a[],int n) { for(i=0;i<=n;i++) { k=i; min=a[i]; for(j=i+1;j<=n-1;j++) { if(a[j]<min) { min=a[j]; k=j; count++; } else count++; } a[k]=a[i]; a[i]=min; } } [/CODE] which one is selection sort???first or sec?? | |
wat is the concept beyond COLUMN SORT??.. can any body guide me...Y column sort is introduced?? | |
Re: [QUOTE=sankhamita;1325450]Hi all! Please give c code which finds the included header files of another c file[/QUOTE] [B]hi shankamita,try the following code[/B] [CODE] #include<stdio.h> #include<string.h> void main() { FILE *fp; char c[50]; int count=0; clrscr(); fp=fopen("hello.c","r"); while(!feof(fp)) { fscanf(fp,"%s",c); if(strstr(c,"#include")) count++; } printf("number of files included are %d\n",count); getch(); } [/CODE] … | |
Re: [QUOTE=atomic33;1325563]write a problem that take 10 integers from the user put in a table then calculate the min,max and the average and print it on the screen[/QUOTE] wat has to be done??? finding out max min in a ordinary way or some advanced techniques??? | |
[B]this program is to find maximum and minimum using divide and conquer technique[/B] [CODE=C]int min=32000,max=0; void maxi(int [],int,int),merge(int [],int,int,int,int); void main() { int a[30],n,i; printf("enter the limit\n"); scanf("%d",&n); printf("enter the aray elements\n"); for(i=0;i<n;i++) scanf("%d",&a[i]); maxi(a,0,n-1); printf("maximum is %d and minimum is %d\n",max,min); getch(); } void maxi(int a[],int first,int last) { … | |
Re: > This may really simple to most people on here but i'm going crazy trying to work it out. > > I was set a task by someone to write a bit of code in C to do the following: > > 1) Ask Operator to enter 2 things - … |
The End.