Hi everyone, I'm basic in C++. I'm using Dev-C++. This is my code I'm using but there is an error. Can someone tell me why?
#include <iostream>
// function Demonstrate Function
// prints out a useful messgae
void DemonstrationFunction()
{
std::cout "In Demonstration Function\n";
}
//function main - prints out a message, then
//calls DemonstrationFunction, then prints out
//a second message.
int main()
{
std::cout << "In main\n" ;
DemonstrationFunction();
std::cout << "Back in main\n";
return 0;
#include <iostream>
// function Demonstrate Function
// prints out a useful messgae
void DemonstrationFunction()
{
std::cout<<"In Demonstration Function\n";
}
//function main - prints out a message, then
//calls DemonstrationFunction, then prints out
//a second message.
int main()
{
std::cout << "In main\n" ;
DemonstrationFunction();
std::cout << "Back in main\n";
return 0;
//It says there is an error with this line.
std::cout<<"In Demonstration Function\n";
}