Hi,
I have to build a program that will find the equivalent resistances in series and parallel of any number of resistances entered at the keyboard. So far i have this:
I really don't know where i went wrong. The value returned for RTS is the same value as the user entered and the...
So I am trying to write a program in C including simple mathematical functions given in math.h. In particular, I want sin(), cos() and pow(). Now when I try to compile (using gcc), I get this error (using powf()):
Undefined first referenced
symbol in file
powf...
Can somebody help me in finding a determinat of a matrix of any dimension using C?
This is in order to form an interpolating formula using the Newton Gregory Method.
I have a few questions:
1. Reversing the elements of an array involves swapping the corresponding elements of the array: the first with the last, the second with the next to the last, and so on, all the way to the middle of the array.
Given an array a , an int variable n containing...
Hello,
I am writing a c program to Prompts the user (altogether 10 times) to enter a word not longer than 9 characters: for this part, it doesn't seems working. it didnt return back to the loop to re-entry a correct word(less than 9 characters) " And it needs the modification of each word by...
Problem in C, please help :)
Hello all, So I'm learning C nowadays and I got stuck at this rather simple program. I have no idea what the problem in the program is so I hope someone can help.
The program is for reading the number of students in a class, likewise reading their names and scores...
my friend i fail to perform this simple task can you please direct me how to approach a simple question like this
the quetion said "a registrar set up the curriculum for the term . One course may have up to 10 subject . Students must select a minimum of 6 subjects from a particular course...
i'm facing problem in completing my assignment. actually i need to write a programme to calculate principal stress from 3 method..
one of them is drawing mohr circle...
but i don't even know how to draw a graphic using C programming..
can anyone help me?
it's really urgent...
thanks...
Hey everyone,
I have programmed in Java for 2.5 years (prior to last year which I did no programming, because I did the gr 12 course in grade 11 and there weren't any more courses for me to do in grade 12).
Next year I will be going to Univ. of Toronto for Engineering Science, and in the...
Hi, does anyone know of any websites which I can access to obtain the necessary files for me to able to create, compile and run C programs? I really need some programming practice and reading my textbook won't be enough. So any help would be much appreciated.
Hi,
I have a question about C programming.
I am going to take a class of C programming and we are going to write the codes in a UNIX environment.
Because I do not have access to a "SUN" computer, is there a possibility to have a compiler that permits me to write under Windows XP but can...
Hi, I'm just learning how to program in C. When I try to compile my program, I get errors saying that NULL is undeclared. I didn't think I had to declare it...
So anyway, can anyone tell me how I go about declaring it? Thanks.
In my C book it says that the serial port is stdaux, but when I make a program to send data to stdaux the compiler (Dev-C++ in Windows and gcc in linux) says that stdaux doesn't exist :frown: Can anyone explain or point me toward a good tutorial about using the serial ports in C?
Thanks
I have run into a little bit of confusion working with pointers and I am trying to figure out which of the expressions below from my assignment are valid. My definition of a pointer is that it is a variable that contains a memory address, so I get confused about whether I am modifying a location...
I have a question about a C program that I'm trying to write. I need to write a program that finds the distance between two sets of points (x1, y1) and (x2, y2) without using the math.h header file. I'm currently doing functions in my class, so I suppose I have to write a separate function that...
Here's a question I am working on for a c programming assignment.
If the following printf statement was part of a complete program, what would it print?
printf("%c",'\x4d');
Now, I know this prints M because I ran it, and I know the output is a single character because %c is a single...