Results 1 to 25 of 28
Thread: C++
Hybrid View
-
15th February 2009 16:06 #1Registered User
Join Date: Dec:2005
Location:
Posts: 219
C++
, , - . :
C++ , if- ?. - .
-
15th February 2009 16:13 #2Banned
Join Date: Oct:2001
Location: , -5
Posts: 2,637
if- : .
-
15th February 2009 16:23 #3- .Code:
if(a<b&&a<c) cout<<b+c; else if(b<c&&b<a) cout<<a+c; else cout<<a+b;
-
15th February 2009 16:41 #4Registered User
Join Date: Dec:2005
Location:
Posts: 219
, , . , - .
, , :
N (N ). .
-
15th February 2009 16:55 #5
(N mod 3600)div60
@Guest,Last edited by aphex; 15th February 2009 at 17:03.
We are drowning in information, but starving for knowledge and time!
-
15th February 2009 16:57 #6Guest
Join Date: Jan:2000
Posts: 9,193
a % b .
. , 00:00 - .. .
aphex, .
EDIT: .
EDIT2: , - "" ...Last edited by Guest; 15th February 2009 at 17:04.
-
15th February 2009 17:18 #7Banned
Join Date: Oct:2001
Location: , -5
Posts: 2,637
, , Microsoft ?
- , , -.
:
Code:int minutes = 0; while (seconds >= 3600) { seconds -= 3600; } while (seconds >= 60) { seconds -= 60; minutes ++; }
, (m % 3600) / 60
-
15th February 2009 18:19 #8Registered User
Join Date: Dec:2005
Location:
Posts: 219
!

:
, 683 -> 386, .. . 683, 863.
-
15th February 2009 18:35 #9Banned
Join Date: Oct:2001
Location: , -5
Posts: 2,637
, , . ( , ), , , apauncheva , ,
, , , .
.
, . , , , , ѝ . , , . , .
Last edited by exabyte; 15th February 2009 at 18:41.
-
15th February 2009 18:42 #10
, , .
It's a man's world, but it would be nothing
without a woman or a girl.
-
15th February 2009 18:42 #11Registered User
Join Date: Dec:2005
Location:
Posts: 219
50+ . , - , - -, - 50, .
- , , . : http://wiki.answers.com/Q/C_program_...ts_of_a_number
. , 50 .
Psychopompos, , .
-
15th February 2009 19:26 #12
-
15th February 2009 20:32 #13
, . .
It's a man's world, but it would be nothing
without a woman or a girl.
-
16th February 2009 21:33 #14Registered User
Join Date: Dec:2005
Location:
Posts: 219
, :
, . , ...Code:#include <iostream> using namespace std; int main() { int i = 683, a, b, c, d; c = i%10; b = (i/10)%10; a = (i/100)%10; d = b*100 + a*10 + c; cout << i << " -> " << d; }
-
22nd February 2009 09:47 #15Registered User
Join Date: Dec:2005
Location:
Posts: 219
. - ( - ).
, 5 . , , 3-4 .A. A^15, .
-
22nd February 2009 13:45 #16
^2 = *
^5 = ^2 * ^2 *
^15 = ^5 * ^5 * ^5
^2 ^5.
EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|
-
22nd February 2009 13:53 #17Registered User
Join Date: Dec:2007
Location: Sofia
Posts: 366
, A^2 A^5.
-
22nd February 2009 14:02 #18
, .
EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|
-
22nd February 2009 14:49 #19Registered User
Join Date: Dec:2005
Location:
Posts: 219
! 1-2, , .
, ; , ( %). ?
-
22nd February 2009 20:21 #20
-
23rd February 2009 16:36 #21Registered User
Join Date: Dec:2005
Location:
Posts: 219
.
, 90% .
-
23rd February 2009 17:31 #22, . .
"640K ught to be enough for anybody" - Bill Gates, 1981
::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel
-
10th March 2009 19:05 #23Registered User
Join Date: Dec:2005
Location:
Posts: 219
:. .
, . ?Code:#include <iostream> using namespace std; int main() { int a = 234, sum = 0, proizv = 1; sum = sum + a%10; proizv = proizv * a%10; a = a/10; // mahame poslednata cifra for (; a != 0; a = a/10) { sum = sum + a%10; proizv = proizv * a%10; } cout << "Suma: " << sum << endl; cout << "Proizvedenie: " << proizv; }
-
10th March 2009 19:12 #24
(a%10), , .
, . .
"640K ught to be enough for anybody" - Bill Gates, 1981
::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel
-
10th March 2009 19:15 #25Registered User
Join Date: Dec:2005
Location:
Posts: 219
, .
.




Reply With Quote

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