15,539 Topics
|
|
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 … |
|
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 … |
|
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? |
|
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> … |
|
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 … |
|
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] |
|
[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 … |
|
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] … |
|
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 … |
|
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 … |
|
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? |
|
I am so lost! I just need somebody to explain what to do and how it works. |
|
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 … |
|
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 … |
|
I am trying to create a pure virtual function returning an array of pointers, without success! :cry: I would appreciate help greatly. |
|
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 … |
|
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? |
|
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 … |
|
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 … |
|
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 … |
|
From [url]http://www.tutorial.2ya.com[/url] Hope that site will be helpful. |
|
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. |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
[i]editing function messed up this post. For more information, feel free to PM me. Sorry about that! --alc6379[/i] |
|
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, … |
The End.