15,551 Topics
| |
Hey all. I'm still trying to get use to how to work with rand. I'm just messing around with it to try and get good and comfortable with it. Working with a variable whose value starts out at 0, I want to try three different paramaters on it. 50% of … | |
The latest POTM contest is underway ... if you haven't participated before, the POTM is purely for fun and presents a programming problem to enjoy every couple of months. We have an active forum and a mix of 1300 participants from novice to expert. POTM winners receive the glory and … | |
Hi, We are working on an assignment where we have to use haptic interface and VRML file. This assignment also asks us to include a sound of the VRML image which we are using. Could anyone please help us as to how to code in C language to upload winamp … | |
Hello! I'm a new user of this forum. I'm italian and I work like programmer. I need of some information about C code and I wish you help me! Bye bye :D | |
How to I remove a varible from memory? A friend and I were talking and he seems to think that just resetting it to "" would be enough. Is he correct? If not, how do I remove varibles when I'm done with them? | |
Can someone please have a look and help me on making this Binary Search algorithm work. Donmt know what is wrong with it . [CODE]#include <stdio.h> #include <stdlib.h> #include <time.h> enum SearchResult {FOUND, NOT_FOUND}; SearchResult binarySearch(int array[], int key, int low, int high, int *comparisons); void fill_array(int array[], int sizeOfData); … | |
I have an URL of a file on the Web stored in a string. I want to start the download dialog box of Internet Explorer in order to download the file. Do you know any APIs? | |
[code]/*following is the shortest program that finds whether the entered no. is power of two or not,but i need to add some code(logic) to it. note:- program do not make use of keywords like if ,while ,for ,switch. */ #include<stdio.h> void main() { int n; char c[2][23]={"no. is not power … | |
My darn code keeps crashing, what am I doing wrong? I have a class with the follwoing method: [CODE]void BBSNode::AddToBuffer(char *buffer) { //strcat((char*)inputBuffer, (char*)buffer); sprintf("Got Data: %s\n", buffer); }[/CODE] I'm calling the method like this: [CODE]nodes[nodeID].AddToBuffer(sockBuffer);[/CODE] sockBuffer was declared like ... [CODE]char sockBuffer[IN_BUFFER_SIZE];[/CODE] Now, when I run the program and … | |
Today I had an exam and in that there was a question to differentiate between type casting and type conversions...Are they actually different?? I always thought they were same... :?: | |
I am working on a project that requires me to recive data from a network application. After I recive the data I'm suppose to break it up. Now I know of a way to sorta do that by using "tokens" and strtok (if you don't know strok breaks up a … | |
Hello ppl. Ok have to investigate and write a report on the efficiency of the following Linear Search algorithm. But im having problems starting off.... can anyone here help me kick start this 3 page report... would apreciate any information & help you guys here can give. [CODE]// This program … | |
Hello, I'm trying to understand how this heap sort algorithm works (how this particular implementation from [url]www.eternallyconfuzzled.com[/url]) works. [code] void jsw_do_heap ( int a[], int begin, int end ) { int save = a[begin]; while ( begin <= end / 2 ) { int k = 2 * begin; while … | |
[color=royalblue][QUOTE][color=royalblue]Codase is the leading source code search company with advanced source code understanding and xml index/search technologies. Rather than treating code as text, Codase understands programming languages, and treats code as code, the way it's supposed to be. This unique and syntax-aware approach provides the most accurate and detailed search … | |
I kno there is a way to make a alert message in win32 that goes away after a time delay...Does anyone know the code for this? | |
Hi...Im trying to make a date reminder type program...But Im looking for something along the lines of If(date == 31102005){*code*....May I please have help with this?? This is what i did...But is totally wrong...I need something that checks the date...where the user does not enter data. [code] #include <stdio.h> #include … | |
I m not getting the link for downloading bluetooth socket api so i f any one knows??? or if any other bluetooth api for easy comunication!!! u can also mail me on << moderator edit: email snipped >> | |
I did a "single linked list" header & Implementation & Main files & everything worked very good. But now i must Implementation for the "doubly linked list" & i just need to know what i should add to my functions so they will work good, should i change all the … | |
[code]/*In the following program i have to find the size of structure cal without making use of sizeof Operator but is incomplete, so add minimum line of code accomplish this*/ //note :-do not make use of sizeof #include<stdio.h> struct cal { long double d; float f; char c; }; void … | |
*make sure that this program give correct o/p to corresponding i/p/* [code]#include<stdio.h> #include<conio.h> void main() { char fname[15]; FILE *f; char c; printf("Enter the file name"); scanf("%s",&fname); f=fopen(fname,"w"); while(c=getch()!='#') fputc(f,c); fclose(f); f=fopen(fname,"r"); while(c=fgetc(f)!=EOF) printf("%c",c); getch(); fclose(f); f=fopen(fname,"r"); while(f=fgetc(c)!=EOF) printf("%c",c); getch(); }[/code]<< moderator edit: added [url=http://www.daniweb.com/techtalkforums/misc.php?do=bbcode#code][inlinecode][co[u][/u]de][/co[u][/u]de][/inlinecode][/url] tags >> | |
Hi, friends ; When I click on Internet Explorer it will open the home page, after that if I click on any other link it will show the following message, and it will shut down “Microsoft Internet Explorer | |
Hi, I've just started coding a simple linked list library and I would like the final implementation to have functions like sorting & searching. My questions are:- 1.I think that my library would need to implement sorting and searching similar to the qsort() and bsearch() implementation's in borland's library. 2.Could … | |
hai, i want to print graph nodes and their connections among nodes. how can i print this ? can any give me code? waiting for ur reply,,,,,,, | |
My program prints out Fibonacci_number(0,1,1,2,3,5). The program is ok. My problem:I want to take a number from Fibonacci_number(0,1,1,2,3,5) and multiply whit 10. ex: I want to take 3 and multiply with 10. I tried to write another function and call a Fibonacci_number from fib(int k)and then multiply it whit 10. … | |
I only get a result of "1.00" for each mileage calc and also for the overall average, regardless of numbers input. Can anyone see where the problem(s) is in my program below? Thanks in advance! [code] #include <stdio.h> void main(void ) { /* Variable Declarations */ /* ---------------------- */ float … | |
I was wondering if someone can help me with a code...I want to make a code where when someone opens the .exe an Instant Message in the AIM client is *SENT* not just opened...This Is what I Have So far...This is just a Snippet...Just the part im asking for help … | |
Hi, I want to know what is the logic used for generating a random number. Can anyone tell me the algorithm for random number generation without using standard library functions? Thanks | |
1. (a) What is trashing and list possible causes of thrashing. (b) How does the operating system detect thrashing and what can it do to eliminate thrashing? [15 marks] 2. The given program simulates the effect of changing page sizes in a demand paging system. The following sequence of request … | |
I'm trying to pass arguments to my program so that I can store them into an array. For some reason my IDE/compiler is treating the blank space in between arguments as an argument. I'm using bloodshed, but it doesn't say anything about a seperation character. Can anyone tell me what … | |
Hi all. I need some help counting specific numbers in C. The programme should accept two sets of numbers. It should then count how many of the second number is in the first set. For example: First input = 23387 Second input = 3 Ouput = "Number 3 appears twice … |
The End.