Results 1 to 2 of 2
Thread: ,
Hybrid View
-
17th December 2011 22:03 #1
,
, - - . - , -. - (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.
-
18th December 2011 10:24 #2Registered User
Join Date: Oct:2003
Posts: 1,860
.
, .
, ( , ""). , a .
.
DumaMax, DumaMin
integer adressDumaMax, adressDumaMin. = 1
DumaMax, DumaMin =
.
DumaMax, DumaMin .
- .
.
- ,




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