Poster | Thread |
Toaks
| |
Re: Amiga Developers Pavilion @ AmiGBG (!) Posted on 24-Feb-2004 8:21:53
| | [ #1 ] |
|
|
|
Elite Member |
Joined: 10-Mar-2003 Posts: 8042
From: amigaguru.com | | |
|
| my contribution....
if anyone can spot whats wrong/diffrent here, then be happy
@----------@
#include
main() { cout << "Hello World!"; return 0; }
@-----------@
#include void main() { printf("Hello World From About\n"); }
@-----------@ _________________ See my blog and collection website! . https://www.blog.amigaguru.com
|
|
Status: Offline |
|
|
CodeSmith
| |
Re: Amiga Developers Pavilion @ AmiGBG (!) Posted on 24-Feb-2004 8:49:05
| | [ #2 ] |
|
|
|
Elite Member |
Joined: 8-Mar-2003 Posts: 3045
From: USA | | |
|
| w00t, a coding debate!
OK, I'll try. The top one is standard C++, using a deprecated header, iostream.h - should be including and either using "std::cout" or adding a "using namespace std" before the definition of main. iostream.h is *so* 90s
The bottom one is a non-conforming C program, main in an ansi-compliant program can only have one of two prototypes: int main(void) or int main(int, char **). Of course a *certain* C++ compiler and OS vendor encourages "void main", but that doesn't make it any more right...
Oh, the second one will output a newline after the message, and the first one won't (you need to add "<< endl", I can't remember right now if you need for this, I include it all the time anyway)
Boy, I suddenly feel this urge to eat lots of bran |
|
Status: Offline |
|
|
reflect
| |
Re: Amiga Developers Pavilion @ AmiGBG (!) Posted on 24-Feb-2004 10:09:03
| | [ #3 ] |
|
|
|
Regular Member |
Joined: 7-Mar-2003 Posts: 359
From: Gothenburg, Sweden | | |
|
| excellent, I *always* wanted to learn how to code! I regret that I didn't make use of the knowledge I got in school regarding pascal and C, we got fairly proficient but I was too lazy, I guess... ;) _________________ If I started a site about cow dung, and someone wanted to discuss dog poo, I wouldn't give a ####.
|
|
Status: Offline |
|
|
shoe
| |
Re: Amiga Developers Pavilion @ AmiGBG (!) Posted on 24-Feb-2004 10:13:08
| | [ #4 ] |
|
|
|
Super Member |
Joined: 14-Sep-2003 Posts: 1585
From: Gothenburg, Sweden | | |
|
| This will be the perfect place to get started.. We will have a few AmigaONE's running OS4 with the SDK/GCC installed so that everyone can try it out.
This will be great!
/shoe |
|
Status: Offline |
|
|
Toaks
| |
Re: Amiga Developers Pavilion @ AmiGBG (!) Posted on 24-Feb-2004 13:15:13
| | [ #5 ] |
|
|
|
Elite Member |
Joined: 10-Mar-2003 Posts: 8042
From: amigaguru.com | | |
|
| codesmith: you have hereby passed
shame you where so fast , u might have ruined it for the lot _________________ See my blog and collection website! . https://www.blog.amigaguru.com
|
|
Status: Offline |
|
|
SlimJim
| |
Re: Amiga Developers Pavilion @ AmiGBG (!) Posted on 24-Feb-2004 14:57:44
| | [ #6 ] |
|
|
|
Cult Member |
Joined: 9-Mar-2003 Posts: 693
From: Uppsala, Sweden | | |
|
| How about that: I'm actually beginning to feel some real excitement about my Amiga future for the first time in a long time. This show looks like it will be the biggest event since years back. And programming workshops as well! Oh man! Oh maaan! Can hardly wait! . SlimJim (and btw, I could "solve" the code snippets too. Not that it matters much now that CodeSmith was first to put his hand in the air for the teacher to see... ) |
|
Status: Offline |
|
|
CodeSmith
| |
Re: Amiga Developers Pavilion @ AmiGBG (!) Posted on 24-Feb-2004 19:05:27
| | [ #7 ] |
|
|
|
Elite Member |
Joined: 8-Mar-2003 Posts: 3045
From: USA | | |
|
| Oh, don't be so glum
I just realized that I missed something last night. Who's going to be the first to find it? |
|
Status: Offline |
|
|
shoe
| |
Re: Amiga Developers Pavilion @ AmiGBG (!) Posted on 24-Feb-2004 20:53:11
| | [ #8 ] |
|
|
|
Super Member |
Joined: 14-Sep-2003 Posts: 1585
From: Gothenburg, Sweden | | |
|
| @SlimJim,
Thanks! We are really working hard to make it just that. The biggest event in years! Please read my post in the Developers! Developers! Developers! -thread. I think it might get your hopes up even more (it's the one at the end..)
Btw, we were mentioned in the last issue of Datormagazin.! Page 18
/shoe - AmiGBG |
|
Status: Offline |
|
|
salass00
| |
Re: Amiga Developers Pavilion @ AmiGBG (!) Posted on 25-Feb-2004 12:38:24
| | [ #9 ] |
|
|
|
Elite Member |
Joined: 31-Oct-2003 Posts: 2707
From: Finland | | |
|
| @CodeSmith Quote:
just realized that I missed something last night. Who's going to be the first to find it? |
I'm no expert on C++ but I notice there is no return value defined for the first function, yet it still has a return statement, is that it ? |
|
Status: Offline |
|
|
miksuh
| |
Re: Amiga Developers Pavilion @ AmiGBG (!) Posted on 25-Feb-2004 17:16:43
| | [ #10 ] |
|
|
|
Cult Member |
Joined: 10-Mar-2003 Posts: 731
From: Espoo, Finland | | |
|
| |
Status: Offline |
|
|
Russ
| |
Re: Amiga Developers Pavilion @ AmiGBG (!) Posted on 25-Feb-2004 19:31:58
| | [ #11 ] |
|
|
|
Member |
Joined: 28-Jun-2003 Posts: 78
From: New York | | |
|
| What are you complaining about. I am in New York _________________ Mr. Hardware Computers
[email]sales@mrhardwarec
|
|
Status: Offline |
|
|
SkEb
| |
Re: Amiga Developers Pavilion @ AmiGBG (!) Posted on 25-Feb-2004 20:33:58
| | [ #12 ] |
|
|
|
Member |
Joined: 21-Dec-2003 Posts: 80
From: The Netherlands | | |
|
| Well, we're coming from The Netherlands, but AmiGBG should be worth the trip
Right now we're very busy working on the www.universalspace.net website and preparing our visit to AmiGBG (presentations etc.).
reflect: "excellent, I *always* wanted to learn how to code! I regret that I didn't make use of the knowledge I got in school regarding pascal and C, we got fairly proficient but I was too lazy, I guess... ;)"
>>> Well, with a bit of luck our website is going to be an ideal place to meet other developers and to get lot's of information for developing!
SlimJim: "How about that: I'm actually beginning to feel some real excitement about my Amiga future for the first time in a long time. This show looks like it will be the biggest event since years back. And programming workshops as well! Oh man! Oh maaan! Can hardly wait!"
>>> It's good to see that the A.D.P initiative is making people enthousiastic again about developing for the Amiga
Greetz, SkEb |
|
Status: Offline |
|
|
shoe
| |
Re: Amiga Developers Pavilion @ AmiGBG (!) Posted on 25-Feb-2004 20:58:14
| | [ #13 ] |
|
|
|
Super Member |
Joined: 14-Sep-2003 Posts: 1585
From: Gothenburg, Sweden | | |
|
| Quote:
Poster: miksuh Date: 25-Feb-2004 18:16:43 Argh, Why AmiGBG is not held in the Stockholm ? I could then just jump in the ship at Helsinki Now it's a bit too far away for me |
What about gathering a crew and travel together? That makes it much more fun! Finlands own Gentle Eye is invited aswell.
/shoe |
|
Status: Offline |
|
|
miksuh
| |
Re: Amiga Developers Pavilion @ AmiGBG (!) Posted on 26-Feb-2004 8:04:02
| | [ #14 ] |
|
|
|
Cult Member |
Joined: 10-Mar-2003 Posts: 731
From: Espoo, Finland | | |
|
| Yep it would not be any big problem otherwise. but I'm just a poor student. I don't have enough money for all the travelling tickets, hotel bills etc. |
|
Status: Offline |
|
|
SlimJim
| |
Re: Amiga Developers Pavilion @ AmiGBG (!) Posted on 27-Feb-2004 14:47:36
| | [ #15 ] |
|
|
|
Cult Member |
Joined: 9-Mar-2003 Posts: 693
From: Uppsala, Sweden | | |
|
| @mikshu Fly to Gothenburg then (what can it be - like 1.5h) in the morning, go to the fair and fly home again in the evening. I do one-day trips like that now and then (Malmö-Stockholm) and it's no big problem at all. If you are a student you will most likely get cheaper fares all along the way too! Better check it out. You might be better of than you think. . SlimJim |
|
Status: Offline |
|
|