- 博客(5)
- 收藏
- 关注
原创 Use bubble sort to sort the input intergers
Use bubble sort to sort the input intergers
2015-05-27 13:59:09 650
原创 Find all the narcissistic numbers from 100 to 999
In recreational number theory, a narcissistic number (also known as a pluperfect digital invariant (PPDI), an Armstrong number (after Michael F. Armstrong) or a plus perfect number) is a number that is
2015-05-24 10:13:02 1209
转载 C语言main()函数详解
Source: http://c.biancheng.net/cpp/html/725.htmlC的设计原则是把函数作为程序的构成模块。main()函数称之为主函数,一个C程序总是从main()函数开始执行的。 一、main()函数的形式在C99 标准中,只有以下两种定义方式是正确的:int main( void ) /* 无参数形式 */{ ... return 0;}i
2015-05-22 21:22:59 1196
原创 Integer Factorization
Every positive integer larger than 1 can be uniquely factorized into a product of prime numbers. These prime numbers are called the prime factors. Find all the prime factors of an input integer.
2015-05-14 13:11:58 502
原创 Check an input positive interger is a prime number or not
/* To check an input positive interger is a prime number */#include<iostream>#include<cmath>using namespace std;bool isPrime(int);int main(){ int y; cout<<"Please input a positive interger."<<end
2015-05-13 14:25:13 634
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人