if(p->RoomsCount==p->ptr->RoomsCount) // ptr == nullptr;
struct OLS
{
int RoomsCount;
int floor;
float square;
OLS *ptr;
friend bool operator==(OLS& a, OLS& b);
};
typedef OLS* pOLS;
bool operator==(OLS& a, OLS& b)
{
return (a.RoomsCount == b.RoomsCount) &&
(a.floor == b.floor) &&
(a.square != b.square);
}
void CompAndFind(pOLS& str)
{
if(!str) return;// nullptr
pOLS p = str;
while(p->ptr)
{
if(*p == *(p->ptr))
{
show(p);
}
p = p->ptr;
}
}
Key Down
Characters:
Unicode: 3 / 0x3
Keys: ⌅
Key Code: 76 / 0x4c
Modifiers: 2097408 / 0x200100
Key Down
Characters:
Unicode: 13 / 0xd
Keys: ↵
Key Code: 36 / 0x24
Modifiers: 256 / 0x100
$dbi = new PDO("mysql:dbname=$nameofdbi;host=$hosti", $dbusernamei, $dbpasswordi, array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8"));
$a = $_POST['lol'];
$query = "INSERT INTO `usr`.`rtm` (`lol`) VALUES (?)";
$stmt = $dbi->prepare($query);
$stmt->bindParam(1, $a, PDO::PARAM_STR);
$stmt->execute();
cp ./* ../clones/NAME
cp: не указан -r; пропускается каталог './траляля'
cp -r ./* ../clones/NAME