07-10-2008, 11:45 AM
|
#9 (permalink)
|
|
The Frequenter
Join Date: Oct 2007
Location: Manchester, UK
Posts: 387
Thanks: 22
|
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 01:36 PM.
|
|
|
|