473,289 Members | 2,106 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,289 software developers and data experts.

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::wcin,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";
Jul 13 '19 #1
1 1245
dev7060
626 Expert 512MB
- 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.
Jul 14 '19 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: S Etchelecu | last post by:
I'm having trouble understanding the MIME::Decoder usage. Within the context of a MIME email handling program I have an array, @data, and I want to uuencode it. I thought I could instantiate a...
2
by: Geru | last post by:
Hi there!, I'm looking for a Perl Module that does email decoder. I mean something that I put the email file and the Module returns the Message, Subject, Headers, etc, etc. And it should work...
0
by: Whitney | last post by:
I'm not sure which category this would fall under, but I assumed that something dealing with languages would be as good a place as any. I was sent a message using characters such as Z|¥" (which...
8
by: jbrewer | last post by:
I'm trying to read in a FITs image file for my research, and I decided that writing a file decoder for the Python imaging library would be the easiest way to accomplish this for my needs. FITs is...
3
by: Peter | last post by:
I have a problem which seems to come up from time to time but I can't find anything relevant in the archives. I have used PIL v1.1.5 with no problem on Windows for some time but now wish to put it...
2
by: ldpfrog | last post by:
Basically my friend's parents used to log his AIM and email so we made a barbaric version of an encoder that we could type in what we wanted and get random letters out. The only problem is that I did...
6
by: Nebulism | last post by:
Hey everyone, I am currently creating images pixel by pixel. This is too slow for many images. Anyways, I want to use the fromstring module in the Image library. I have read at this url,...
6
by: Ankit | last post by:
Hi everyone,i wanted to build a flash decoder using python can somebody tell me which library to use and what steps should i follow to make a flash(video) decoder?By a decoder i mean that i need to...
0
by: Victory | last post by:
Hi, I have looked through the MSDN but looks like there is nothing there that tells me how to use a Decoder object and actually get information about a JPG image. I need to check the frame header...
0
by: SwapnilD | last post by:
How do I implement a VIN decoder functionalitry in my website. There are few softwares provide VIN decoder functionality to which I can integrate my website to decode the VIN. But I don't want to...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.