当前位置:网站首页>%s格式符
%s格式符
2022-07-04 13:32:00 【Zaltana】
输入字符串,然后输出前3个字符,要求占6列,右对齐。
格式
输入格式:输入字符串
输出格式:输出字符串
样例
输入:Wendy
输出: Wen
#include<bits/stdc++.h>
using namespace std;
int main( )
{
char s[100];
gets(s);
printf("%6.3s",s);
return 0;
}边栏推荐
猜你喜欢

Ffprobe common commands

Why do domestic mobile phone users choose iPhone when changing a mobile phone?

How to match chords

Flutter reports an error no mediaquery widget ancestor found

Redis 发布和订阅

音视频技术开发周刊 | 252

Combined with case: the usage of the lowest API (processfunction) in Flink framework

IO流:节点流和处理流详细归纳。

产品好不好,谁说了算?Sonar提出分析的性能指标,帮助您轻松判断产品性能及表现

03 storage system
随机推荐
Luo Gu - some interesting questions 2
LVGL 8.2 Draw label with gradient color
Summary of common problems in development
Halo effect - who says that those with light on their heads are heroes
Introduction to modern control theory + understanding
C language set operation
Detailed explanation of visual studio debugging methods
Programmer turns direction
92. (cesium chapter) cesium building layering
Dialogue with ye Yanxiu, senior consultant of Longzhi and atlassian certification expert: where should Chinese users go when atlassian products enter the post server era?
Exploration and practice of eventbridge in the field of SaaS enterprise integration
Luo Gu - some interesting questions
LVGL 8.2 Line wrap, recoloring and scrolling
局部修改-渐进型开发
Opencv learning notes - linear filtering: box filtering, mean filtering, Gaussian filtering
C language book rental management system
浮点数如何与0进行比较?
UFO:微软学者提出视觉语言表征学习的统一Transformer,在多个多模态任务上达到SOTA性能!...
LVGL 8.2 LED
TechSmith Camtasia studio 2022.0.2 screen recording software