- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 2
- Posts with Downvotes
- 1
- Downvoting Members
- 2
Can anybody suggest me the android code for connecting two devices that are transmitting files using bluetooth or ad hoc ? Any kind of help will be appreciated. |
|
How to make a common API for python toolkits like tkinter,pygtk, pyqt |
|
Re:
#include<stdio.h> void quicksort(int [10],int,int); int main(){ int x[20],size,i; printf("Enter size of the array: "); scanf("%d",&size); printf("Enter %d elements: ",size); for(i=0;i<size;i++) scanf("%d",&x[i]); quicksort(x,0,size-1); printf("Sorted elements: "); for(i=0;i<size;i++) printf(" %d",x[i]); return 0; } void quicksort(int x[],int first,int last){ int pivot,j,temp,i; if(first<last){ pivot=first; i=first; j=last; while(i<j){ while(x[i]<=x[pivot]&&i<last) i++; while(x[j]>x[pivot]) j--; if(i<j){ temp=x[i]; x[i]=x[j]; … |
|
Here is the c code:- #include<stdio.h> #include<stdlib.h> #include<string.h> int main(int argc,char *argv[]){ if(argc==1){ //default printf("first version\n"); int i,j,k; char line[1024],*str1,*str,str2[1024],ch; FILE *in=fopen("/proc/cpuinfo","r"); i=0; while((fgets(line,1024,in))!=NULL){ // printf("%s",line); str=strtok(line, " :"); if(str!=NULL){ //point 1 if(strcmp(str,"model")==0){ printf("%d %s\n",i,str); //point 2 str=strtok(NULL, " :"); printf("%s\n",str); //printing "name" if(strcmp(str,"name")==0) //point 3 printf("CPU Model:=%s\n",strtok(NULL,":")); } else … |
|
How do I commit to svn in after posting a review request and being reviewed . Please elaborate |
|
Can any1 help me in differentiating between dynamic and static scoping by using examples ?? |
|
|
|
Can anyone give me the code for awk scripting? |
|
Filename is "htb.java". Here is the code:- import java.io.*; import java.util.*; import java.lang.*; public class htb{ public static void main(String[] args) throws Exception{ File f= new File("dyna.txt"); BufferedReader in = new BufferedReader(new FileReader(f)); String[] line = new String[40000]; line[0] = in.readLine(); int i=0; while(line!=null) line[++i] = in.readLine(); String[] mem_add=new String[100000]; … |
|
Re:
Hi all, I'm having a problem here!! I've attended a lecture on Implementation of stacks in c++ using arrays and it wasn't really hard to understand, but now I'm supposed to know how to Implement a stack using linked list, that's the problem. help please?:confused: |
|
Re:
Can someone please tell me the order of this merge sort? [CODE]#include<iostream.h> void merge(int[], int,int,int); void merge_sort(int[],int); int min(int x,int y) { if(x<=y) return x; else return y; } void main() { int array[16] = {5,0,12,1,4,3,25,6,8,7,45,9,13,2,17,10}; int i; cout<<"Unsorted : "; for(i=0; i<16; i++) { cout<<array[i]<<" "; } cout<<endl<<endl; merge_sort(array,16); … |
|
how can I read trace file in java and store it in an array. |