Jul 3, 2006 #1 F fatma1000 Banned Joined Apr 30, 2006 Messages 147 Helped 3 Reputation 6 Reaction score 2 Trophy points 1,298 Location eygpt Activity points 0 is it posseble to do like this main() int x; float y; { ---------------- -------------- ----------------- } regards
is it posseble to do like this main() int x; float y; { ---------------- -------------- ----------------- } regards
Jul 3, 2006 #2 C chukito Newbie level 3 Joined Mar 27, 2006 Messages 4 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,295 help6 c++ No. Isn't possible
Jul 3, 2006 #3 A Anno Advanced Member level 4 Joined Feb 8, 2006 Messages 106 Helped 14 Reputation 28 Reaction score 0 Trophy points 1,296 Location South Africa Activity points 1,899 help6 c++ Nope sorry. Not gonna work. Why you wanna do that?
Jul 4, 2006 #4 S sreeni Member level 1 Joined May 24, 2006 Messages 35 Helped 3 Reputation 6 Reaction score 0 Trophy points 1,286 Activity points 1,557 Re: help6 c++ main() { int a; float b; -------------- ---------------- ------------ }
Jul 7, 2006 #5 L Lucifre Full Member level 2 Joined Jul 5, 2005 Messages 125 Helped 2 Reputation 4 Reaction score 0 Trophy points 1,296 Location Detroit MI Activity points 2,389 Re: help6 c++ why would you even want to do anything like that??? what you can do is Code: int main() { int a; float b; // --------------- //------------ //---------------- } it really doesn't do anything useful though.
Re: help6 c++ why would you even want to do anything like that??? what you can do is Code: int main() { int a; float b; // --------------- //------------ //---------------- } it really doesn't do anything useful though.
Jul 7, 2006 #6 Root Junior Member level 1 Joined Aug 29, 2004 Messages 15 Helped 2 Reputation 4 Reaction score 0 Trophy points 1,281 Activity points 94 help6 c++ this is better: int main ( void ) // void - because we don't parse argument string of program { int a; float b; // --------------- //------------ //---------------- return 0; // because we write int main, so it must return some value to OS } Click to expand...
help6 c++ this is better: int main ( void ) // void - because we don't parse argument string of program { int a; float b; // --------------- //------------ //---------------- return 0; // because we write int main, so it must return some value to OS } Click to expand...