19,876 Topics
![]() | |
hi guys, i am a beginner and i need a few books which are really good and have lots of exercises.it would be better if it was fully devoted to exercises like 'Exploring C' by Yashavant Kanetkar which was excellent.All his C books are fantastic. you can finnd them at … | |
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 … | |
I've been working with OpenGL and Visual C++ for a short time, and I just tried to use the GLUI library for some fuctionality. But now I'm getting this error: [CODE]LINK : fatal error LNK1104: cannot open file 'LIBCD.lib'[/CODE] I've realized that the library is not anywhere to be found … | |
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 … | |
Hello, i am new to c++. i wanted to convert minutes e.g. 75, to hours and minutes in hh:mm format. any help will be greately appreciated. thanks :D | |
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 … | |
Code 1 [code] class Drink { public: Drink( char *name_ ) : name( name_ ) {} char *name; char get(int i) const { return name[i]; } }; [/code] Code 2 [code] class Drink { public: Drink( char *name_ ) : name( name_ ) {} char *name; char & get(int i) … | |
This is probably a stupid question, but i dont get the answer. Plz help me understand. Question: How could a linked list and a hash table be combined to allow someone to run through the list from item to item while still maintaining the ability to access an individual element … | |
Hi :o , I would like to know if it is possible to write a console program in [B]MS Visual C++ 6.0 [/B](ATM transaction program), that stores data to a database such as [B]MS Access 2002[/B] or [B]Oracle 9i[/B], through [B]ODBC[/B] :?: I've searched all over the net and I … | |
hi i m student and m making paint brush . i want to get image inside a circle to paste anywhere on screen. actually i want to create a circle with the previous screen under the circle to be visualize again so that my circle would look like empty circle … | |
1. I am using strtok() and am storing the return value into a char array. eg. char word[]; word = strtok(file[][], " "); Do I need to initialize 'word' to a constant size before using it? The thing is I don't know how big the string from strtok is going … | |
[code] # include<stdio.h> void main() { int p; p = (1,2,2,100,1); printf("%d",p); } [/code] I dont know what will be the output . Can anyone please tell me what exactly second line implies ?? :rolleyes: | |
Hi! I want to write a program to calculate Fibonacci number NON-RECURSIVE I tried many times but I could not get the result(0-1-1-2-3-5-8...). Please help me. [code] #include <stdio.h> unsigned int f(int n) { int i; unsigned int last=0,current=1; int result; for(i=1; i<=n; i++) { last+=current; //???????? printf("-%d",last); } return … | |
We have a struct defined as : typedef struct tagWINDOWPOS { /* wp */ HWND hwnd; HWND hwndInsertAfter; int x; int y; int cx; int cy; UINT flags; } WINDOWPOS; Then we are sent a message... WM_WINDOWPOSCHANGING WPARAM wParam LPARAM lParam; Parameters wParam This parameter is not used. lParam Pointer … | |
Okay I have a problem where the name of my vector is highlighted in yellow throughout my code and my output. I changed the name of the vector but on the output the word list is still highlighted in yellow, why? Below is my code: [code] #include <iostream> #include <string> … | |
[code] #include<stdio.h> int main(){ double price=500; double year=5; double total; if(price==500) { //???????????????????? scanf("%f", &price); printf("%f\n", price); } total=(price * year); printf("%f\n", total); } [/code] why the scanf() can not get a new value from keyboard. I want to give a new value to the price but the out put … | |
I happen to be writing a very simple text browser, and I'm having a problem connecting to servers using HTTP1.1 GET messages... HTTP1.0 works fine, I just have a string like this: [CODE] const char *request = "GET / HTTP/1.0\n\n"; [/CODE] This works great, and I receive my html back … | |
I need help with my homework. If someone is willing to help me then I will pay you for your time. Thanks my email is << moderator edit: email address deleted >> | |
how can create password for database programatically through ADO open connection? | |
I've been trying to compile OSKit under Cygwin. It gave me a bunch of errors, most of which I fixed. I can't fix this one though: [code] /* * Copyright (c) 1996-2000 University of Utah and the Flux Group. * All rights reserved. * * This file is part of … | |
Hi! I have problem with type conversion. when I compile the program I get this error: ( 'count' : redefinition; different basic types ). please tell me about type conversion. [Code] #include<stdio.h> int count(double houre, double charge); int main(){ double h=4; double c=2; printf("%d\n", count(h,c)); return 0; } int count(double … | |
When a structure is assigned, passed, or returned, the copying is done monolithically....what does this monolithic mean any example?? | |
I everyone, I have two C Socket questions. I have searched the net and read my reference books, but cannot find my answer. Anyway, I am making a simple telnet based server. To create a new socket I am using the following code: [CODE]newsockfd = accept(sockfd, (struct sockaddr *) &cli_addr, … | |
As null pointer points to nothing. So, How does the following code works #include <stdio.h> class cb { public: void HelloB() { printf("Calling cb\n"); }; }; int main(void) { cb* pb = 0; pb->HelloB(); // should it crash here ? return 0; } | |
hi everybody. i am trying to develop a program that will be able to read and export informations (hw, sw, kernel, netstats..ecc) from a linux computer. my idea was to use the files in the [b]/proc[/b] directory but i can't get the script to work - this is what i … |
The End.