Mistři v programování na #hovnokod

C/C++ #1227

	if (paper == "slozenka") // pouze pro slozenky
	{
		//-------------Nacteni D - promennych--------------------
		for (int i = 0; i < 10; i++)
		d[i] = b_3.operator [](i+1);
		//------------Nacteni C - promennych---------------------
		int tmp = b_4.Length();
		int tmp2 = 7;
		while (tmp > 0)
		{
			this->c[tmp2] = b_4.operator [](tmp);
			tmp--;
			tmp2--;
		}
		for (int i = 0; i < 8; i++)
		{
			if (c[i] == ' ')
			{
				c[i] = '=';
			}
		}
		//----------Castka na slozence + = -----------------------
		this->b_6 = this->b_4;
		tmp = 20 - b_4.Length();
		for (int i = 1; i < tmp+1; i++)
			b_6 = "=" + b_6;
		//--------------sl_name-------------------
		char c;
		AnsiString text;
		tmp  = 1;
		tmp2 = 1;

		if (this->adr_name != "")
			text = adr_name;
		else
			text = adr_comp;

		while ( tmp2 == 1 )
		{
			c = text.operator [](tmp);
			if (c == ' ')	tmp2 = 0;
			else	this->sl_name = sl_name + c;
			tmp++;
		}
		//-----------sl_surname----------------------
		tmp2 = 1;
		while ( tmp2 == 1 )
		{
			try
			{
				c = text.operator [](tmp);
				sl_surname = sl_surname + c;
				tmp++;
			}
			catch (Exception &e)
			{
				tmp2 = 0;
			}
		}
		//-----------uprava b_5 a b_7----------------------
		if (b_5.Length() > 30 )
		{
			tmp = b_5.Length() - 30;
			b_7 = b_5.SubString(31,tmp);
			b_5 = "=" + b_5.SubString(1,30);
			tmp = 30 - b_7.Length();
			for (int i = 1; i < tmp+1; i++)
			{
				b_7 = b_7 + "=";
			}
		}
		else
		{
			tmp = 30 - b_5.Length();
			for (int i = 1; i < tmp+1; i++)	b_5 = "=" + b_5;
			b_7 = "===================";
		}
	}

Anonymous,