Results 1 to 19 of 19

Thread: C++

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: Dec:2008
    Location:
    Posts: 10

    C++

    .
    .
    , . , , strcmp. , && float. , strcmp , char bool. , , .

    .
    .


    Code:
    void st::late_tr()
    {
    	char np,k, index=-1;
    	float late=0;
    	cout<<" insert npr: "; cin>>np;
    	cout<<" insert ka: "; cin>>k;
    	for(int i=0; i<br; i++)
    	if((m[i].access_npr(),np==0)&&(m[i].access_cat(),k==0)&&(m[i].access_h()>late))
    		{ late=m[i].access_h(); index=i;}
    		cout<<"Late "<<k<<" with"<<np<<" is: "<<endl;
    		m[index].print();
    };

  2. #2
    ɐ-əpoɔᴉu⋂ ɐ ə anrieff's Avatar
    Join Date: Apr:2004
    Location: Sofia
    Posts: 8,448
    . , , : access_npr(), np 0. access_cat(), k 0. . access_npr() access_cat(), (, access-, char*. , "char np[100], k[100]" , if
    Code:
    if (strcmp(m[i].access_npr(), np) == 0 && strcmp(m[i].access_cat(), k) == 0 && ...
    )
    , . .
    "640K ught to be enough for anybody" - Bill Gates, 1981
    ::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel

  3. #3
    Pesho's Avatar
    Join Date: Nov:2001
    Location: Sofia
    Posts: 5,169
    Quote Originally Posted by xoR View Post
    , , strcmp. , && float. , strcmp , char bool.

    ? , , .
    , !

  4. #4
    Registered User vegasis's Avatar
    Join Date: Jun:2005
    Location:
    Posts: 1,156
    .
    access_npr(), access_cat().
    , string .
    , ('==').

  5. #5
    Registered User
    Join Date: Dec:2008
    Location:
    Posts: 10
    , .
    char, if-a ==
    .

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

  7. #7
    Pesho's Avatar
    Join Date: Nov:2001
    Location: Sofia
    Posts: 5,169
    Quote Originally Posted by Bombera View Post
    , , ' ,

    ( ,)
    , !

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

  9. #9
    Registered User
    Join Date: Apr:2004
    Location: EU
    Posts: 141
    " , ()" - ( ).

    - , () , .

  10. #10
    Registered User
    Join Date: Dec:2008
    Location: bulgaria
    Posts: 2
    ,
    ++

    #include <iostream>
    #include <string>
    using namespace std;
    int main()

    {
    char s[1000];
    int brZ=0,brU=0,brP=0, brT=0;
    cout<<"Vyvedi text:";cin.getline(s,1000);
    for (int i=1; i<=strlen(s); i++)
    if (s[i]==',') brZ++;
    else
    if (s[i]=='!') brU++;
    else
    if (s[i]=='?') brP++;
    else
    if (s[i]=='.') brT++;
    cout<<"Broyat na zapetaite e "<<brZ<<endl;
    cout<<"Broyat na udivitelnite e "<<brU<<endl;
    cout<<"Broyat na vyprositelnite e "<<brP<<endl;
    cout<<"Broyat na to4kite e "<<brT<<endl;
    system("pause");
    return 0;
    }

  11. #11
    Registered User
    Join Date: Apr:2004
    Location: EU
    Posts: 141
    , ?

    , .




    |
    |
    V

    |
    |
    V

  12. #12
    Registered User
    Join Date: Dec:2008
    Location: bulgaria
    Posts: 2

  13. #13
    ɐ-əpoɔᴉu⋂ ɐ ə anrieff's Avatar
    Join Date: Apr:2004
    Location: Sofia
    Posts: 8,448
    , :

    Code:
    +-------------------------+
    |    |
    +-------------------------+
                |
                |
                V
    +---------------------------------------------+
    |    - "  " |
    +---------------------------------------------+
                       |
         +---------------------------+
         |                           |
         |                           |
         V                           V
    +-----------------+  +--------------------+
    |    |  |     |
    +-----------------+  +--------------------+
          |                          |
          |                          |
          V                          V
    +------------+       +--------------------------+
    | copy-paste |       |       |
    +------------+       | ,     | 
                         |   ,   | 
                         |     ..  | 
                         +--------------------------+ 
                                     |
                                     |
                                     V
                         +---------------------------+
                         |    , |
                         |                 |
                         +---------------------------+
    , . .
    "640K ught to be enough for anybody" - Bill Gates, 1981
    ::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel

  14. #14
    Registered User 's Avatar
    Join Date: Feb:2006
    Location:
    Posts: 653
    Quote Originally Posted by anrieff View Post
    , :
    ..
    ?

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

  16. #16
    Registered User
    Join Date: Oct:2003
    Location:
    Posts: 4,317
    Quote Originally Posted by Bombera View Post
    ..... . .....
    ?

  17. #17
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

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

  19. #19
    Registered User rumen_33's Avatar
    Join Date: May:2007
    Location: Canada
    Posts: 137
    opusuma, . , -. .
    |Asus P5K Premium WiFi|Intel C2D E6750|Kingston 2x1GB@667MHz|Seagate 250GB+500GB|Coolmax CP 500W|Asus EN 8800 GTS 320MB|

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 |