Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Closed Thread
 
Thread Tools Display Modes
Old Mar 11th, 2006, 5:22 AM   #21
Soulstorm
Hobbyist Programmer
 
Soulstorm's Avatar
 
Join Date: Jan 2006
Location: Menidi, Athens, Greece
Posts: 243
Rep Power: 3 Soulstorm is on a distinguished road
Quote:
Originally Posted by Seif
yeah first of all, you need to think about your own advice, and your responses as this is not a gaming forum, nor is it an "im superior to you" forum. just because some people may not speak the english as good as you means u can insult them... especially when your english isnt too shit hot yourself.

just because some people on the board have an attitude problem doesnt mean you have to join the band wagon means you have to too.

second of all you should consult your own research as there is nothing wrong with void main(), and to my knowledge hasnt been on studio .net since tuesday... last time i did some programming... check your books if u dont believe me.
Seif,I am reading my post again and again, and I fail to find the point where I clearly state, or at least imply that I am superior to the guy that I am referring to.

I may not speak english as well as you, but at least no one here has complained that he/she doesn't understand what I am saying. As for demon101, if you look back, you should see that I really didn't fully understand what he says. My answers were based on guesses of what the guy wanted to say.

And I really don't belive demon101 can't speak english well. I am a gamer myself, and I recognize the gaming lingo when I see it. And even if I am wrong, what's so bad to clearly state that when you are called to give an answer to something that somebody asked, you must have a well written question?

I have seen demon101 other posts, and I can't understand what he says the first time I read his posts. I may be stupid... on the other hand, I don't think I am.

demon101, I'm sorry if you felt insulted by any means. What I meant to say to you is not that you are inferior, but that you must write in plain and clear english as possible your question, so that everybody here understands what you are saying, because in technical forums, little grammar mistakes change the meaning of the sentence. If you don't know english well enough (which proves I am wrong), then I'm sorry if you felt insulted.
Quote:
Well written grammar eliminates ambiguity.
That's what I am trying to say, in other words.

Quote:
second of all you should consult your own research as there is nothing wrong with void main(), and to my knowledge hasnt been on studio .net since tuesday... last time i did some programming... check your books if u dont believe me
well, as far as I understand, you are saying that tuesday is the day when void main() was abandoned at studio .net???

Well, I must correct you, since we are talking about plain ISO C++ here, and the compiler i use, and my book says that void main() is not valid anymore. Please correct me if I'm wrong, and please try not to be so angry this time.
__________________
Project::Soulstorm (personal homepage)
Soulstorm is offline  
Old Mar 11th, 2006, 6:04 AM   #22
Soulstorm
Hobbyist Programmer
 
Soulstorm's Avatar
 
Join Date: Jan 2006
Location: Menidi, Athens, Greece
Posts: 243
Rep Power: 3 Soulstorm is on a distinguished road
seif. Studio .net is microsoft's thing, as my book states. It was added by microsoft, and is not included in the C++ specifications. And also, my book clearly states, that in older compilers "void main()" is required and not "int main()", so I will need to change it, as demon101 said the first time you mentioned void main() to be part of your projects.

After all, to see if I'm wrong, one just needs to enter void main() in Xcode (gcc compiler). It returns an error saying that main:: must return an integer. DevC++ also returns the same error. I haven't been involved with studio .net (I use a Mac), but I don't think it matters here.
__________________
Project::Soulstorm (personal homepage)
Soulstorm is offline  
Old Mar 11th, 2006, 7:10 AM   #23
Cache
Hobbyist
 
Join Date: Sep 2005
Posts: 261
Rep Power: 4 Cache is on a distinguished road
See the following link for what Bjarne Stroustrup has to say about 'void main()' :

http://public.research.att.com/~bs/b...html#void-main
Cache is offline  
Old Mar 11th, 2006, 7:23 AM   #24
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
The question of 'void main' will always evenually arise in a C/C++ forum because someone will eventually and inevitably use it. It's wrong. It's a shame that an influential organization like MS perpetuates it by using it in tutorials. Beginners are bound to misperceive MS as an authority. Once one has been apprised that it IS wrong, one should cease to use it. As Stoustrup rightly says, one who doesn't change is likely to be perceived by peers as a dummy.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline  
Old Mar 11th, 2006, 7:50 AM   #25
Soulstorm
Hobbyist Programmer
 
Soulstorm's Avatar
 
Join Date: Jan 2006
Location: Menidi, Athens, Greece
Posts: 243
Rep Power: 3 Soulstorm is on a distinguished road
Quote:
Originally Posted by DaWei
The question of 'void main' will always evenually arise in a C/C++ forum because someone will eventually and inevitably use it
I had this problem at my very first programs. I had an old book, and I didn't know what "namespace" was, and why the <iostream> didn't contain an ".h".

never heard of void main() being used by Microsoft. I guess that's why many programmers vote against following Microsoft guidelines in some situations...
__________________
Project::Soulstorm (personal homepage)
Soulstorm is offline  
Old Mar 11th, 2006, 7:52 AM   #26
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
MS uses 'void main' in about lebenty-zillion tutorials, particularly in the VC++ 6.0 era.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline  
Old Mar 11th, 2006, 8:53 AM   #27
Seif
Hobbyist Programmer
 
Seif's Avatar
 
Join Date: Jan 2006
Location: UK
Posts: 215
Rep Power: 3 Seif is on a distinguished road
SoulStorm, you have my deepest apologies... I can't remember writing any of that last night along with so many other things. And sorry for the Ambiguity Jaeusm, didn't have my head with me there, although i never stated that i had good english
Seif is offline  
Old Mar 11th, 2006, 9:52 AM   #28
Soulstorm
Hobbyist Programmer
 
Soulstorm's Avatar
 
Join Date: Jan 2006
Location: Menidi, Athens, Greece
Posts: 243
Rep Power: 3 Soulstorm is on a distinguished road
don't worry, seif, no offence taken. **hug**
__________________
Project::Soulstorm (personal homepage)
Soulstorm is offline  
Old Mar 11th, 2006, 10:19 AM   #29
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 763
Rep Power: 3 Jimbo is on a distinguished road
Quote:
Originally Posted by DaWei
MS uses 'void main' in about lebenty-zillion tutorials, particularly in the VC++ 6.0 era.
And we all know how well VC++ 6.0 conformed to the standard...
Jimbo is offline  
Old Mar 11th, 2006, 10:49 AM   #30
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Not surprising, since it predated the standard....
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline  
Closed Thread

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:09 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC