1、vs2013 使用string类型

#include <string>

using namespace std;

2.c++struct

与class类似,

typedef struct listNode * list;//用list替换后面需要重复写的struct listNode

struct listNode{

int val;

listNode* pnext;

}


写strcut listNode* head与写listNode* head等价


3、C++的空必须大写为NULL

4、C++中的布尔类型必须大写为True和False

5、结构指针的运用

 vs2013 使用string,struct,指针



相关文章:

  • 2022-12-23
  • 2021-10-14
  • 2022-12-23
  • 2021-05-13
  • 2021-10-21
  • 2021-09-26
猜你喜欢
  • 2021-09-24
  • 2022-12-23
  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
  • 2021-10-05
相关资源
相似解决方案