User:Xzen813: Difference between revisions
From Stage One Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
*[https://piazza.com piazza.com] | *[https://piazza.com piazza.com] | ||
*[https://forums.cs.auckland.ac.nz forums.cs.auckland.ac.nz] | *[https://forums.cs.auckland.ac.nz forums.cs.auckland.ac.nz] | ||
==Coding== | |||
Fun way to convert from Decimal to Binary in C++. | |||
void ConvertToBinary(int n) /*Alex says: Good to use unsigned int if u can*/ | |||
{ | |||
if (n / 2 != 0) { | |||
ConvertToBinary(n / 2); | |||
} | |||
printf("%d", n % 2); | |||
} | |||
==Thanks For Visiting!== | ==Thanks For Visiting!== | ||
Have a good day! | Have a good day! | ||
If you want to see more, '''check out my website''': [https://www.seanzeng.com www.seanzeng.com] | If you want to see more, '''check out my website''': [https://www.seanzeng.com www.seanzeng.com] | ||
==TEST Revision== | |||
===Numbered Lists=== | |||
#Hello | |||
#Hello2 | |||
#Hello3 | |||
===Links + Numbered Bullets=== | |||
*#[https://seanzeng.com/login Login Website] | |||
*#[https://seanzeng.com/login/loginmodules/googleauthtest.php GoogleAuth Tester] | |||
**#Test | |||
***Test | |||
***Test | |||
code | |||
code |
Latest revision as of 06:54, 31 October 2016
Userpage Sean Zeng
Welcome
Hi there! I'm surprised you clicked on this link.
Useful links for Compsci111/111G
- forums.cs.auckland.ac.nz
- cs.auckland.ac.nz/courses/compsci111s2c/
- canvas.auckland.ac.nz
- cs.auckland.ac.nz
- piazza.com
- forums.cs.auckland.ac.nz
Coding
Fun way to convert from Decimal to Binary in C++.
void ConvertToBinary(int n) /*Alex says: Good to use unsigned int if u can*/ { if (n / 2 != 0) { ConvertToBinary(n / 2); } printf("%d", n % 2); }
Thanks For Visiting!
Have a good day!
If you want to see more, check out my website: www.seanzeng.com
TEST Revision
Numbered Lists
- Hello
- Hello2
- Hello3
Links + Numbered Bullets
-
- Test
- Test
- Test
code code