Demonstrates the use of string variables, pointers, and references.
[詳解]
#include <iostream>
#include <string>
[ソースコード]
|
int | main () |
| Main function of the program.
|
|
Demonstrates the use of string variables, pointers, and references.
main.cpp に定義があります。
◆ main()
Main function of the program.
Creates a string variable, a pointer to it, and a reference to it. Then, it prints the memory addresses and values of each.
- 戻り値
- 0 if the program executes successfully.
main.cpp の 29 行目に定義があります。