e-book tan c++ a başladım arkadaşlar bir sorum vardı.turkce guzel
e-book bulamadığım icin ingilizce e-bookla oğreniyorum.İngilizce cok da iyi değil aşağıdaki olayı biri anlatısa cok memnun olurum.
Default Parameters
C++ offers a very nice feature in default parameters. Default parameters are a way to
specify a common default value for a parameter so that when you call the function
you don’t have to specify the argument.
To specify a default parameter, you just assign a value to the parameter in the function
prototype like this:
void CalculateIVA (long Money, double IVA = 0.17);
This way, you can call the function without specifying the IVA value. Check the following
program to see how this works:

Kod:
1: /* ‘03 Main.cpp’ */ 2: 3: /* Input output stream header*/ 4: #include 5: 6: /* Use default parameter for IVA - 17% */ 7: void CalculateIVA (long Money, double IVA = 0.17); 8: 9: main () 10: 19: 20: void CalculateIVA (long Money, double IVA) 21:

__________________