<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.kram.nz/index.php?action=history&amp;feed=atom&amp;title=SE250%3Alab-1%3Amgha023</id>
	<title>SE250:lab-1:mgha023 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kram.nz/index.php?action=history&amp;feed=atom&amp;title=SE250%3Alab-1%3Amgha023"/>
	<link rel="alternate" type="text/html" href="https://wiki.kram.nz/index.php?title=SE250:lab-1:mgha023&amp;action=history"/>
	<updated>2026-04-30T20:16:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.kram.nz/index.php?title=SE250:lab-1:mgha023&amp;diff=4419&amp;oldid=prev</id>
		<title>Mark: 4 revision(s)</title>
		<link rel="alternate" type="text/html" href="https://wiki.kram.nz/index.php?title=SE250:lab-1:mgha023&amp;diff=4419&amp;oldid=prev"/>
		<updated>2008-11-03T05:18:43Z</updated>

		<summary type="html">&lt;p&gt;4 revision(s)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;so i&amp;#039;ve forgotten the C++ i learnt...that made my first lab quite hard...i sat there clueless for a very long time staring at the sheet handed to me, not knowing where to begin. being an AP student has its disadvantages...coz it assumes you know &amp;#039;C&amp;#039;, but i dont! I borrowed books from the library last night in order to learn somethign for todays class, but i didnt get too far as i had a Matlab and a Java book to go through too:) so, was pretty lost this 1st class. so i opened &amp;#039;the c programmign language&amp;#039; and tried the &amp;#039;hello world programme&amp;#039;. btu i was not sure how to run it , let alone what compiler to use...tried using many different text editors in vain...then i asked for help, but i was still unable to figure out how to run the program...so, restarted and used the linux system...things got a little better from then on with help from my neighbour and tutors...finally executed &amp;#039;hello world&amp;#039;, then tried a program that displays the fahrenheit table...finally tried to do the worksheet....&lt;br /&gt;
found the clock() bit quite confusing and could do it only wiht the tutors help...&lt;br /&gt;
i basically tried out the &amp;#039;int&amp;#039; bit of it...making &amp;#039;a&amp;#039; loop till it reaches 500000000, and calculate the time it took to do so...it came out to be 97000 milli seconds. i had many doubts along the way. like what &amp;#039;ld&amp;#039; was (long decimal) and what clock_t was...gosh, left me feeling so dumb at the end of it.&lt;br /&gt;
&lt;br /&gt;
  #include &amp;lt;time.h&amp;gt;&lt;br /&gt;
  #include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
  main()&lt;br /&gt;
  {&lt;br /&gt;
  int a ;&lt;br /&gt;
  int lower, upper, step;&lt;br /&gt;
  clock_t t0;&lt;br /&gt;
 &lt;br /&gt;
  lower=0;&lt;br /&gt;
  upper=500000000;&lt;br /&gt;
  step=1;&lt;br /&gt;
       &lt;br /&gt;
  a=lower;&lt;br /&gt;
    &lt;br /&gt;
  t0 = clock();&lt;br /&gt;
   &lt;br /&gt;
  while (a&amp;lt;=500000000) {&lt;br /&gt;
    a=a+step;&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  printf(&amp;quot;%ld\n&amp;quot;, clock() - t0 );&lt;br /&gt;
  &lt;br /&gt;
  return 0;&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
my plan of action- to learn &amp;#039;C&amp;#039; at the earliest as i have zero confidence in it ...sigh&lt;br /&gt;
&lt;br /&gt;
[[User:Mgha023|Mgha023]] 11:42, 4 March 2008 (NZDT)&lt;/div&gt;</summary>
		<author><name>Mark</name></author>
	</entry>
</feed>