[C++] Kod ASCII
Ostatnio zmodyfikowano 2013-12-15 14:10
SeaMonster131 |
» 2013-12-15 14:03:34 string znaki; int ilosc_znakow = znaki.size();
? |
|
Kefirek |
» 2013-12-15 14:05:37 #include "stdafx.h" #include "iostream"
const int Size = 30;
int _tmain( int argc, _TCHAR * argv[] ) { using namespace std; system( "chcp 1250" ); system( "cls" ); char slowo[ Size ]; char slowo1[ Size ]; cout << "Podaj slowo: "; cin >> slowo; cout << endl << "Zmienione słowo to: "; for( int i = 0; i < strlen( slowo ); i++ ) { slowo1[ i ] =( slowo[ i ] ) + 3; cout << slowo1[ i ]; } cout << endl; system( "PAUSE" ); return 0; }
|
|
Kefirek |
» 2013-12-15 14:10:33 #include "stdafx.h" #include "iostream"
const int Size = 30;
int _tmain( int argc, _TCHAR * argv[] ) { using namespace std; system( "chcp 1250" ); system( "cls" ); char slowo[ Size ]; char slowo1[ Size ]; cout << "Podaj slowo: "; cin.getline( slowo, 30 ); cout << endl << "Zmienione słowo to: "; for( int i = 0; i < strlen( slowo ); i++ ) { slowo1[ i ] =( slowo[ i ] ) + 3; cout << slowo1[ i ]; } cout << endl; system( "PAUSE" ); return 0; }
|
|
1 « 2 » |