Results 1 to 7 of 7
Hybrid View
-
27th December 2013 12:36 #1Registered User
Join Date: Aug:2012
Location:
Posts: 297
, .
limes :
limes()
{
up = 3;
down = 0;
}
limes( into x = 1, int y = 2)
{
up = x;
down = y;
}
main- :
limes func; limes func()
?
func ?
-
27th December 2013 14:49 #2
, 2 int . , . overloading.
. , .
-
27th December 2013 15:19 #3Registered User
Join Date: Aug:2012
Location:
Posts: 297
. main- primerno:
limes granica; , 2 x y , , 1 2. , limes granica , , 1 2. , default constructor . :
limes(int x, int y = 2) limes granica; granica.up granica.down 0 3 , .
, , ( ). , .
limes granica; limes granica();
, :
limes granica , default constructor, , cout << granica.up, expression must have class type . ?
-
27th December 2013 15:48 #4
into x=1, int x=1 .
.
default , =1 , default constructor . default (Edit: , PHP) ( , " " ).
ambiguity default constructors.
++ , , .Last edited by tedych; 30th December 2013 at 19:24.
-
28th December 2013 23:14 #5Registered User
Join Date: Sep:2013
Location: Bulgaria
Posts: 59
-
29th December 2013 13:57 #6, .limes granica;
-, ... C++ , .ASRock B550M Pro 4; Ryzen R5 3600; 2x16 GiB G.SKILL Aegis 3200; 1TB Samsung QVO 960 + 3TB Seagate IronWolf; Zalman Z1




Reply With Quote

Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in