October 2018 2 28 Report

Co jest źle w tym kodzie?

#include <iostream>
#include <string>
using namespace std;
int main()
{
string s;
int i,j,k,d;
bool t;


cout<<"Podaj tekst s=";
cin>>s;
k=3;
d=s.length();
cout<<"Dlugosc tekstu d="<<d<<endl;


for(i=1;i<d;i++)
{
j=s[i];
j=j+k;
s[i]=j;

cout<<s[i];
}

cout<<endl;

system("PAUSE")'
return EXIT_SUCCESS;

}

Potrzebuję na teraz:D Z góry dzięki:D


More Questions From This User See All

Recommend Questions



Life Enjoy

" Life is not a problem to be solved but a reality to be experienced! "

Get in touch

Social

© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.