stdio h It pretty much means open this file, standard IO dot H and just paste its contents right here.
它的大致上的意思是打开这个文件,然后把它的内容粘贴在那里。
printf I have my includes, standard IO's; so I can use print F, but then I had this thing called a prototype.
我包含了标准输入输出文件,所以我可以使用,然后我有这个原型。
That says it's in here. It's in this tri-block. It raised an exception, but it wasn't and I O error.
这在这里它是一个try程序块,它报出异常,但他不是io错误。
include stdio h Well, remember this line; include standard IO dot H.
好的,请记住这一行。
stdio I don't even need standard IO because I'm not printing anything.
我甚至不需要,因为我不需要打印任何东西。
Notice though what I've done. Open, a particular kind of exception called I O error.
不过还是看看我们做的,这里我们并没有把异常报做io错误。
- Well -- and I'll fix this blue next time -- I'm first telling the compiler I need access to the standard io library because printf is declared there.
哦!--下次我把这个字体颜色改成蓝色的-,我先告诉编译器--我需要使用,标准输入输出库,因为printf在那个库里面申明的。
include stdio h The next line of code says include standard io.h which just as a little sanity check contains among other things, printf.
接着的一行代码写着,这个库文件包含一些我们常用的函数,譬如,printf函数。
And so I've done a little bit different things here which is I put the accept part of the block with I O error.
所以我这里在处理部分,所做的同io错误,有一点不一样,这表明什么。
stdio c So somewhere there's standard IO dot C, stdio h somewhere they're standard IO dot H, but, for me, right now, the only file I need to know about is the dot H, -- because what Sharp include really does -- it's what's called a preprocessor directive.
所以某个地方有一个,现在对于我来说它们是,我只要知道那个,h文件,因为Sharp包含的-,叫做预处理指令。
cs50 h It's not called standard io.h, it's called cs50.h. That's where the code we wrote for you will live and then we'll see how to do this in examples today onward but we wrote for you some tools, some functions that calls GetChar for get a character.
当然不是标准输入输出库了,而是叫做,这里面有一些我们写的代码,等一下我会举几个例子,我们写了一些函数,比如GetChar,意思是得到一个变量。
应用推荐