示例#1
0
文件: bigbother.cpp 项目: qbolec/c
int main()
{
	long n;
	cin >> n;
	while(n--)
	{
		char c;
		cin >> c;
		switch(c)
		{
		case('R'):
			{
				long x,y;
				cin >> x>>y;
				osiedl(x,y);
			}
			break;
		case('K'):
			{
				long x1,y1,x2,y2;
				cin >> x1>>y1>>x2>>y2;
				polacz(x1,y1,x2,y2);
			}
			break;
		case('P'):
			{
				long y;
				cin >> y;
				przelot(y);
			}
			break;
		}
	}
	return 0;
}
示例#2
0
文件: start.cpp 项目: ajunik/Gwint
Start::Start( QWidget *parent) :
	QDialog(parent)
{
	setupUi(this);
    ustawienia();


    connect(pushButtonOk, SIGNAL(clicked()), this, SLOT(polacz()));
    connect(pushButtonEsci, SIGNAL(clicked()), this, SLOT(wyjdz()));
    connect(radioButtonServer, SIGNAL(clicked()), this, SLOT(widocznySerwer()));
    connect(radioButtonClient, SIGNAL(clicked()), this, SLOT(widocznyKlient()));

	pushButtonOk->setFocus();
}
示例#3
0
BazaDanych::BazaDanych()
{
	//std::cout << "Baza::Baza()" << std::endl;
	polacz();
}