![]() ![]() 107: 108: The number of digits in n has been returned. 105: This is some other precondition, and note that it does not 106: start on a new line. 103: n An integer, the number of whose digits is desired. 99: The style used for the pre/post coditions of this function is 100: purposely different from that for the void function given above, 101: just so you can see the differnce in the HTML output. 90: */ 93: int numberOfDigitsĩ7: /**< 98: Compute and return the number of digits in a positive integer. 88: -# stringOfInitials contains a string of length numberOfPositions 89: in which each character is the original value of firstInitial. 85: 86: -# firstInitial contains the character numberOfPositions to the right of 87: its original value. ![]() 83: -# firstInitial contains a printable character at least numberOfPositions 84: positions from the end of the printable character set. 81: 82: -# numberOfPositions contains a positive integer. 79: stringOfInitials A string in which all characters are the 80: same. 77: firstInitial A character representing the first letter in a 78: person's first name (for example). 74: void 75: numberOfPositions The number of positions firstInitial is to 76: be moved forward. The brief description may also 71: be repeated here immediately prior to the detailed description, 72: but the configuration file for this example is currently set to 73: disable that feature. Any further 68: description of the function, such as this statement that comes 69: after the first statement, will appear as part of the "detailed 70: description" for this function. 49: */ 52: //Include section 53: #include 54: #include 55: using namespace std ĥ8: //Prototype section 59: void DoSomethingĦ1: int numberOfPositions, //in 62: char
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |