当前位置:网站首页>Cout.write learning
Cout.write learning
2022-07-28 18:22:00 【L Qi Tian】
#include<iostream>
using namespace std;
int main() {
const char* str = "Hello World \n yes you\0 hia";
// To \0 Cut off calculation at
int len = strlen(str);
for (int i = 0; i < len; i++) {
// encounter \n The newline symbol does not stop , Instead, it reads a specified number of characters or encounters \0 stop it
// Incoming address , Output i Characters
cout.write(str, i);
cout << endl;
}
return 0;
}
边栏推荐
猜你喜欢

NDK 系列(5):JNI 从入门到实践,爆肝万字详解!

The growth path of hardware engineers (0) -- Understanding components

Uniapp local packaging permission configuration problem
![[dry goods] how to establish a close relationship between support and products?](/img/ec/bc36beb0935968fec3791910e2cb0a.png)
[dry goods] how to establish a close relationship between support and products?

After CentOS uses docker to run mysql, the remote connection needs to open the port

Centos8 uses docker to install WordPress in wordpress+mysql configuration file_ DB_ Understanding of host

频谱分析仪的性能参数

Flutter:异常处理

How to sharpen a knife simply by yourself

Processes, threads, semaphores, and mutexes
随机推荐
The difference between probability function p (x), probability distribution function f (x) and probability density function f (x)
Video number from 2-3 games per week to 3 games per day
Tensorflow2.0 (XII) -- realize simple RNN and LSTM networks
业绩增长强劲!闻泰科技上半年净利17亿元,同比暴增767.19%!
Go的walk库报错
Some methods of realizing video account
solidity的require报错
ADS仿真 之 交流仿真和S参数仿真示例
新手记录:机械键盘的一些小知识
Compilation principle learning notes 3 (top-down syntax analysis)
横向listview的最佳实现——RecycleView
有一种密码学专用语言叫做ASN.1
体验5分钟开发微信小程序
Delete the last page of word document
Digital filter (V) -- design IIR filter
syntax error: non-declaration statement outside function bodygo 和 syntax error: unexpected {, expect
华为中兴在英国败诉,不交专利授权费将被禁售!
Go的sleep
马斯克利用活猪展示全新脑机接口技术:可实时读取猪脑信息
Advanced Design System(ADS)2009 射频仿真入门