View Single Post
Old 07-10-2008, 12:45 PM   #9 (permalink)
sketchMedia
The Frequenter
Advanced Programmer Top Contributor Good Samaritan 
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 471
Thanks: 26
sketchMedia is on a distinguished road
Default

That wont compile (wouldn't for me anyway with make/gcc, unless its some kind of visual C/C++ madness which i haven't used or wish to use), you have specified a return type of 'char' but you are returning 'int'.
Also i thought it was ISO C++ Standard to return an int and the usually wont compile until it is an int, its been a while since my last C program though :)

c++ Code:
#include <iostream>
using namespace std;
int main()
{
    cout << "Hello Dal!" <<endl;
    return (1);
}
java welcome
java Code:
public class hello
{
    static public void main(String[] argv)
    {
        System.out.println("Welcome Dal!");
    }
}
cba to write more, you get the idea.

Welcome to the community m8, you will feel right at home here.
__________________

Last edited by sketchMedia : 07-10-2008 at 02:36 PM.
sketchMedia is offline  
Reply With Quote