Page 1 of 2 12 LastLast
Results 1 to 25 of 28

Thread: C++

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: Dec:2005
    Location:
    Posts: 219

    C++

    , , - . :

    . - .
    C++ , if- ?

  2. #2
    Banned
    Join Date: Oct:2001
    Location: , -5
    Posts: 2,637
    if- : .

  3. #3
    breaknenter's Avatar
    Join Date: May:2007
    Location:
    Posts: 5,942
    Code:
    if(a<b&&a<c) cout<<b+c;
    else if(b<c&&b<a) cout<<a+c;
    else cout<<a+b;
    - .

  4. #4
    Registered User
    Join Date: Dec:2005
    Location:
    Posts: 219
    , , . , - .

    , , :
    N (N ). .

  5. #5
    Eclipse Plugin Developer aphex's Avatar
    Join Date: Mar:2003
    Location: Karlsruhe
    Posts: 546
    (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!

  6. #6
    Guest
    Join Date: Jan:2000
    Posts: 9,193
    a % b .

    . , 00:00 - .. .


    aphex, .

    EDIT: .
    EDIT2: , - "" ...
    Last edited by Guest; 15th February 2009 at 17:04.

  7. #7
    Banned
    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

  8. #8
    Registered User
    Join Date: Dec:2005
    Location:
    Posts: 219
    !
    :
    . . 683, 863.
    , 683 -> 386, .

  9. #9
    Banned
    Join Date: Oct:2001
    Location: , -5
    Posts: 2,637
    , , . ( , ), , , apauncheva , , , , , .
    .

    , . , , , , ѝ . , , . , .
    Last edited by exabyte; 15th February 2009 at 18:41.

  10. #10
    - Psychopompos's Avatar
    Join Date: Jul:2001
    Location: Sofia
    Posts: 931
    , , .
    It's a man's world, but it would be nothing
    without a woman or a girl.

  11. #11
    Registered User
    Join Date: Dec:2005
    Location:
    Posts: 219
    50+ . , - , - -, - 50, .

    - , , . : http://wiki.answers.com/Q/C_program_...ts_of_a_number
    . , 50 .

    Psychopompos, , .

  12. #12
    Eek's Avatar
    Join Date: Aug:2005
    Location:
    Posts: 2,808
    , . Hint: atoi itoa.
    Geniess die Ruhe

  13. #13
    - Psychopompos's Avatar
    Join Date: Jul:2001
    Location: Sofia
    Posts: 931
    , . .
    It's a man's world, but it would be nothing
    without a woman or a girl.

  14. #14
    Registered 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;
    }
    , . , ...

  15. #15
    Registered User
    Join Date: Dec:2005
    Location:
    Posts: 219
    . - ( - ).
    A. A^15, .
    , 5 . , , 3-4 .

  16. #16
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    ^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|

  17. #17
    Registered User
    Join Date: Dec:2007
    Location: Sofia
    Posts: 366
    , A^2 A^5.

  18. #18
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    , .
    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|

  19. #19
    Registered User
    Join Date: Dec:2005
    Location:
    Posts: 219
    ! 1-2, , .

    , ; , ( %). ?

  20. #20
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    Quote Originally Posted by apaunchev View Post
    ...
    , ; , ( %). ?
    //Off
    , , ...
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

  21. #21
    Registered User
    Join Date: Dec:2005
    Location:
    Posts: 219
    .
    , 90% .

  22. #22
    ɐ-əpoɔᴉu⋂ ɐ ə anrieff's Avatar
    Join Date: Apr:2004
    Location: Sofia
    Posts: 8,448
    , .
    , . .
    "640K ught to be enough for anybody" - Bill Gates, 1981
    ::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel

  23. #23
    Registered 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;
    }
    , . ?

  24. #24
    ɐ-əpoɔᴉu⋂ ɐ ə anrieff's Avatar
    Join Date: Apr:2004
    Location: Sofia
    Posts: 8,448
    (a%10), , .
    , . .
    "640K ught to be enough for anybody" - Bill Gates, 1981
    ::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel

  25. #25
    Registered User
    Join Date: Dec:2005
    Location:
    Posts: 219
    , .
    .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |