J
Joachim Schmitz
Bill said:Using OE and I have to do all manually.
Try out OE-QuoteFix (Google will tell you were to get it)
Bye, Jojo
Bill said:Using OE and I have to do all manually.
Hello Bill, ListIf I can give you one advice, it will be: try another language before
C. C pull you too much to the edge. You need to do everything by hand,
and for you, as we can see, that is too hard to glark. Your problem
isn't really the C syntax, but transform problem in algorithm. Sorry
to say that, but your code doesn't make sense to me, and will probably
make no sense to others. Try some other language to learn how to do
that, and then move to C.
[snip]
I learned Basic many years ago. It was a piece of cake. Algorithms I know
nothing about. Basic itself wasn't a problems but putting things where they
needed to go was a bit.
Bye, Jojo
Joachim said:Bill Cunningham wrote:
Try out OE-QuoteFix (Google will tell you were to get it)
Bye, Jojo
Bill said:Ok now it's on I think.
Bill said:Is this valid C syntax ?
double=double/int;
I seem to be having trouble here.
Bill
Bill said:[snip]Walter Roberson said:No it is not.
double a,b;
int c;
a=b/c;
That's what I mean.
Bill
Bill Cunningham wrote:
y=x;z=y/count; <-----
x=strtod(argv[1],NULL);Ah!
The computer can't guess you wanted this line before the one
you marked. Computers are very literal machines. They do
exactly what we tell them to, even if it makes no sense: the trick
is to tell them to do stuff in the right order.
I seem to remember reading somewhere, probably in a discussion
of teaching beginning programming, that some beginners mentally
associate the assignment operator with the mathematical notion
of equality [1], and think that once one has written "y=x",
changes in x will propagate to y, which doesn't happen [2].
Could this be the problem here?
Bill Cunningham wrote:
y=x;z=y/count; <-----
x=strtod(argv[1],NULL);
I seem to remember reading somewhere, probably in a discussion
of teaching beginning programming, that some beginners mentally
associate the assignment operator with the mathematical notion
of equality [1], and think that once one has written "y=x",
changes in x will propagate to y, which doesn't happen [2].
Could this be the problem here?
There are actually languages where writing 'y=x'
means that 'y' always has the value that 'x' does.
C is not one of those languages. (Those languages
are usually called 'functional' ones).
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.