Herzlich Willkommen, lieber Gast!
  Sie befinden sich hier:

  Forum » C / C++ (WinAPI, Konsole) » Can any one help to do this ?

Forum | Hilfe | Team | Links | Impressum | > Suche < | Mitglieder | Registrieren | Einloggen
  Quicklinks: MSDN-Online || STL || clib Reference Grundlagen || Literatur || E-Books || Zubehör || > F.A.Q. < || Downloads   

Autor Thread - Seiten: > 1 <
000
26.04.2006, 08:11 Uhr
~sMatis
Gast


I have a c++ program which must pick symeteric words from typed sentence and give answer...answer should show symetric word's letters.
example: ololo aha sabas ohoho

I wrote a code in Console wizard.
Can any one rewrite this program in Windows application and compile it to me?
Please send it to my email: smacinis@gmail.com

Very thanks for help
P.S. In Windows application should be button: Enter/Ivesti
EditBox - Enter sentence/Iveskite sakini
Label which gives answer...
Please send all cpp,exe,bpr...files
I need this program !!! Im a student and this is my exam work

#include <vector>
#include <string>
#include <iostream>
#include <sstream>
#include <conio>

using namespace std;

int main()
{
int i;
char raide;
string zodis, ivestis;
istringstream iss;
vector<char> raides;
vector<string> zodziai;

// pasiimame ivesta eilute
cout << "Ivestis: ";
getline(cin, ivestis);
iss.str(ivestis);

// isskaidome sakini i zodzius
while (iss >> zodis)
zodziai.push_back(zodis);

// susirenkame simetriniu zodziu nesidubliuojancias raides
for (i = 0; i < zodziai.size(); i++) {
zodis = zodziai[i];
if (zodis.length() > 1 && zodis[0] == zodis[zodis.length() - 1]) {
// tikriname ar tokia raide jau yra raidziu masyve
int yra = 0;
for (int v = 0; v < raides.size(); v++)
if (raides[v] == zodis[0])
yra++;
// jei nera - ikeliame i raidziu masyva
if (!yra)
raides.push_back(zodis[0]);
}
}

// rezultato isvedimas
if (raides.size() > 0) {
cout << "Rastos raides: ";
for (i = 0; i < raides.size(); i++)
cout << raides[i];
cout << endl;
} else {
cout << "Simetriniu zodziu nerasta" << endl;
}
getch();
return 0;
}
 
Profil || Private Message || Suche Download || Zitatantwort || Editieren || Löschen || IP
001
26.04.2006, 09:58 Uhr
Guybrush Threepwood
Gefürchteter Pirat
(Operator)


lol this Forum isn't for your Homework. If you have Problems with specific Topics, ask them. If you want someone to do your work, than you won't find one unless you pay for it.
 
Profil || Private Message || Suche Download || Zitatantwort || Editieren || Löschen || IP
Seiten: > 1 <     [ C / C++ (WinAPI, Konsole) ]  


ThWBoard 2.73 FloSoft-Edition
© by Paul Baecher & Felix Gonschorek (www.thwboard.de)

Anpassungen des Forums
© by Flo-Soft (www.flo-soft.de)

Sie sind Besucher: