19,876 Topics

Member Avatar for
Member Avatar for Balachandran

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 …

Member Avatar for stackOverflow
0
152
Member Avatar for ricciola

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

Member Avatar for ricciola
0
218
Member Avatar for atrusmre

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?

Member Avatar for Puckdropper
0
115
Member Avatar for nabil1983

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); …

Member Avatar for SpS
0
210
Member Avatar for AhmedHan

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?

Member Avatar for WolfPack
0
101
Member Avatar for glamo

[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 …

Member Avatar for EsMaru
0
168
Member Avatar for calcop

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 …

Member Avatar for calcop
0
130
Member Avatar for urubu715

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 …

0
55
Member Avatar for aminura

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... :?:

Member Avatar for aminura
0
136
Member Avatar for atrusmre

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 …

Member Avatar for atrusmre
0
154
Member Avatar for nabil1983

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 …

Member Avatar for Rashakil Fol
0
183
Member Avatar for Micko

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 …

Member Avatar for Narue
0
227
Member Avatar for ! !

[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 …

Member Avatar for SpS
0
136
Member Avatar for !=logical not

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?

Member Avatar for Ancient Dragon
2
93
Member Avatar for !=logical not

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 …

Member Avatar for winbatch
0
211
Member Avatar for mhk_mohsin

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 >>

Member Avatar for Ancient Dragon
0
61
Member Avatar for kyakobi84

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 …

Member Avatar for kyakobi84
0
96
Member Avatar for glamo

[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 …

Member Avatar for SpS
0
83
Member Avatar for glamo

*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 >>

Member Avatar for Dave Sinkula
0
94
Member Avatar for qazwsxedc

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

Member Avatar for SpS
0
139
Member Avatar for sahil_m

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 …

0
62
Member Avatar for imanust

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

Member Avatar for winbatch
0
195
Member Avatar for balachandu

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,,,,,,,

Member Avatar for Rashakil Fol
0
67
Member Avatar for PeterX

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. …

Member Avatar for Dave Sinkula
0
176
Member Avatar for tippytoe

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 …

Member Avatar for Ene Uran
0
199
Member Avatar for manishgurnaney

How Can i Create a final class in C++? i have tried by making constructors private . but i want to know an efficient way of doing this?

Member Avatar for Narue
0
92
Member Avatar for !=logical not

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 …

Member Avatar for Narue
0
221
Member Avatar for aripaka

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

Member Avatar for Narue
0
382
Member Avatar for jenyin84

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 …

Member Avatar for Dave Sinkula
0
774
Member Avatar for server_crash

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 …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for stabule

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 …

Member Avatar for stabule
0
149
Member Avatar for SpS

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) …

Member Avatar for Ancient Dragon
0
128
Member Avatar for Asif_NSU

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 …

Member Avatar for Narue
0
182
Member Avatar for j1979c

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 …

Member Avatar for Ancient Dragon
0
173
Member Avatar for gurneks04

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 …

Member Avatar for kc0arf
0
116
Member Avatar for desertstorm

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 …

Member Avatar for Narue
0
136
Member Avatar for harshchandra

[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:

Member Avatar for akshatvig19
0
135
Member Avatar for morgan_morgen

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 …

Member Avatar for Gary King
0
155
Member Avatar for AhmedHan

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 …

Member Avatar for AhmedHan
0
289
Member Avatar for djbsabkcb

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> …

Member Avatar for Ancient Dragon
0
107
Member Avatar for PeterX

[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 …

Member Avatar for Ancient Dragon
0
90
Member Avatar for Daishi

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 …

Member Avatar for Daishi
0
169
Member Avatar for cobra2003

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 >>

Member Avatar for Dave Sinkula
0
104
Member Avatar for lsy
Member Avatar for lsy
0
96
Member Avatar for mmiikkee12

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 …

Member Avatar for mmiikkee12
0
138
Member Avatar for PeterX

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 …

Member Avatar for PeterX
0
101
Member Avatar for SpS

When a structure is assigned, passed, or returned, the copying is done monolithically....what does this monolithic mean any example??

Member Avatar for Rashakil Fol
0
169
Member Avatar for calcop

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, …

Member Avatar for calcop
0
104
Member Avatar for ankitrastogi82

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; }

Member Avatar for SpS
0
180
Member Avatar for trashed

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 …

Member Avatar for trashed
0
3K

The End.