~ubuntu-branches/ubuntu/hardy/codeblocks/hardy-backports

« back to all changes in this revision

Viewing changes to src/plugins/scriptedwizard/resources/d/console/hello.d

  • Committer: Bazaar Package Importer
  • Author(s): Michael Casadevall
  • Date: 2008-07-17 04:39:23 UTC
  • Revision ID: james.westby@ubuntu.com-20080717043923-gmsy5cwkdjswghkm
Tags: upstream-8.02
ImportĀ upstreamĀ versionĀ 8.02

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
version(Tango) extern (C) int printf(char *, ...);
 
2
 
 
3
int main(char[][] args)
 
4
{
 
5
    printf("hello world\n");
 
6
    printf("args.length = %d\n", args.length);
 
7
    for (int i = 0; i < args.length; i++)
 
8
        printf("args[%d] = '%s'\n", i, cast(char *)args[i]);
 
9
    return 0;
 
10
}