Post

Liquid Tag 테스트

다음은 Wandbox와 연동된 테스트입니다.

https://www.google.com

main.cpp
#include <iostream>
using namespace std;
int main(){
    int a, b;
    cin >> a >> b;
    cout << a + b << endl;
    return 0;
}
C++
compile-error
int main() {
  undeclared_variable += 1; // 컴파일 에러
}
C++
runtime-error
#include <vector>
int main() {
  std::vector<int> v;
  return v.at(100); // 런타임 에러
}
C++
stdin
#include <iostream>
#include <string>
int main() {
  std::string name;
  int age;
  std::cout << "Enter your name: \n"; // 이 프롬프트는 stdin 입력창에 직접 나타나지 않습니다.
  std::cin >> name;                 // stdin 입력창의 첫 번째 단어를 읽음
  std::cout << "Enter your age: \n";
  std::cin >> age;                  // stdin 입력창의 다음 숫자를 읽음
  std::cout << "Hello, " << name << "! You are " << age << " years old." << std::endl;
  return 0;
}
C++
1
2
3
4
5
6
import std.core;

int main(){
  std::cout << "Hello, World!\n";
  return 0;
}

다음은 상태 다이어그램의 변화를 보여주는 애니메이션입니다. 각 프레임은 2초 간격(interval="2000")으로 재생됩니다.

프로세스 상태 변화
This post is licensed under CC BY 4.0 by the author.