- 博客(2)
- 收藏
- 关注
原创 C# 请输入一个字符串 统计字符数
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace tongjizifu { class Program { static void Main(string[] args) { int l=0, m=0, n.
2021-09-26 19:01:28
585
1
原创 C语言常见格式
d格式:用来输出十进制整数.有以下几种用法: %d:按整型数据的实际长度输出. %nd:n为指定的输出字段的宽度.如果数据的位数小于n,则左端补以空格,若大于n,则按实际位数输出. %ld:输出长整型数据. 补充一点其他的: o格式:以无符号八进制形式输出整数.对长整型可以用"%lo"格式输出.同样也可以指定字段宽度用“%mo”格式输出. 例: main() { int a = -1; printf("%d,%o",a,a); } 运行结果:-1,177777 程序解析:-1在内存单
2021-06-01 18:15:13
2752
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人