C programming Definition and 115 Threads
-
J
Why Do Some Machines Require '-lm' for Compiling C Programs While Others Don't?
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...- Ja4Coltrane
- Thread
- C programming Programming
- Replies: 9
- Forum: Programming and Computer Science
-
K
How to Find the Determinant of a Matrix in C for Newton Gregory Method?
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.- kthouz
- Thread
- C programming Determinant Programming
- Replies: 1
- Forum: Programming and Computer Science
-
F
Some help with C programming questions
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...- fubag
- Thread
- C programming Programming
- Replies: 1
- Forum: Programming and Computer Science
-
L
Modify and Sort Words in C Program: Help with C Programming
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...- liukinhei
- Thread
- C programming Programming
- Replies: 8
- Forum: Programming and Computer Science
-
E
Why Does My C Program Skip Input Fields?
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...- Erised
- Thread
- C programming Programming
- Replies: 6
- Forum: Programming and Computer Science
-
J
C Programming Language: Checking Number of Subjects Chosen for a Course
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...- joe88
- Thread
- C programming Language Programming
- Replies: 1
- Forum: Programming and Computer Science
-
J
Draw mohr circle using C programming
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...- jaymin
- Thread
- C programming Circle Programming
- Replies: 3
- Forum: Programming and Computer Science
-
R
Need Help Getting Started with C Programming?
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...- rocketboy
- Thread
- C programming Programming
- Replies: 19
- Forum: Programming and Computer Science
-
B
Top C Programming Resources for Practice and Development
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.- Benny
- Thread
- C programming Programming Resources
- Replies: 5
- Forum: Engineering and Comp Sci Homework Help
-
B
C programming in UNIX environment
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...- brad sue
- Thread
- C programming Programming Unix
- Replies: 12
- Forum: Programming and Computer Science
-
D
Declaring NULL in C Programming - Need Help
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.- dwx1
- Thread
- C programming Programming
- Replies: 1
- Forum: Programming and Computer Science
-
G
Why Doesn't stdaux Exist When Programming Serial Ports in C?
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- Grotesque Puppet
- Thread
- C programming Programming Serial
- Replies: 2
- Forum: Computing and Technology
-
C programming: working with pointers
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...- Math Is Hard
- Thread
- C programming Pointers Programming
- Replies: 41
- Forum: Introductory Physics Homework Help
-
M
C Prog Q: Find Dist btwn 2 Sets of Points Without math.h
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...- mathrocks
- Thread
- C programming Programming
- Replies: 8
- Forum: Computing and Technology
-
C programming question (beginner)
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...- Math Is Hard
- Thread
- Beginner C programming Programming
- Replies: 7
- Forum: Introductory Physics Homework Help