Drkcore

05 09 2008 cpp Tweet

c++のcout

ちょっと確認

#include <iostream>

using namespace std;

int main(){
  const char* a = "abcde";
  cout << a <<endl;

  cout << *a <<endl;
  cout << *++a <<endl;
  cout << *++(++a) <<endl;

}

実行する。

$ ./test
abcde
a
b

ふむ、なるほど。

About

  • もう5年目(wishlistありマス♡)
  • 最近はPythonとDeepLearning
  • 日本酒自粛中
  • ドラムンベースからミニマルまで
  • ポケモンGOゆるめ

Tag

Python Deep Learning javascript chemoinformatics Emacs sake and more...

Ad

© kzfm 2003-2021