Skip to content

Instantly share code, notes, and snippets.

@tobychung
Last active November 21, 2016 06:59
Show Gist options
  • Save tobychung/fd59c7e28221c30fb18ff8a7c2f2d1bd to your computer and use it in GitHub Desktop.
Save tobychung/fd59c7e28221c30fb18ff8a7c2f2d1bd to your computer and use it in GitHub Desktop.
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
char a;
a = 'A';
//if括弧裡面為條件
if(a){
//如果條件為true進這裡
printf("exist", a);
}else{
//如果條件不符進這裡
printf("does not exist", a);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment