青岛理工大学通信与电子工程学院面向对象程序设计课件 字符串.pptVIP

  • 1
  • 0
  • 约7.39千字
  • 约 32页
  • 2019-05-13 发布于广东
  • 举报

青岛理工大学通信与电子工程学院面向对象程序设计课件 字符串.ppt

6.5 C++ strings 6.5.7 string input P6N cin 输入一个单词 getline(cin, str)输入一行 Q A * * * * * * * * * * * * * * C++ 程序设计 主讲人:苏小红教授sxh@hit.edu.cn 哈尔滨工业大学 计算机科学与技术学院 (C++)面向对象程序设计 Object-Oriented Programming in C++ Chapter 6 Strings 6.1 C-strings(C 风格字符串) C-string: a string is an array of characters (elements of type char) with the null character \0 in the last element of the array The string literal Hello“ actually contains 6, rather than 5,characters. 6.1 C-strings(C 风格字符串) 6.2 C-string input and output Remember that the number of elements in the char array must be one more tha

文档评论(0)

1亿VIP精品文档

相关文档