欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136

標(biāo)題: #include “stdio.h”與#include<stdio.h>有什么區(qū)別 [打印本頁]

作者: huyun    時(shí)間: 2015-6-4 15:52
標(biāo)題: #include “stdio.h”與#include<stdio.h>有什么區(qū)別
用雙引號表示先在當(dāng)前程序所在的目錄查找所包含的文件,一般在要包含自己寫的文件時(shí)使用
用尖括號表示先在系統(tǒng)目錄查找所包含的文件,一般在要包含系統(tǒng)頭文件時(shí)使用
/*
============================================================================
Name        : rr.c
Author      : ff
Version     :
Copyright   : Your copyright notice
Description : Hello World in C, Ansi-style
============================================================================
*/
#include <stdio.h>
#include <stdlib.h>
#include "c.h"
extern int j;
int main(void) {
s.age=1;
//kk=1;
kk();
puts("!!!Hello World!!!"); /* prints !!!Hello World!!! */
printf("%d",j);
return EXIT_SUCCESS;
}


/*
* c.h
*
*  Created on: 2012-7-31
*      Author: root
*/
#ifndef C_H_
#define C_H_
struct student
{
  int num;
  char name[128];
  char password[32];
int age;
int class;
int math;
}s;
//extern student s;
int kk(void)
{
puts("!!!Hello World123!!!");
  return EXIT_SUCCESS;
}
#endif /* F_H_ */
如果上面把#include "c.h"改成#include <c.h>就會(huì)出錯(cuò)了




作者: 盆123    時(shí)間: 2016-11-13 14:17
樓主最后一句話有問題把。雖然先后順序不一樣但是最終實(shí)現(xiàn)的功能還是一樣的
作者: 盆123    時(shí)間: 2016-11-13 14:18
樓主最后一句話有問題把。雖然先后順序不一樣但是最終實(shí)現(xiàn)的功能還是一樣的




歡迎光臨 (http://www.raoushi.com/bbs/) Powered by Discuz! X3.1