LoginSignup
0
1

More than 1 year has passed since last update.

初心者による初心者のためのC++|製作途中だからどんどん書き加えていくよ

Last updated at Posted at 2021-11-07

初心者のためのC++

初めてC++をやるので、間違っていたら教えてください

標準出力

#include <iostream>

int main()
{
    std::cout << "HELLO WORLD" << std::endl;

    return 0;
}

コマンドライン引数

#include <iostream>

int main(int argc, char *argv[])
{
    std::cout << argv[1] << std::endl;

    return 0;
}

ファイル名とかがargv[0]になるので、それ以降が引数である

条件式

OR演算やAND演算をするには、以下のような感じ。

if (<条件1> || <条件2>)
if (<条件1> && <条件2>)

ORには||、ANDには&&を使用する。

ToUpper

std::toupper(<文字>);
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1