This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "stdafx.h" | |
| #include "CppUnitTest.h" | |
| #include <iostream> | |
| using namespace Microsoft::VisualStudio::CppUnitTestFramework; | |
| namespace UnitTest2 | |
| { | |
| TEST_CLASS(UnitTest1) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| int main() | |
| { | |
| int mas [3] = { 1,2,3 }; | |
| int b = 10; | |
| mas [4] = b; | |
| mas[5] = mas[2] + mas[4]; // 3 + 10 | |
| std::cout << mas[0] + mas[1] + mas[2] << std::endl; // 6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "stdafx.h" | |
| #include "CppUnitTest.h" | |
| #include <iostream> // для оператора cout | |
| #include <cmath> // для функции modf | |
| using namespace Microsoft::VisualStudio::CppUnitTestFramework; | |
| namespace modfUnit | |
| { | |
| TEST_CLASS(UnitTest1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int main() | |
| { | |
| return 0; | |
| Calc(1, 1); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <snippet> | |
| <content><![CDATA[ | |
| <!-- begin $1 --> | |
| <div class="$1"> | |
| $2 | |
| </div> | |
| <!-- end $1 --> | |
| ]]></content> | |
| <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
| <tabTrigger>di</tabTrigger> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def parent(i): | |
| return i/2 | |
| def left(i): | |
| return 2*i | |
| def right(i): | |
| return (2*i + 1) | |
| class Heap: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| procedure TForm1.BitBtn3Click(Sender: TObject); | |
| var | |
| id: Integer; | |
| sqlTextStore: string; | |
| begin | |
| if Application.MessageBox('Удалить?','',MB_YESNO)=IDYES then | |
| begin | |
| case PageControl1.ActivePageIndex of | |
| 0: ADOQuery1.Delete; | |
| 1: ADOQuery2.Delete; |
NewerOlder