⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 file_10.cpp

📁 数据结构常用算法合集
💻 CPP
字号:
//file_10.cpp
#include <fstream.h>
#include <conio.h>
#include <iomanip.h>						//setw()
void main()
{ float d;
  int degree;
  char buffer[80];
  ifstream infile("fdata.txt");
  infile.getline(buffer,80);					//读取标题字符串
cout << buffer << endl;					//输出标题字符串
  while (infile)
  { infile >> degree >> d;					//读取角度与函数值
    cout << setw(3)<< degree << "  " <<d << endl;	//输出
  }
  getch();
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -