(认知有限,如有不妥,还请告知,欢迎讨论)
#include <stdio.h>
#include <iostream>
#include <string>
using std::string;
using std::cout;
using std::endl;
int main()
{
const char* sample_s = "sample pkc";
cout <<"The type of " << '"' << sample_s << '"' << " is " << typeid(sample_s).name() << "\n"<< endl;
string sample_str = "sample str";
cout <<"The type of " << '"' << sample_str << '"' << " is " << typeid(sample_str).name() << "\n"<< endl;
const char* s1 =