📄 example2.cc~
字号:
// Run for example as follows: cat <file> | pparse | example2#include <iostream.h>#include "stable.h"int main (){ Stable stable; int bad = stable.read (cin); // Read from standard input if (bad) { cerr << "Error in input" << endl; return 1; } // Compute and display at most five stable models for (int i = 0; i < 5; i++) { // Every time model() is called a new stable model is computed if (stable.smodels.model () == 0) // If model() returns 0, then break; // there are no more models stable.smodels.printAnswer (); // Display the current model } return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -