提供一个流程名称作为输入,输入一个字符串。
在列中输入一个字符串值“ a ”,并确保包括引号。
Enter a string value "a" in the column and be sure to include the quotes.
编写函数输入一个字符串,将其中的元音字母逆置。
Write a function that takes a string as input and reverse only the vowels of a string.
Now, if I've asked the user for a string and then a moment later I ask the user for another string, well, they're going to end up in different locations in memory just by nature of get string.
现在,如果我要用户输入一个字符串,一会儿之后我要用户输入另一个字符串,他们最终是在,不同的内存地址中。
That is the address in memory in the heap of the first byte that the user typed in.
那是用户输入的字符串第一个字节,内存中堆的地址。
If you give me a number and a string, I'm going to concatenate them together, it's really different operations, but nonetheless, it's what it's going to do.
如果给的输入是一个数字和一个字符串,我将会把它们连接在一起,这实在是不正确的操作,但是无论如何,它就是会去这么做。
应用推荐