#if defined(UNICODE) || defined(_UNICODE)
#define tcout std::wcout
#else
#define tcout std::cout
#endif
void button_click(object sender, RoutedEventArgs e)
{
var form = new Form2(){DataContext = DataContext};
form.ShowDialog();
}
public MyException : Exception
{
public enum MyErrorCodeEnum { Error1 = 1, Error2 = 2, Error22 = 22};
private MyErrorCodeEnum _myErrorCode;
public MyErrorCodeEnum MyErrorCode
{
get {return _myErrorCode;}
}
public MyException(MyErrorCodeEnum errorCode)
{
_myErrorCode = errorCode;
}
}
int rnd = Random.Range(0, AllSymbols.Count);
while (AllSymbols[rnd].GetComponent<Text>().text != "-")
rnd = Random.Range(0, AllSymbols.Count);
void perebor_updates(IEnumerable<DirectoryInfo> dirs)
{
foreach(var dir in dirs)
...
}
void perebor_updates(IEnumerable<string> dirNames)
{
foreach(var name in dirNames)
{
var dir = new DirectoryInfo(name);
...
{
...
}
SELECT `nazvanie` , `gorod`, `ulica`
FROM `dannie` as D LEFT JOIN `ulica` as U on D.`kod_ulica` = U.`kod_ulica`
LEFT JOIN `gorod` as G on U.`kod_gorod` = G.`kod_gorod`
LEFT JOIN `region` as R on G.`kod_region` = R.`kod_region`
string name = @"C:\Путь";
DirectoryInfo dir = new DirectoryInfo (name);
ChangeNameRecursive(dir);
void ChangeNameRecursive(DirectoryInfo dir)
{
int i = 0;
foreach(var item in dir.GetFiles())
{
File.Move (item.FullName, name + "test_" + i.ToString() + ".pp");
i++;
}
foreach(var d in dir.GetDirectories())
{
if(d.Name == "." || d.Name == "..") continue;
ChangeNameRecursive(d);
}
}
The checksum also covers a 96 bit pseudo header conceptually
prefixed to the TCP header. This pseudo header contains the Source
Address, the Destination Address, the Protocol, and TCP length.
This gives the TCP protection against misrouted segments. This
information is carried in the Internet Protocol and is transferred
across the TCP/Network interface in the arguments or results of
calls by the TCP on the IP.
+--------+--------+--------+--------+
| Source Address |
+--------+--------+--------+--------+
| Destination Address |
+--------+--------+--------+--------+
| zero | PTCL | TCP Length |
+--------+--------+--------+--------+
The TCP Length is the TCP header length plus the data length in
octets (this is not an explicitly transmitted quantity, but is
computed), and it does not count the 12 octets of the pseudo
header.
public void CreditsList_SelectionChanged(object sender, SelectionChangedEventArgs args)
{
if(combobox1.SelectedItem != null)
MessageBox.Show((combobox1.SelectedItem as CreditsList).credit_id);
}
[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true, CallingConvention = CallingConvention.StdCall)]
public static extern int CallNextHookEx(IntPtr hhk, int nCode, MouseMessages wParam, [In]MSLLHOOKSTRUCT lParam);
int main(int argc, char *argv[])
{
std::thread thr(SetView);
thr.detach();
std::thread thr2(SetListen);
thr2.detach();
thr.Join();
thr2.Join();
return 0;
}