C programming Definition and 116 Threads

  1. J

    C programming Do – While loop problems

    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...
  2. 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...
  3. 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.
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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...
  10. 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.
  11. 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...
  12. 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.
  13. 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
  14. Math Is Hard

    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...
  15. 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...
  16. Math Is Hard

    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...
Back
Top