![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#21 | |||
|
Hobbyist Programmer
Join Date: Jan 2006
Location: Menidi, Athens, Greece
Posts: 243
Rep Power: 3
![]() |
Quote:
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:
Quote:
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) |
|||
|
|
|
|
#22 |
|
Hobbyist Programmer
Join Date: Jan 2006
Location: Menidi, Athens, Greece
Posts: 243
Rep Power: 3
![]() |
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) |
|
|
|
|
#23 |
|
Hobbyist
Join Date: Sep 2005
Posts: 261
Rep Power: 4
![]() |
See the following link for what Bjarne Stroustrup has to say about 'void main()' :
http://public.research.att.com/~bs/b...html#void-main |
|
|
|
|
#24 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
#25 | |
|
Hobbyist Programmer
Join Date: Jan 2006
Location: Menidi, Athens, Greece
Posts: 243
Rep Power: 3
![]() |
Quote:
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) |
|
|
|
|
|
#26 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
#27 |
|
Hobbyist Programmer
Join Date: Jan 2006
Location: UK
Posts: 215
Rep Power: 3
![]() |
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
![]() |
|
|
|
|
#28 |
|
Hobbyist Programmer
Join Date: Jan 2006
Location: Menidi, Athens, Greece
Posts: 243
Rep Power: 3
![]() |
don't worry, seif, no offence taken. **hug**
![]()
__________________
Project::Soulstorm (personal homepage) |
|
|
|
|
#29 | |
|
Battle Programmer
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 763
Rep Power: 3
![]() |
Quote:
![]() |
|
|
|
|
|
#30 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|