So can you use GetString to print the answer?
所以你能够用GetString来打印答案吗?
The getString function receives two parameters.
getString函数接受两个参数。
GetString returns a value for the given key in a specified language.
getString用指定的语言返回一个给定键的值。
The method getString("value") is part of the SDO dynamic interface and needs a bit of an explanation.
方法getString("value")是SDO动态接口的组成部分,需要对其进行一点说明。
And the reason that we now on the second line have the equal sign is because this function GetString has what's called a return value.
我们之所以,在第二行代码GetString前面加上等号,是因为这个函数会带回一个,返回值。
If you instead use GetString, same thing: blinking cursor, the function is just going to wait for the user to type a word, a sentence or whatever, and then hit Enter.
如果你用GetSring来代替它,同样的:闪烁光标,那个函数只是等待用户来,输入一个单词,一个句子什么的,然后敲回车。
So when we call GetString, the function GetString What we are doing is figuring out how to get input from the user at the keyboard into individual chunks of memory like that.
所以当你调用cs50员工写的这个,函数时。,that,the, cs50, staff, wrote。,我们要做的就是弄清楚怎样把,用户的输入,存储在像那样的单独的存储单元里面。
The getInstance() method first tests to determine if the type under consideration is supported by reflecting an appropriate method: getInt() for an int, getString() for a String, and so on.
getInstance()方法首先通过反射一个适当的方法以测试判断当前考虑的类型是否受支持:getInt() 对应于int,getString() 对应于String,等等。
The getInstance() method first tests to determine if the type under consideration is supported by reflecting an appropriate method: getInt() for an int, getString() for a String, and so on.
getInstance()方法首先通过反射一个适当的方法以测试判断当前考虑的类型是否受支持:getInt() 对应于int,getString() 对应于String,等等。
应用推荐