Changes

Jump to: navigation, search

Team Mighty Morphin Coding Rangers - OOP344

1,129 bytes added, 18:09, 19 February 2010
Project Progress. Add helper functions.
===Complex Functions===
'''void bio_putint(int val)'''<br/>
''(COMPLETED)''<br/>
* what needs to be done
* <s>what is complete</s>
<br/>
''(COMPLETED)''<br/>
<br/>
 
===Helper Functions===
<br/>
'''void bio_putint(int val)'''<br/>
* It prints an integer on the screen. <br/>
<br/>
'''char* toUpperCase(char* str)'''<br/>
* This function only changes those letters in lower case to upper case. It changes the original string.<br/>
<br/>
'''char* myItoa(int val, char* str, int base)'''<br/>
* This function converts a decimal base integer to any other non-decimal base number, such as binary number or octal number, or hex number, and than converts that number into a string variable. Or, it converts a decimal base integer directly into a string. The function returns the address of the string at the end.<br/>
<br/>
'''char* myFtoa(double val, char* str)'''<br/>
* This function converts a double to a string variable, and returns the string. There will only be 2 decimal positions shown in the string. If we want to print a double value on the console screen, we can say: bio_putstr(myFtoa(val, str)). I think there is no need to code another function for bio_putdouble.<br/>
<br/>
'''int myPrint(const char* msg, ...)'''<br/>
* This function works very similar with printf in stdio.h library. Float data type dose not work here; only double dose. The function only shows 2 decimal positions. <br/>
== Microsoft SkyDrive ==
1
edit

Navigation menu