Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /***************************************************************************
- * Copyright (C) 2008 by Šabart Otto *
- * otik10@seznam.cz *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
- ***************************************************************************/
- #ifdef HAVE_CONFIG_H
- #include <config.h>
- #endif
- #include <iostream>
- #include <cstdlib>
- using namespace std;
- //...Konstanty pro pole
- const int Arr = 50;
- char end;
- int main(int argc, char *argv[])
- {
- //...promenne
- char veta[Arr];
- cout << "...Zobrazuje vetu v opacnem poradi pismenek...\n";
- cout << "Zadejte vetu:\n";
- cin.getline(veta, 50);
- //...cyklus...cte po zpatku
- for(int i = strlen(veta) - 1;i <= strlen(veta); i--)
- cout << veta[i] << "\n";
- return EXIT_SUCCESS;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement