#include <iostream>
using namespace std;//#define INT int //宏命令
// typedef int BOO; //移动
// INT a=10;
// BOO b = 12;void fun(string& str)
{int pos = str.find('a');cout << "位置" << pos << endl;str.replace(pos, 1, " this ");
}
int main()
{const char* c = "hello";int arr[] = { 1, 2, 3, 4, 5 };cout << c << endl;cout << *c++ << endl; // hcout << "c- " << c << endl;cout << *(c++) << endl; // l -> e // 当++出现在操作数的后面,而不是前面时,总是先执行完当前这句话,再执行++,括号不生效cout << (*++c) << endl; // lcout << c << endl; // lo// cout << arr << endl;// cout << ++arr[0] << endl;// arr[0]+=1;return 0;
}