15,539 Topics

Member Avatar for
Member Avatar for dalaharp

Hi, i am using pow command quite frequently in my codes, and i have a feeling that i may be using it incorrectly. foe ex: [CODE]pow(image[x][y],2);[/CODE] image[x][y] is unsigned char and 2 is numeric, so is the arguments ok. [CODE]std_dev=pow(((ur_mean/(R*C))-(im_mean*im_mean)),.5);[/CODE] this a bit complicated, will it work this way? is …

Member Avatar for Narue
0
117
Member Avatar for robert_sun

I am deciding to develope a add-in or a program for outlook express which could enable outlook express to share WAB on different computers. I have checked the this website: [url]http://www.slipstick.com/outlook/share.htm[/url] But as far as I can see, All the methods it mentioned, they concern the outlook instead of outlook …

Member Avatar for BountyX
0
169
Member Avatar for robintu

I wanna turn to diverse functional entry acording to the received datas. The datas received from the serial port are at the length of 2 bytes . so I can't simply use Switch sentence. How can I make it?

Member Avatar for robintu
0
189
Member Avatar for lizp

I have written the following program, but still have a problem understanding the code . why won't this work? [code] /*This program will organize a linked list of employees Written by Elizabeth Preuss January 2005 Adapted from classwork and handouts Version 2.0 language c(target borland) */ #include <stdio.h> #include <string.h> …

Member Avatar for Narue
0
127
Member Avatar for nico

hey everyone am trying to generate a beeping sound on my pc using the 'sound' function , the problem is i am getting errors (5 to be exact ) when i compile this program , please someone point out the error on this code , thanx :) below is the …

Member Avatar for vegaseat
0
185
Member Avatar for Transworld

It would probably be easier if you took a look at this thread I made in another forum. I am Siege-Tank. [url]http://www.bwhacks.com/forums/showthread.php?t=1984[/url]

Member Avatar for alc6379
0
101
Member Avatar for galmca

[code] #include <stdio.h> #define SIZE 10 int main() { int a[ SIZE ]; int i,n,pass,hold; printf("enter the number of elements in an array:"); scanf("%d",&n); printf( "Data items in original order\n" ); for ( i = 0; i <= SIZE - 1; i++ ) printf( "%4d", a[ i ] ); for …

Member Avatar for Asif_NSU
0
1K
Member Avatar for wardduncan

Hey guys, I need some help with looping. I am writing a currency converter (who in begining programming isn't these days) and I want to have it loop so that I can it keep asking for another entry or make it quit. Here is what I have so far: [code] …

Member Avatar for wardduncan
0
146
Member Avatar for galmca

hi i am right now new to c language..and i have been facing problem in 1 array problem where i have to insert an element in to an array...i would like ur help plzz..i have tried everything but i m not able to make out from where i should start …

Member Avatar for Narue
0
117
Member Avatar for galmca

hi i am right now new to c language..and i have been facing problem in 1 array problem where i have to insert an element in to an array...i would like ur help plzz..i have tried everything but i m not able to make out from where i should start …

Member Avatar for 1o0oBhP
0
440
Member Avatar for {{unknown}}

HI I JUST START TO LREAN ABOUT C LANGAUAE AND I DONE SOME PROGRAME BY C LANGAUE.... I WOULD LIKE TO KNOW ABOUT fflush WHAT IS THIS FUNCTION STAND FOR? AND WHEN WE USE IT?

Member Avatar for {{unknown}}
0
128
Member Avatar for EyeNeedHelp
Member Avatar for murschech

I've seen a number of listings which include some pre-proccessor stuff that I don't see the need for. Here's an example. The file is a header file ADD.H. Here is the whole file: ___________________________________________________________________ #ifndef ADD_H #define ADD_H (Some function prototype which is just what you'd expect in a header …

Member Avatar for Dave Sinkula
0
107
Member Avatar for the b

Does anyone know what's wrong with this function? The program that uses it runs but does not display the average. I also tried using the sum variable instead of ptr3 and had the same results. [CODE]void calculate(int days) { float sum = 0; float average; temperature_node *ptr2; temperature_node *ptr3; ptr2 …

Member Avatar for the b
0
225
Member Avatar for chound
Member Avatar for sinB

I am trying to create a pure virtual function returning an array of pointers, without success! :cry: I would appreciate help greatly.

Member Avatar for harshchandra
0
72
Member Avatar for helloworld

Each job had: • a name ( up to 8 letters) • a unique job number ( first job 1, second 2 and so on) • a priority 1-5 • memory requirement ( multiples of 4K, max 16K ) • programmer - name, extension prog1 Your job is to create …

Member Avatar for alc6379
0
102
Member Avatar for ahmed_design
Member Avatar for Dani
0
159
Member Avatar for BountyX

Does anyone know how to have a windows program accept command line options? For example a terminal program just needs a parameter in the main function to accept command line parameters, how can I do the same for a windows main functions, since parameters are already there?

Member Avatar for BountyX
0
180
Member Avatar for Acidburn

Hello from what i can understand about function is that you need the prototype , then you need some kind of call function in the program and then the delcared function. Well I've done that but it doesnt want to work :( #include <iostream> #include <ctime> #include <cstdlib> using namespace …

Member Avatar for Acidburn
0
81
Member Avatar for PriyaJaiGanesh

Hai! I tried writing a stack program using the concept of templates. It worked well for the int,char and double.But when i tried to pass a complex class error occured. Is it possibleto pass a class to the template class? If so what is the syntax for doing it? I …

Member Avatar for 1o0oBhP
0
101
Member Avatar for Acidburn

Hi I know pseudo code is not a generic language... I've google about a little and found different / similar words with the same meaning, however I'm a little stuck on the "toss = 1 + rand() % 2" Which basically looks at the system clock ,creates a random number …

Member Avatar for Acidburn
0
121
Member Avatar for cancer10
Member Avatar for mikeandike22
1
212
Member Avatar for fakhre

hi ppl i am fakhre, and i am new, not only at your web but also in 'C' language. will any one of u will help me, i need a simple code written with while loop to convert binary to decimal. your frnd Fakhre.

Member Avatar for Dave Sinkula
0
368
Member Avatar for unikiller

I am allitle confused about shell sorting , how exactly is it done ? Say I have an array of 25 , 15 , 20 ,40,9,2,4,5,100,1 The next step would be gap1/2 , which would be 5 right ? so then it would look like 2 15 20 40 9 …

0
98
Member Avatar for Nabs

Consider this function: double find_distance (const stud &pnt_1, const stud &pnt_2); stud is a defined structure. What is the point of calling pnt_1 and pnt_2 by reference if 'const' is included at the begginning, making the value remain constant? I mean, when we call by reference, its only to change …

Member Avatar for 1o0oBhP
0
101
Member Avatar for RaulC

Iam suppose to make a program that creates an employee database of names, addresses, and phone numbers. the user to search by name for an employee in the database. if the name is not found output a message to that effect. so far I have this but its giving me …

Member Avatar for 1o0oBhP
0
141
Member Avatar for Mooonky

I have to make a C program read ordinary text (a sequence of lines) from the program's standard input, and print it with each line reversed from left to right. It has to be no longer than 80 symbols and it should read until it gets an EOF. Im stumped …

Member Avatar for anastacia
0
153
Member Avatar for netjet

[i]editing function messed up this post. For more information, feel free to PM me. Sorry about that! --alc6379[/i]

Member Avatar for netjet
0
143
Member Avatar for serfurj

i've been reading a lot of the posts here to help me learn C. the problem is, much of the code is written for other compilers (i use gcc). i didn't know there was compiler-specific code until i tried to compile code from questions asked here. this seems so backwards, …

Member Avatar for serfurj
0
155

The End.