Usually when you know why it's not working, it's obvious what you have to do to make it work.
通常你明白了出错的原因后,很明显你必须让程序正常运行起来。
I start off, either I take this path and carry on, or I take that path and carry on, but each box, if you like, gets touched exactly once.
程序开始后,或者采取这条路径然后继续,或者采取那条路径然后继续,但是每个图形,如果你喜欢这么说的话。
> That lets the compiler know that you want to use some actual compiled code from that library.
>,那是告诉编译器我们想要在程序库中,使用一些当前的编译后的代码。
I know this is a simple example, but when you mature as a programmer, one of the first things you should do when you sit down to tackle some problem is write something like this pseudo code.
我知道这是个很简单的例子,但是当你们成长为一名程序员后,当你们碰到问题后第一件事情就是,该写一些类似于,伪代码的东西。
So now after all these stupid setup, we can finally dive in to the actual program.
把这些规定的东西写好后,我们才能写真正的程序。
But that little short hand there is doing exactly the same thing. It is adding that value into some digits and putting it back or signing it back into some digits. And I'll walk through that loop and when I'm done I can print out the total thing does. And if I do that, I get out what I would expect.
加上得到的这个数的,但是这个缩写声明其实是进行了同样的操作,它把我们得到的这个数加到一个数上面去,然后用和对这个数进行了重新赋值,在循环中会去遍历字符串,当完成循环后,程序会显示数字的总和,如果我运行,这个程序的话,我会得到我期待的结果。
But once you've written a program, "hello world," in a file called hello.c, you Save and Quit.
不过一旦你们写了一个“hello,world“程序“,并且把它保存为hello,c文件后退出。
And this is now a program that's web based, it's SMS based, it's voice based and it used to be Linux based as you'll see in a couple of weeks and it's just a program thatlet's you click where you are, click where you wanna go and voila, here are the next several shuttles that you can take.
这个程序现在是可以用网络访问的,可以用SMS的,可以用语音访问的,而且它曾经是Linux下的程序,你们几周后就会看到,它是这么一个程序,你可以点击确认你现在的位置,然后点你想要去的位置,然后程序会返回给你你能做的班车。
应用推荐