【发布时间】:2018-04-30 10:38:29
【问题描述】:
我有一些代码需要学习,但我不明白什么是 unsigned int 以及它是如何工作的。
void print_all_sums(unsigned int n,double a[n])
{ // 1 <= n <= 30
unsigned int i,j,mask;
double s;
类似的东西。
【问题讨论】:
-
你用谷歌搜索了吗?
-
您没有说明如何使用
unsigned int。请发布显示问题的Minimal, Complete, and Verifiable example。 -
您可以像使用任何其他值一样使用它。只是它可以是 0 或正数。
-
它代表数学中所谓的“自然数”。 en.wikipedia.org/wiki/Natural_number.