Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Viewed less than a minute ago

3YfX6P0kf06Lfnst

C++ gcc 12.1.0

Created at 1 minute ago

Created by anonymous

Author

anonymous

1 minute ago

Language

C++

Compiler

gcc 12.1.0

Options
Warnings
Don't Use Boost
C++11
-pedantic
Raw compiler options
-Dsome= -Dcondition=int i=0; i<1; i++ -DPhone1=phone1
セオライド・テクノロジー㈱株式会社フィックスターズ
Siv3D

Author

anonymous

1 minute ago

phone.h
›
⌄
⌄
⌄
⌄
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include"phone.h"
#include<iostream>

using namespace std;

int main (){
for(some condition){
phone Phone1;
if(phone1.isOn()){
phone1.doSomething();
}
else{
phone1.doSomethingElse();
}

}
}
›
9
1
2
3
4
5
6
7
class phone {
public:
bool isOn() { return true; }
void doSomething() {}
void doSomethingElse() {}
};

$ g++ prog.cc -Wall -Wextra -std=c++11 -pedantic -Dsome= -Dcondition=int i=0; i<1; i++ -DPhone1=phone1
Exit Code:
0
セオライド・テクノロジー㈱株式会社フィックスターズ
Siv3D