52 | | This is what your program truly is. The important thing to note is that '''int main(char[][])''' is what the compiler sees as the start of a program. All of the other code you see is inside of the function '''main''' but we can learn more about this after we know what kind of operations and data D has to offer. For now, see how the program compiles being sure that you can execute the results. |
---|
| 52 | This is what your program truly is. The important thing to note is that '''int main(char[][])''' is what the compiler sees as the start of a program. All of the other code you see is inside of the function '''main''' but we can learn more about this after we know what kind of operations and data D has to offer. For now, see how the program compiles being sure that you can execute the results. Your output should look something like this if you are using the console: |
---|
| 53 | |
---|
| 54 | {{{ |
---|
| 55 | C:\D\dmd\bin\..\..\dm\bin\link.exe firstprogram,,,c:\d\dmd\lib\ws2_32.lib+user32+kernel32/noi; |
---|
| 56 | What is your name? Bradley |
---|
| 57 | Hello Bradley! Say hello to your first program. Well, thats all I say. Goodbye Bradley |
---|
| 58 | }}} |
---|
| 59 | |
---|
| 60 | If this does not look anything like this and you get a compile error, make sure the the code is the exact same as the code above and you are using the latest D compiler. |
---|