|
Hi all friends.
One example of this Hdd I do not know myself until I write, I had to get help from a friend.
We use version 4.5 of the C Trbv friend please give this version of the program Hdd.
-------------------------------------------------------
Write a program that was on the calendar (as a number) and to write letters example shows the output for the date 17/10/1391.
Hevda home Day mahe
hezaro sisado navado yek
-------------------------------------------------------
Please, please, because it's a friend of my hair, the hair will explain why you do please give a brief description of each paragraph or so posts that I'm grateful I can understand and explain.
|
|
|
|
|
Is this a New Year's snafu? It's all but completely incomprehensible.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
Hello my dear friend
Look at the way that
When we write the input 12/12/1391
That's the answer we give to the output ==> one three nine one/one two/one two
Thank you, and thank you
|
|
|
|
|
So you are simply wanting to convert numbers to text, like:
0 - zero
1 - one
2 - two
3 - three
4 - four
5 - five
6 - six
7 - seven
8 - eight
9 - nine
What part is troubling you?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
I guess you are trying this competition[^]. It's a simple matter to create an array containing the names of the digits and the multiples of ten for each column. You then break up your number into its individual digits and use the digit as the index into your array. Why not give it some thought and try to see what you can come up with.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Dear friend
I'm an Iranian, maybe I could ask my questions for you clearly. I am writing to you to ask you to translate Farsi perhaps easier to understand.
یه مثالی دارم وتا این حدد بلد نیستم که خودم بنویسم،مجبور شدم که از دوستان عزیز کمک بگیرم.
ما از نسخه ی 4.5 تربو سی استفاده میکنیم لذا از دوستان خواهدشمندیم که برنامه در حدد این نسخه ارائه دهند.
----------------------------------------------------------------------------------------------------------------------------------------------------------------
برنامه ای بنویسید که تاریخ شمسی را گرفته (بصورت عددی) و به حروف بنویسید بطور مثال برای تاریخ 1391/10/17 در خروجی نشان دهد.
Hevda home Day mahe
hezaro sisado navado yek
یه راهنمایی هم کرده که سردر نیاوردم ، اینکه گفته:سال حداکثر پنج رقمی باشد%
----------------------------------------------------------------------------------------------------------------------------------------------------------------
لطفا از دوستان خواهشمندم چون این برنامه رو مو به مو توضیح خواهیم داد بخاطر همین اگه لطف کنین در هر بند توضیح مختصری بدهید متشکر میشوم و یا اینکه طوری نوشته شود که بتونم خودم درک کنم و بتونم توضیح بدم.
|
|
|
|
|
I am sorry but that does not translate well. Can you find someone who can translate into English on your behalf, or find a colleague who knows programming in C?
من متاسفم اما این ترجمه نه به خوبی. آیا کسی که می تواند به زبان انگلیسی از طرف شما ترجمه و یا پیدا کردن یکی از همکاران که می داند که برنامه نویسی در C را پیدا کردید؟
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Dear friend
The question is, for example, write the date 12/12/2012.
The output should be written in such
Twelve/Twelve/Two thousand twelve
And days and months and years apart would like to write letters
Thank you
|
|
|
|
|
And I explained how to do this in my first answer. Create an array or list which contains the names of all numbers, and use the digits of the numbers to select them. Something like:
char* numbers = { "one", "two", ...
int day = currentDate.day;
cout << numbers[day - 1];
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Hello dear friend
Hey, I do not know how to write
Please write if you can not bother to be benefited from your writing.
Thank you
|
|
|
|
|
I am sorry, but this site is not here to do your work for you. I have explained how this problem can be solved, but it is up to you to do the work.
One of these days I'm going to think of a really clever signature.
|
|
|
|