1
1
Pārlūkot izejas kodu

some test using nullptr vs null.

wes 4 gadi atpakaļ
vecāks
revīzija
074ef26a82
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  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"); }
+}