How made decoder.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Stalker hacker
    New Member
    • Jul 2019
    • 1

    How made decoder.

    #include "stdafx.h"
    #include <iostream>
    #include <string>

    using std::wcin;
    using std::wcout;
    using std::wstring;

    int main()
    {

    wcout << L"Введите предложени е: ";
    wstring txt;
    getline(std::wc in,txt);
    for (size_t i = 0; i < txt.length(); ++i)
    {
    if (txt[i]==L'а')
    wcout << L"15";
    if (txt[i]==L'б')
    wcout << L"16";
    if (txt[i]==L'А')
    wcout << L"17";
    if (txt[i]==L'в')
    wcout << L"18";
    if (txt[i]==L'г')
    wcout << L"19";
  • dev7060
    Recognized Expert Contributor
    • Mar 2017
    • 656

    #2
    - Use code tags.
    - Explain what you are trying to do or what's the logic.
    - What are the errors if you are getting some.
    - The purpose of the code here looks like decoding of a string. But nothing can be said by looking at the incomplete code without any description.

    Comment

    Working...