当前位置:网站首页>cout.write的学习
cout.write的学习
2022-07-28 17:02:00 【l齐天】
#include<iostream>
using namespace std;
int main() {
const char* str = "Hello World \n yes you\0 hia";
//到\0处截止计算
int len = strlen(str);
for (int i = 0; i < len; i++) {
//遇到\n换行符号不会停止,而是读取到指定数目字符或遇到\0停止
//传入地址,输出i个字符
cout.write(str, i);
cout << endl;
}
return 0;
}
边栏推荐
- 视频关联商品销量提升88%
- Domain name resolution problem record
- C WPF normal project suddenly prompts that the name "initializecomponent" does not exist in the current context
- Openmv (I) -- basic introduction and hardware architecture
- With so many open source frameworks, which one is better?
- 视频号7天销售额超百万
- Application of Internet of things in smart city
- 任正非最新发声:美国政治家希望华为死,求生欲使华为振奋起来
- Ren Zhengfei's latest voice: American politicians hope Huawei will die, and the desire to survive inspires Huawei
- 这么多开源框架,该用哪个好?
猜你喜欢

How to sharpen a knife simply by yourself

centos8按照docker官网创wordpress+mysql报错解决

Openmv (III) -- get camera pictures in real time

信号源原理简介

Openmv (VI) -- STM32 realizes object recognition and handwritten digit recognition

Uniapp local packaging permission configuration problem
![[reading notes] for paper: summary of three papers in r-cnn series](/img/1d/8b862ac66ea04d9371f64e35fc4396.png)
[reading notes] for paper: summary of three papers in r-cnn series

Tensorflow2.0 (XI) -- understanding LSTM network

Tips -- understanding of the physical meaning of convolution

【干货】如何建立支持和产品之间的密切关系?
随机推荐
About the difference between root and alias under localization
视频号小白起号操作指南
"Queen's day on March 8" has doubled the sales of on-site viewers and video numbers?
Jetson Nano 上安装 tensorflow2.1 和 pytorch1.4
Openmv (III) -- get camera pictures in real time
Video Number Xiaobai starting operation guide
Andorid: pit encountered by zxing.demo QR code scanning framework
Strong performance growth! Wentai technology's net profit in the first half of the year was 1.7 billion yuan, a sharp increase of 767.19% year-on-year!
Centos8 uses docker to install WordPress in wordpress+mysql configuration file_ DB_ Understanding of host
中芯国际上半年净利13.86亿元,N+1工艺已进入客户产品验证阶段
Food safety | will the salt content of bread exceed the standard? A few tips to teach you to eat bread correctly!
华为中兴在英国败诉,不交专利授权费将被禁售!
Centos8 creates wordpress+mysql error reports according to the official website of docker
Outdoor activities in hot weather are exquisite! Here comes the safety guide for citizens' fitness in midsummer
个人制作:AD库、元件库、封装库及3D模型,免费
Machine test questions for graduate students of Central South University
视频号电商未来的前景如何?
Mysql5.7 compressed package installation tutorial
ADS仿真 之 直流仿真示例
信号源原理简介