View Single Post
Old 07-10-2008, 11:45 AM   #9 (permalink)
sketchMedia
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
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.
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)

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