【文件属性】:
文件名称:roslaunch uushfusudfushfus
文件大小:64B
文件格式:
更新时间:2022-11-07 04:19:58
c++
C++中库(stdlib.h)中atoll函数的使用。* atoll example */
#include /* printf, fgets */
#include /* atoll */
int main ()
{
long long int lli;
char buffer[256];
printf ("Enter a long number: ");
fgets (buffer, 256, stdin);
lli = atoll(buffer);
printf ("The value entered is %lld. Its double is %lld.\n",lli,lli*2);
return 0;
}
Edit & Run