浏览代码

some test using nullptr vs null.

wes 4 年之前
父节点
当前提交
074ef26a82
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      snippets/notnull.cpp

+ 6 - 0
snippets/notnull.cpp

@@ -0,0 +1,6 @@
+#include <iostream>
+
+int main(){
+    if(!NULL){printf("look a potato"); }
+    if(!nullptr){printf("look a tomato"); }
+}