Never mind, I maybe misunderstood how if statements work. This is now working. Thank you very much.
Type: Posts; User: Alex Saunders
Never mind, I maybe misunderstood how if statements work. This is now working. Thank you very much.
//A program that calculates the reduced mass of diatomic molecules.
//The following libraries will be used.
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
Manual_Input()
{
}
Well this is the thing, because I have a chemistry teacher and not a programming teacher who taught us, we didn't go into that depth of detail. I assumed before you assigned the value, it still...
Ermm it wouldn't have a value?
But if it wasn't 1 it doesn't necessarily mean False || True || True, because someone could have put in the wrong number like 4. No? Then they would all be false.
Well that code was providing the loop, it seemed to be working because it kept looping back.
I feel so bad making another topic so soon after the other one. I was just wondering if there was something wrong with my if statements here. When I choose an option other than option 1,2, or 3 it...
Thankyou very much for the help everyone. Problem is now solved.
For some reason our teacher was using a C++ compiler, but teaching us C commands from stdio.h.
The teacher didn't mind if we used C++ or C as long as it ran in the compiler, and I think I used some...
We haven't been given any no.
This is what I've got so far, after having a mess around with it. No loop as of yet, but I will try to implement that later. I'm now having the problem that the string doesn't seem to print after...
Never mind, I've figured that out.
Thanks
Hi, I'm going to sounds really stupid but I've just had a read of the C File I/O tutorial on here, and I'm still not really understanding. What is the difference between the filename and the data...
Thankyou very much both of you for the replies, I'll have a read through the linked tutorial and how parsing works. Sorry to ask such a simple question, but I'd literally spent a whole day on it and...
Hi, I was wondering if it would be possible to get some help. I'm making a program for my chemistry course that requires a number of values to be read from a text file, a calculation done with those...