字符串流 [英] String Streams
本文介绍了字符串流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好......
我有以下问题,我不知道怎么做。
有人可以帮忙吗?
编写一个过程,该过程以字符串作为参数,并打印出由字符串构成的模式。例如,给定字符串XMAS,它将输出以下内容:
X
MM
AAA
SSSS
Hello everyone...
I have the following problem and i have no idea how to do it.
Can anyone help?
Write a procedure that takes a string as its parameter and which prints out a pattern made out of the string. For example, given the string "XMAS", it would output the following:
X
MM
AAA
SSSS
推荐答案
您可能希望查看文章部分中的c / c ++。我相信AdrianH已经发布了一些如何用星号制作模式的教程。我想这会帮助你开始,并让你知道如何创建模式!
You might like to look under the Articles section for c/c++. I believ AdrianH has posted some tutorials how to make patterns from asterisks. I would imagine that would help you to get started, and give you an idea of how to create the pattern!
大家好.. 。
我有以下问题,我不知道怎么做。
有人可以帮忙吗?
编写一个过程,该过程以字符串作为参数,并打印出由字符串构成的模式。例如,给定字符串XMAS,它将输出以下内容:
X
MM
AAA
SSSS
Hello everyone...
I have the following problem and i have no idea how to do it.
Can anyone help?
Write a procedure that takes a string as its parameter and which prints out a pattern made out of the string. For example, given the string "XMAS", it would output the following:
X
MM
AAA
SSSS
我使用的是C ++和编译器DevC ++。
谢谢
I am using C++ and compiler DevC++.
thanks
我想找到你正在讲的教程,但我不能给你一些信息或链接吗?
thnx
I am trying to find the tutorial that you are talking but i can''t can you give me some info or the link please?
thnx
这篇关于字符串流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文