`
yuanyu5237
  • 浏览: 162746 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

C++ Programming Tutorial 12 char Array

 
阅读更多

 

#include <iostream>
#include <cmath>
#include <cstdlib>
#include <cstring>
using namespace std;


int main()
{
	char tuna[6] = {'b', 'u', 'c', 'k', 'y', '\0'};

	cout << tuna << endl;

	char bacon[] = "bacon mmmm good";

	cout << bacon << endl;

	cout << strlen(bacon) << endl;

	cin.get();
	return 0;
}

 

 

 

 

 

分享到:
评论

相关推荐

    C++ Programming Tutorial in Chemistry.zip

    以下是你将在这个"C++ Programming Tutorial in Chemistry"中学习到的关键知识点: 1. **基础知识**:首先,你需要对C++的基础语法有一定的了解,包括变量、数据类型、运算符、流程控制(如if-else语句和循环)、...

    Visual Basic and Databases A Step By Step Database Programming Tutorial azw3

    Visual Basic and Databases A Step By Step Database Programming Tutorial 英文azw3 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除

    The C++ Language Tutorial

    《C++语言教程》是由Juan Soulié撰写,并于2007年6月进行了最后一次修订,读者可以通过网址***获取该教程。本教程的在线版本会不断修订,可能包含修正和改动。尽管文档和其内容受版权保护,但允许读者打印个人副本...

    .NET Programming with Visual C++: Tutorial, Reference, and Immediate Solutions

    .NET Programming with Visual C++: Tutorial, Reference, and Immediate Solutions By 作者: Max Fomitchev ISBN-10 书号: 1138436399 ISBN-13 书号: 9781138436398 Edition 版本: 1 出版日期: 2017-07-27 Pages:...

    STL Tutorial and Reference Guide_ C++ Programming with the Standard Template Library.zip

    《STL教程与参考指南——C++编程中的标准模板库》是C++编程领域的一份重要参考资料,它深入浅出地介绍了STL(Standard Template Library,标准模板库)的使用和原理。STL是C++标准库的核心部分,提供了一组高效、...

    C++ programming with the standard template library STL

    标题 "C++ programming with the standard template library STL" 和描述 "C++ programming with the standard template library STL tutorial and reference guide" 指明了本文档是一份关于如何在C++编程中使用标准...

    Learn Visual C# A Step-By-Step Programming Tutorial epub

    Learn Visual C# A Step-By-Step Programming Tutorial 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除

    Java Homework Projects A NetBeans GUI Swing Programming Tutorial(8th) epub

    Java Homework Projects A NetBeans GUI Swing Programming Tutorial(8th) 英文epub 第8版 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除

    C++ Network Programming (tutorial PPT)

    是以下两本书的 ppt形式的 Tutorial 1. C++ Network Programming, Volume 1: Mastering Complexity with ACE and Patterns 2. C++ Network Programming, Volume 2: Systematic Reuse with ACE and Frameworks

    Learn Visual Basic A Step By Step Programming Tutorial(15th) epub

    Learn Visual Basic A Step By Step Programming Tutorial(15th) 英文epub 第15版 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除

    Learn Visual Basic A Step By Step Programming Tutorial(15th) azw3

    Learn Visual Basic A Step By Step Programming Tutorial(15th) 英文azw3 第15版 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除

    The C++ Programming Language (4th Edition)

    Bjarne Stroustrup, the designer and original implementer of C++, has reorganized, extended, and completely rewritten his definitive reference and tutorial for programmers who want to use C++ most ...

    C++ tutorial

    1. **基础语法**:首先,会介绍C++的基础语法,包括变量、数据类型(如int、float、char等)、运算符(如算术、比较、逻辑等)、控制结构(如if语句、switch语句、for循环、while循环)以及函数的使用。 2. **指针...

    The C++ Standard Library A Tutorial and Reference (2nd Edition).zip

    The C++ Standard Library: A Tutorial and Reference, Second Edition, describes this library as now incorporated into the new ANSI/ISO C++ language standard (C++11). The book provides comprehensive ...

    C++_tutorial.pdf

    - **基本数据类型**:如整型(`int`)、浮点型(`float`、`double`)、字符型(`char`)等。 - **复合数据类型**:例如数组、结构体等。 - **变量声明**:使用数据类型加上变量名来声明变量,例如`int x;`。 - **变量初始...

    Delphi and C++ QuickStart Tutorial

    ### Delphi 和 C++ 快速入门教程 #### 一、引言 Embarcadero Delphi 和 C++Builder 是两款强大的开发工具,为开发者提供了高效构建跨平台应用程序的能力。Delphi 主要用于 Windows 和 macOS 的原生应用程序开发,...

    PyQt视频教程(下载自YouTube)

    12 - Color picker widget - PyQt with Python GUI Programming tutorial.mp4 13 - Editor - PyQt with Python GUI Programming tutorial.mp4 14 - Opening files with file picker - PyQt with Python GUI ...

    Beginning Visual C# A Computer Programming Tutorial epub

    Beginning Visual C# A Computer Programming Tutorial 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除

    C++ tutorial for C users

    This text enunciates and illustrates features and basic principles of C++. It is aimed at experienced C users who wish to learn C++. It can also be interesting for beginner C++ users who leaved out ...

Global site tag (gtag.js) - Google Analytics