- Strength to Increase Rep
- +3
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Re: your request are so general. Please specify yr requirement to get a detail help. | |
Re: [QUOTE=dinklebaga;798840]Hi All, I am getting confused as to how to get this data into there in the start (wether to use a struct or what) and also how to output the data and in what form (%c, %d, etc.). If you could offer any advice it would be greatly appreciated. … | |
Re: [QUOTE=priyankasaini;798907]please write a programme to sort array of integers using quick sort[/QUOTE] Read Quick sort algorithm at [url]http://cprogramminglanguage.net/quicksort-algorithm-c-source-code.aspx[/url] And try to write a simple function yourself. Good luck, xitrum | |
Re: I think you have to define two arrays and two mutex as global variables such as: two arrays: 1st_array, 2nd_array two mutex: 1st_mutex, 2nd_mutex and we will have three functions as below [code=c] void ReaderThread(....) // 1st thread { .... lock 1st_mutex; if (1st_array is empty) { read info from … | |
Re: Please take your time to study curl library (source code) where you can find a simple example to understand how to post a http request with C programming. | |
Re: post your code. I will take my time to review your code soon | |
Re: I think the libcurl can help you [url]http://curl.haxx.se/libcurl/[/url] if you want to talk to a website. If you want to launch a web brower, you can use system() function to call IExplore.exe program. | |
Re: in the main function, you have to replace the [B]displayArray (numbers)[/B] with the [B]display (numbers)[/B] function. Have fun. | |
Re: Yes, you missed the closing bracket of the function sort and wrong in sort algorithm. Here is your function [code=c] void sort(int num[],int i) { int k,k2,temp; for (int k=0; k<N-1; k++) for (int k2=k; k2<N; k2++) if (num[k] > num[k2]) { temp = num[k]; num[k] = num[k2]; num[k2] = … | |
Re: Here is your code [code=c] int main () float M[3][3]= { {0.01, 1.02, 2.05}, {2.01, 0.00, 5.00}, {3.01, 4.00, 0.40} }; float mn, mx; for (int i = 0; i < 3; i++) // change the column for testing only HERE // for (i=0; i<1; i++) to get max = … | |
Re: I suppose that you are using C language. Here is your function [code=c] #include <stdlib.h> int RunSystemCmd(char *pfilename) { char buff[512] = {0}; if (pfilename == NULL) return -1; sprintf(buff,"HandBrakeCLI -i /dev/hdc -o /root/%s -b 1024 -B 128 -R 48 -E faac -f mp4 -w 368 -l 208 -m", pfilename); … | |
Re: I think you should change your code as following: [code] #include<iostream> #include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> using namespace std; main() { // char *filenames[] = {"file1","file2","file3",NULL}; int n; char buf[256]; FILE *fp = NULL; cout<<" enter number of input files :"; cin>>n; for(int i =0;i < n;i++){ sprintf(buf,"file%d.dat",i+1); fp = fopen … |