????? ?????????????, ???????????? ????? CyberForum.ru
???? ????????

??????????? ????????? - C++

?????
???????????
???????????? ??????
?????? ???? ???????
C++ ????????? ????????????? ?????????? / ?????? ?????????? ? ????? ?????????? ???? http://www.cyberforum.ru/cpp-beginners/thread1139492.html
??????? ??????? ?????! ????? ???????? ??? ? ???? ??????????? ?????????? ????????? ??? ???? ?????????? ??????????, ??? ????? ??? ???????? ???????????? ?.?., ????????: Iface.exe ?????????...
C++ ??? ?????? return ? ??????? void? void handle_arrival(vector<Car>& cars, vector< stack<string> >& parking_lot, const string& plate) { // TODO: Handle car arrivals for(int i=0;i<NUMBER_OF_AISLES;i++) { ... http://www.cyberforum.ru/cpp-beginners/thread1139491.html
C++ ???????? ????????? ????? ??????? ?????????
«?????????»: ? ??????? ?????? ?????????????? ?????? ????? ? ????????????? ?? ??????? ???????? ?????? ? ??????????? ?? ?????????? ? ????????? ???????????. ???????? ????????? ??? ??? visual...
????????? C++
?????? ????! ??? ???????, ??? ? ????????? ????? ???? ????????
C++ ??? ??????? ????? ?????? ???? ?????. ??????? ?? ????? ?????? ? ????????? ????? http://www.cyberforum.ru/cpp-beginners/thread1139431.html
...
C++ ???????? ???????????? ?????? ???????? ???????? ?????????, ??????? ??????? ??????????? ??????, ????????? ?? ????????????? ? ????????????? ????? ?????, ??????? ???? ?????? ?? ?????, ????????? ????????? ? ??????? ???????? ??... ?????????

???????? ????????? ????????
rcyn
13 / 9 / 2
???????????: 30.01.2014
?????????: 47
05.04.2014, 14:38
????? ?????? ??????? ?????? ???????? ??????, ?? ? ??????????? ???????.
??????????? ?????????
C++
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
struct Room
{
   Room(int number,  Room * north = 0, Room * west = 0, Room * south = 0, Room * east = 0)
      : m_Number(number)
      , m_NorthExit(north)
      , m_WestExit(west)
      , m_SouthExit(south)
      , m_EastExit(east)
   {}
 
   Room * m_NorthExit;
   Room * m_WestExit;
   Room * m_SouthExit;
   Room * m_EastExit;
   int m_Number;
};
 
 
int main()
{
   Room room_001(1);
   Room room_002(2);
   Room room_003(3);
   Room room_004(4);
   Room room_005(5);
   Room room_006(6);
   Room room_007(7);
   Room room_008(8);
   Room room_009(9);
 
   room_001.m_SouthExit = &room_004;
   room_002.m_EastExit = &room_003; 
   room_002.m_SouthExit = &room_003;
   // . . .
   room_009.m_WestExit = &room_008;
}
0
 
?????????? - ????? ?????????????, ???????????? ?????, ????????????????
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
???????@Mail.ru