Results 1 to 2 of 2

Thread: ,

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User edinvupros's Avatar
    Join Date: Jul:2011
    Location: sofia
    Posts: 46

    ,

    , - - . - , -. - (2 ) , . " "

    #include <iostream>
    #include <string.h>

    using namespace std;

    int main(void)
    {

    int i;
    string words[] = {"silverlight", "application", "can", "include", "manifest", "that", "allows", "it", "to", "be", "installed", "on", "the", "user", "local", "machine", "the", "apps", "can", "then", "be", "run", "offline", "outside", "of", "the", "browser"};
    string biggestword=words[0];
    for(i=1; i<27; i++) {
    string currentword=words[i];
    if(strlen(currentword)>strlen(biggestwor d)) {
    biggestword=currentword[i];
    }

    }
    cout<<"biggest word"<<biggestword<<endl;

    return 0;
    }

    -------------------------------------------------------------------


    #include<stdio.h>
    #include <iostream>
    #include <string.h>

    using namespace std;

    int main(void)
    {

    int i;
    string words[] = {"silverlight", "application", "can", "include", "manifest", "that", "allows", "it", "to", "be", "installed", "on", "the", "user", "local", "machine", "the", "apps", "can", "then", "be", "run", "offline", "outside", "of", "the", "browser"};
    string biggestword=words[0];
    for(i=1; i<27; i++) {
    string currentword=words[i];
    if(currentword.size() > biggestword.size()) {
    biggestword=currentword[i];
    }

    }
    printf("nai golqmata duma %s",biggestword);

    return 0;
    }

    :

    , 4 , 2 'Z'. 4 , . 'Z'. , . .
    P.S. C, cout- , .
    Last edited by edinvupros; 18th December 2011 at 00:45.

  2. #2
    Registered User
    Join Date: Oct:2003
    Posts: 1,860
    .
    , .
    , ( , ""). , a .
    .
    DumaMax, DumaMin
    integer adressDumaMax, adressDumaMin. = 1
    DumaMax, DumaMin =
    .
    DumaMax, DumaMin .
    - .
    .
    - ,

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 |