网页学习体会

  • 首页
  • 个人博客
您的位置: 首页  >  IT文章  >  查看变量类型

查看变量类型

分类: IT文章 • 2023-12-14 12:17:49

示例:

 1 /*查看变量类型*/
 2 #include<iostream>
 3 #include<string>
 4 using namespace std;
 5 int main() {
 6     char c;
 7     int intr;
 8     string str;
 9     cout << typeid(c).name() << endl;
10     cout << typeid(intr).name() << endl;
11     cout << typeid(str).name() << endl;
12     system("pause");
13     return 0;
14 }

结果:

查看变量类型

相关推荐

  • Jmeter全局变量设置 一、使用正则表达式提取A接口的返回结果 二、将提取的返回结果设置为全局变量 三、使用全局变量 ${__property(loginout)}
  • Redis基础数据类型与对象
  • 静态变量
  • python基础--变量01
  • IOT 分类 从技术进行分类 从设备类型进行分类 从行业进行分类 从频段进行分类 从部署方式进行分类
  • Spring自动装配的几种类型
  • mysql1.1(搭建,数据类型,基本使用)
  • MYSQL1.2(字段管理,索引类型)
  • " 或 "/>"" target="_blank"> 配置文件报错:元素类型 "XXX" 必须后跟属性规范 ">" 或 "/>"
  • 指针变量
  • Linux配置Visual Stdio Code In this tutorial, you will configure Visual Studio Code to use the GCC C++ compiler (g++) and GDB debugger on Linux. GCC stands for GNU Compiler Collection; GDB is the GNU debugger.
  • tomcat 1. tomcat简介 tomcat项目部署
    网站免责声明 网站地图 最新文章 用户隐私 版权申明
本站所有数据收集于网络,如果侵犯到您的权益,请联系网站进行下架处理。   

Copyright © 2018-2021   Powered By 网页学习体会    备案号:   粤ICP备20002247号