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

標題: #include “stdio.h”與#include<stdio.h>有什么區別 [打印本頁]

作者: huyun    時間: 2015-6-4 15:52
標題: #include “stdio.h”與#include<stdio.h>有什么區別
用雙引號表示先在當前程序所在的目錄查找所包含的文件,一般在要包含自己寫的文件時使用
用尖括號表示先在系統目錄查找所包含的文件,一般在要包含系統頭文件時使用
/*
============================================================================
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>就會出錯了




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




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