|
| |||||||||
| Tags: c language, ide, loop |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Problem of "return 0" in C
I am currently using the C language tutorial, i have created loop menu to choose no between 1 to 5. When I compile my IDE, my program is launched and I entered "1" for a player mode, my program stops and instead of displaying "return 0x0", he shows a number extension. |
|
#2
| ||||
| ||||
| Re: Problem of "return 0" in C
Did you correct all instances in code? When the loop get corrupted? Check all the semicolon given in front of menu. For example : Scanf ( "% d", Menu); Check the mistake in this declaration. |
|
#3
| |||
| |||
| Re: Problem of "return 0" in C
For example : Code: scanf ( "% d", & chooseMenu); chooseMenu = 0; switch (chooseMenu) ( You will not forget to fix this in passing: scanf ( "% d", chooseMenu); |
|
#4
| |||
| |||
| Re: Problem of "return 0" in C
In C, when you declare a function (number 0 to 5), what types of parameters and order of arguments, is depend on return 0 and everything was an int unless specified otherwise (there was no void), so it was natural for main to return int. |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Problem of "return 0" in C" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Return keyword does not give value of variable "ast" | MKAIF | Software Development | 5 | 04-03-2010 07:40 PM |
| VB Argument not optional" function return" | Guns-n-Roses | Software Development | 3 | 18-08-2009 12:35 PM |
| Can't get DOS "for" loop to return full filenames with spaces | dtronvig | Windows XP Support | 8 | 02-06-2009 12:09 PM |
| Type.GetTypeFromProgID("WMSServer.Server") return null | michaelitrn | MediaCenter | 2 | 25-02-2009 02:31 AM |
| Uninstall "Microsoft Update" and return to "Windows Update" | jabarnut | Windows Update | 14 | 13-07-2005 09:28 AM |