You are on page 1of 1

/******************************************************************************

Online C++ Compiler.


Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.

*******************************************************************************/

#include <iostream>
#include <stdlib.h>
#include <time.h>

using namespace std;

int main()
{
int i;
string t;
struct szosorsz k[3]
{
string szo;
int sorsz;
}
string betuk="abcdefghijklmnopqrstuvwxyz";
setlocale(LC_ALL,"HUN");
cout<< "Kérem adjon meg 3 szót"<<endl;
for(i=0;i<3;i++)
{
cout<<"A(z)"<<i+1<<"-ik szó:"<<endl;
cin>>t[i];
}
for (i=0;i<3;i++)
{
cout<<"A tömb"<<i+1<<"-ik eleme: "<<t[i]<<endl;
int n;
for(n=0;n<26;n++)
{
if(t[i][n]==betuk[n])
szosorsz
}
}
return 0;
}

You might also like