Welcome! Log In Create A New Profile

Advanced

Please assist with error...thanks

Posted by Magic8 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Please assist with error...thanks
February 13, 2010 10:17PM
Hello everyone, I recently studying towards an IT diploma...doing my 2nd langauge in programming C++, thing is after installing the cd given by unisa and upon starting to study and compile my first short programme, I recieve the message that says "Source file not compiled"...
code : #include <iostream>
using namespace std;
int main ( )
{count << "hello orld"; return 0; }

Have I missed something when installing the software or is it something else ?
Please help as Im going mad trying to figure out what the problem is, at this point I think I will have better luck trying to find a needle in a hay stack.

Many thanks
Re: Please assist with error...thanks
February 13, 2010 11:28PM
try using {cout << "hello orld"; return 0; }
i made the same error its cout not count.
Re: Please assist with error...thanks
February 14, 2010 08:26AM
Jarred Wrote:
-------------------------------------------------------
> try using {cout << "hello orld"; return 0; }
> i made the same error its cout not count.

Hi Jared, thanks. My bad...I meant cout. regardless this error still comes up, does the compiler have to be configured when installing ?
Re: Please assist with error...thanks
February 14, 2010 08:59AM
hey go through page 10 of the tutorial letter 101. also open the index.html on the disc, once there click cos111u then on the side read through point 3 Using the software. Also make sure that when you are saving your work that there are no spaces in the name of the file or folders in which you are svaing to. Good Luck
Re: Please assist with error...thanks
February 18, 2010 03:45PM
Magic8 Wrote:
-------------------------------------------------------
> Hello everyone, I recently studying towards an IT
> diploma...doing my 2nd langauge in programming
> C++, thing is after installing the cd given by
> unisa and upon starting to study and compile my
> first short programme, I recieve the message that
> says "Source file not compiled"...
> code : #include
> using namespace std;
> int main ( )
> {count << "hello orld"; return 0; }
>
> Have I missed something when installing the
> software or is it something else ?
> Please help as Im going mad trying to figure out
> what the problem is, at this point I think I will
> have better luck trying to find a needle in a hay
> stack.
>
> Many thanks


Yes, the correct way of writing the code is;

#include <iostream>
using namespace std;
int main ( )
{
cout << "hello orld";
return 0;
}

Good luck with your studies.
Re: Please assist with error...thanks
February 19, 2010 11:27AM
Your error message says "Source file not compiled". That means for some reason the file where you type your code in didn't compile. So you need to investigate the reasons why it did not compile.

First make sure your program has the cpp extension, example First.cpp or helloWorld.cpp.

Second, make sure your compiler settings is correct in your IDE. On the Disk 2010 follow the links index.html >> COS111U >> Method >> Settings Options. It explains how to set your MinGW compiler settings for the Dev C++ IDE.
Re: Please assist with error...thanks
February 20, 2010 07:28PM
hi
responding to the error question

HAVE YOU GUYS CHECKED YOUR DIRECTORIES ON THE COMPILER,YOU NEED TO CHANGE THEM ONCE THE SOFTWARE IS INSTALLED



TUMI
Anonymous User
Re: Please assist with error...thanks
February 23, 2010 04:22PM
Follow the instructions on page 100 of the Tutorial letter 101.
Sorry, only registered users may post in this forum.

Click here to login