当前位置:网站首页>Two end carry output character
Two end carry output character
2022-06-11 20:28:00 【csdn_ one thousand nine hundred and ninety-seven】
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <windows.h>
#include <string.h>
int main()
{
char arr1[] = { "hallo world!" };
char arr2[] = { "############" };
int left = 0;
int right = strlen(arr1) - 1;
while (left<=right)
{ printf("%s\n", arr2);
arr2[left] = arr1[left];
arr2[right] = arr1[right];
left++;
right--;
Sleep(1000);// Sleep for a second
system("cls");// Clear the screen
}
printf("%s\n", arr2);
return 0;
}边栏推荐
- In 2021, the global revenue of flexible fireproof sealant is about 755.2 million dollars, and it is expected to reach 1211.7 million dollars in 2028
- Première formation sur les largeurs modernes
- Chrome V8 source code 48 The secret of weak type addition,'+'source code analysis
- dried food! Information diffusion prediction based on sequence hypergraph neural network
- 2022-2028 global and Chinese thermal conductivity hydrogen analyzer Market Status and future development trend
- 9 r remove missing values
- Global Market Consulting - Research Report on the overall scale and application segmentation of the global HVDC converter station market in 2022
- Richter's substitution principle
- STL container nested container
- Calculate the number of 926 in the string to the power of 9260 of 926
猜你喜欢

Final examination of Dialectics of nature 1

Object storage of CEPH distributed storage

These postgraduate entrance examination majors are easy to be confused. If you make a mistake, you will take the exam in vain!

周鸿祎:想做直播带货抹不下面子 数据勒索成突出的安全威胁

Database introduction

12 date and time in R

What is the essence and process of SCM development? Chengdu Automation Development Undertaking

In 2021, the global cement and aggregate revenue will be about USD 204320 million, and it is expected to reach USD 242670 million in 2028

First modelarts training

STC hardware only automatic download circuit V2
随机推荐
STL容器嵌套容器
[bug resolution] unpickingerror: a load persistent ID instruction was encoded, but no persistent_ load.
桌面以及文件资源管理器无限重启的解决
28. JS implementation mechanism
秀创意,赢显卡!MMPose姿态估计创意大赛震撼来袭
ORA-01089 ORA-19809 ORA-19815 超过了恢复文件的限制
Modelarts second job
[Unity插件]着色器关键字分析工具ShaderControl
2022-2028 global and Chinese thermopile infrared sensor market status and future development trend
A brief talk on shutter button
2022-2028 global and Chinese thermal ionization isotope mass spectrometer (TIMS) market status and future development trend
Gestionnaire de paquets d'Unit é Starting Server Stuck
unity里面使用opencv,qt建立plugin(一)
Oracle case: ora-00600: internal error code, arguments: [4187]
STC hardware only automatic download circuit V2
sql优化之DATE_FORMAT()函数
Show your creativity and win the graphics card! Mmpose attitude estimation creative contest shocks
Leetcode 1992. 找到所有的农场组(可以,一次过)
A Mechanics-Informed Artificial Neural Network Approach in Data-Driven Constitutive Modeling 学习
The tutor transferred me 800 yuan and asked me to simulate a circuit (power supply design)