Warning: Illegal string offset 'html' in /home/hsn/public_html/forum/cache/skin_cache/cacheid_1/skin_topic.php on line 909

Warning: Cannot modify header information - headers already sent by (output started at /home/hsn/public_html/forum/cache/skin_cache/cacheid_1/skin_topic.php:909) in /home/hsn/public_html/forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 114

Warning: Cannot modify header information - headers already sent by (output started at /home/hsn/public_html/forum/cache/skin_cache/cacheid_1/skin_topic.php:909) in /home/hsn/public_html/forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 127

Warning: Cannot modify header information - headers already sent by (output started at /home/hsn/public_html/forum/cache/skin_cache/cacheid_1/skin_topic.php:909) in /home/hsn/public_html/forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 136

Warning: Cannot modify header information - headers already sent by (output started at /home/hsn/public_html/forum/cache/skin_cache/cacheid_1/skin_topic.php:909) in /home/hsn/public_html/forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 137

Warning: Cannot modify header information - headers already sent by (output started at /home/hsn/public_html/forum/cache/skin_cache/cacheid_1/skin_topic.php:909) in /home/hsn/public_html/forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 141
Control Structures - HSN forum

Jump to content


Control Structures


3 replies to this topic

#1 AM4R

    Site Swot

  • Members
  • PipPipPipPip
  • 145 posts
  • Gender:Male
  • Gender:Male

Posted 23 May 2006 - 07:40 PM

What are they basically?!

Im stuck on Q16 c on 2004? I dont think we did anything like that in school?!
::::::/\M/\R::::::

#2 st-and Paul

    Top of the Class

  • Members
  • PipPipPipPipPip
  • 356 posts
  • Location:St Andrews
  • Interests:Check facebook, i cant be bothered putting them all down again :P
  • Gender:Male

Posted 23 May 2006 - 08:16 PM

You did do it at school, its probably that they didnt tell you what they were. Control Structures are structures that allow the programmer to control the order of execution in a program. They are sequence of instructions, iteration over a set of instructions, conditional execution (if statements and anything which given a condition will determine whether a certain sequence of code is executed). Dont confuse it with stacks, queues etc or any other kind of data structure.

#3 John

    HSN Legend

  • Members
  • PipPipPipPipPipPipPipPip
  • 2,713 posts
  • Location:In a Peripheral Estate in Glasgow
  • Interests:First the boring stuff:<br /><br />2004 Results:<br /><br />Highers:<br /><br />Computing A<br />Craft and Design A<br />Physics A<br />Administration A<br />English A<br />Maths A<br />Modern Studies A<br />French A<br /><br />2005 Results:<br /><br />Advanced Highers:<br />Computing A<br />Physics A<br />Maths A<br />Modern Studies A<br />English A<br /><br />2006 Results:<br /><br />Advanced Highers(All Crashed):<br />Chemistry A<br />Biology A<br />Business Managemnt A<br /><br />Aren't I marvellous?
  • Gender:Male

Posted 23 May 2006 - 09:30 PM

Stacks are dealt with at AH level so they shouldnt know about them anyway.

Control structures are algorithms which control the order of execution within a programme. (As pgm9 said)

These algorithms are what gives programmes and video games dynamic paths dependant on an event or choice made or caused by the user.

Examples of such algorithms would be, IF Statements, Conditional Loop, Unconditional Loops, Case Statements, or Logic Statements(used within the formers).

An example for using such statements would be:

IF Statements; What should happen if user chooses Player 1 or Player 2?

Conditional Loop; Something is to be repeated untill a certain event or condition is met

Unconditional Loop; Something should be repeated x amount of times.

Case Statements; When A meets B, this should happen, Or meets C, this should happen, Or meets D, this Should happen, etc

Logic Statements; When A OR B = x, y happens, A AND B = x, y happens, A NOT B = x, y happens.

Hope that helps.

#4 AM4R

    Site Swot

  • Members
  • PipPipPipPip
  • 145 posts
  • Gender:Male
  • Gender:Male

Posted 24 May 2006 - 10:28 AM

yup thanks smile.gif
::::::/\M/\R::::::





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users