TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Peter Shimmin
from: Paul Edwards
date: 1996-04-04 23:43:20
subject: Student desperate for help

PS> Hello, I'm desperate for help.
PS> I'm a first year uni student at Swinburne studying Information Technology.
PS> One of the subjects I do is C programming. I have never done any 
PS> programming

That's a tough break, C as your learning language.  C is the hardest
language I know, including assembler.

PS> before and found that the pace that they are going through at uni is too
PS> much for me to fully comprehend. I'm having trouble analysing this problem
PS> I have been given and turing it into C code. A description of the problem
PS> is below;

First of all, before you code in C, you need to have pseudocode.
Pseudocode is language-independent, and you just do things like:

while there are still stones on the pile
  turn over the first stone
  if there is a second stone
    throw that at the cat
  end if
end while

If you are able to do the above, and just don't know how the 
particular C constructs are formulated, e.g.

while (stones_left)
{
    turn_stone(1);
    if (num_stones > 1)
    {
        throw_stone();
    }
}

then this is what this echo is mainly for.  You ask the pseudocode,
and we'll tell you the C code.

Assuming you know the pseudocode, and can't come up with the C code,
post your attempt at the C code here, with little comments saying
"I get a compile error here", and we will tell you what you did wrong.
You will get much faster results doing that.

If you have absolutely no programming knowledge whatsoever, I have a
tutorial on basic here, which I can virtually guarantee you will
understand.  I'll post it in the next message.  It is unlikely to
be what you want though.  You have to be a lot more specific if you
want an answer from me.  Maybe someone else will do your assignment
for you, but not me.  That's what's good about echos, lots of choices!
BFN.  Paul.
@EOT:

---
* Origin: X (3:711/934.9)

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.