亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? chap24.lst

?? Borland C++ Builder The Complete Reference 例程源代碼
?? LST
字號:
listing 3
class three_d { 
public: 
  int x, y, z; // 3-d coordinates 
  three_d(int a, int b, int c) { x=a; y=b; z=c; } 
} ;

listing 4
// Display X, Y, Z coordinates (three_d's inserter). 
ostream &operator<<(ostream &stream, three_d obj) 
{ 
  stream << obj.x << ", "; 
  stream << obj.y << ", "; 
  stream << obj.z << "\n"; 
  return stream; // return the stream 
}

listing 5
#include <iostream> 
using namespace std; 
 
class three_d { 
public: 
  int x, y, z; // 3-d coordinates 
  three_d(int a, int b, int c) { x=a; y=b; z=c; } 
} ; 
 
// Display X, Y, Z coordinates - three_d inserter. 
ostream &operator<<(ostream &stream, three_d obj) 
{ 
  stream << obj.x << ", "; 
  stream << obj.y << ", "; 
  stream << obj.z << "\n"; 
  return stream;  // return the stream 
} 
 
int main() 
{ 
  three_d a(1, 2, 3), b(3, 4, 5), c(5, 6, 7); 
 
  cout << a << b << c; 
 
  return 0; 
}

listing 6
// Limited version - don't use. 
ostream &operator<<(ostream &stream, three_d obj) 
{ 
  cout << obj.x << ", "; 
  cout << obj.y << ", "; 
  cout << obj.z << "\n"; 
  return stream;  // return the stream 
}

listing 7
#include <iostream> 
using namespace std; 
 
class three_d { 
  int x, y, z; // 3-d coordinates - - now private 
public: 
  three_d(int a, int b, int c) { x=a; y=b; z=c; } 
  friend ostream &operator<<(ostream &stream, three_d obj); 
} ; 
 
// Display X, Y, Z coordinates - three_d inserter. 
ostream &operator<<(ostream &stream, three_d obj) 
{ 
  stream << obj.x << ", "; 
  stream << obj.y << ", "; 
  stream << obj.z << "\n"; 
  return stream;  // return the stream 
} 
 
int main() 
{ 
  three_d a(1, 2, 3), b(3, 4, 5), c(5, 6, 7); 
 
  cout << a << b << c; 
 
  return 0; 
}

listing 8
// Get three dimensional values - extractor. 
istream &operator>>(istream &stream, three_d &obj) 
{ 
  cout <<  
    "Enter X Y Z values, separating each with a space: "; 
  stream >> obj.x >> obj.y >> obj.z; 
  return stream; 
}

listing 9
#include <iostream> 
using namespace std; 
 
class three_d { 
  int x, y, z; // 3-d coordinates 
public: 
  three_d(int a, int b, int c) {x=a; y=b; z=c;} 
  friend ostream &operator<<(ostream &stream, three_d obj); 
  friend istream &operator>>(istream &stream, three_d &obj); 
} ; 
 
// Display X, Y, Z coordinates - inserter. 
ostream &operator<<(ostream &stream, three_d obj) 
{ 
  stream << obj.x << ", "; 
  stream << obj.y << ", "; 
  stream << obj.z << "\n"; 
  return stream; // return the stream 
} 
 
// Get three dimensional values - extractor. 
istream &operator>>(istream &stream, three_d &obj) 
{ 
  cout <<  
    "Enter X Y Z values, separating each with a space: "; 
  stream >> obj.x >> obj.y >> obj.z; 
  return stream; 
} 
 
int main() 
{ 
  three_d a(1, 2, 3); 
 
  cout << a; 
  cin >> a; 
  cout << a; 
 
  return 0; 
}

listing 10
stream.setf(ios::showbase);

listing 11
#include <iostream> 
using namespace std; 
 
int main() 
{ 
  cout.setf(ios::showpos); 
  cout.setf(ios::scientific); 
  cout << 123 << " " << 123.23 << " "; 
 
  return 0; 
}

listing 12
cout.setf(ios::scientific | ios::showpos);

listing 13
#include <iostream> 
using namespace std; 
 
void showflags (long f); 
 
int main () 
{ 
  long f; 
 
  f = cout.flags(); 
 
  showflags(f); 
  cout.setf(ios::showpos); 
  cout.setf(ios::scientific); 
 
  f = cout.flags(); 
  showflags(f); 
 
  cout.unsetf(ios::scientific); 
 
  f = cout.flags(); 
  showflags(f); 
 
  return 0; 
} 
 
void showflags(long f) 
{ 
  long i; 
 
  for(i=0x4000; i; i = i >> 1) 
    if(i & f) cout << "1 "; 
    else cout << "0 "; 
 
  cout << "\n"; 
}

listing 14
#include <iostream> 
using namespace std; 
 
int main() 
{ 
  cout.setf(ios::showpos); 
  cout.setf(ios::scientific); 
  cout << 123 << " " << 123.23 << "\n"; 
 
  cout.precision(2); // two digits after decimal point 
  cout.width(10);  // in a field of ten characters 
  cout << 123 << " " << 123.23 << "\n"; 
 
  cout.fill('#');  // fill using # 
  cout.width(10);  // in a field of ten characters 
  cout << 123 << " " << 123.23; 
 
  return 0; 
}

listing 15
#include <iostream> 
#include <iomanip> 
using namespace std; 
 
int main() 
{ 
  cout << setiosflags(ios::fixed); 
  cout << setprecision(2) << 1000.243 << endl; 
  cout << setw(20) << "Hello there."; 
 
  return 0; 
}

listing 16
#include <iostream> 
#include <iomanip> 
using namespace std; 
 
main() 
{ 
  cout << setiosflags(ios::showpos); 
  cout << setiosflags(ios::scientific); 
  cout << 123 << " " << 123.23; 
 
  return 0; 
}

listing 17
#include <iostream> 
using namespace std; 
 
int main() 
{ 
  char s[80]; 
 
  cin >> ws >> s; 
  cout << s; 
}

listing 18
#include <iostream> 
#include <iomanip> 
using namespace std; 
 
ostream &setup(ostream &stream) 
{ 
  stream.setf(ios::left); 
  stream << setw(10) << setfill('$'); 
  return stream; 
} 
 
int main() 
{ 
  cout << 10 << " " << setup << 10; 
 
  return 0; 
}

listing 19
#include <iostream> 
#include <iomanip> 
using namespace std; 
 
istream &prompt(istream &stream) 
{ 
  cin >> hex; 
  cout << "Enter number using hex format: "; 
 
  return stream; 
} 
 
int main() 
{ 
  int i; 
 
  cin >> prompt >> i; 
  cout << i; 
 
  return 0; 
}

listing 20
ifstream in;  // input 
ofstream out; // output 
fstream both; // input and output

listing 21
ofstream out; 
out.open("test", ios::out);

listing 22
out.open("test"); // defaults to output and normal file

listing 23
if(!mystream) { 
  cout << "Cannot open file.\n"; 
  // handle error 
}

listing 24
ifstream mystream("myfile"); // open file for input

listing 25
if(!mystream.is_open()) { 
  cout << "File is not open.\n"; 
  // ...

listing 26
mystream.close();

listing 27
#include <iostream> 
#include <fstream> 
using namespace std; 
 
int main() 
{ 
  ofstream out("test"); 
  if(!out) { 
    cout << "Cannot open file.\n"; 
    return 1; 
    } 
 
  out << 10 << " " << 123.23 << "\n"; 
  out << "This is a short text file.\n"; 
 
  out.close(); 
 
  return 0; 
}

listing 28
#include <iostream> 
#include <fstream> 
using namespace std; 
 
int main() 
{ 
  int i; 
  float f; 
  char str[80]; 
 
  ifstream in("test"); 
  if(!in) { 
    cout << "Cannot open file.\n"; 
    return 1; 
  } 
 
  in >> i; 
  in >> f; 
  in >> str; 
 
  cout << i << " " << f << " " << "\n"; 
  cout << str; 
 
  in.close(); 
  return 0; 
}

listing 29
#include <iostream> 
#include <fstream> 
using namespace std; 
 
int main(int argc, char *argv[]) 
{ 
  char ch; 
 
  if(argc!=2) { 
    cout << "Usage: PR <filename>\n"; 
    return 1; 
  } 
 
  ifstream in(argv[1], ios::in | ios::binary); 
  if(!in) { 
    cout << "Cannot open file.\n"; 
    return 1; 
  } 
 
  while(in) { // in will be null when eof is reached 
    in.get(ch); 
    cout << ch; 
  } 
  in.close(); 
 
  return 0; 
}

listing 30
while(in.get(ch)) 
  cout << ch;

listing 31
#include <iostream> 
#include <fstream> 
using namespace std; 
 
int main() 
{ 
  char *p = "hello there\n\r\xfe\xff"; 
 
  ofstream out("test", ios::out | ios::binary); 
  if(!out) { 
    cout << "Cannot open file.\n"; 
    return 1; 
   } 
 
  while(*p) out.put(*p++); 
  out.close(); 
 
  return 0; 
}

listing 32
#include <iostream> 
#include <fstream> 
using namespace std; 
 
int main() 
{ 
  int n[5] = {1, 2, 3, 4, 5}; 
  register int i; 
 
  ofstream out("test", ios::out | ios::binary); 
  if(!out) { 
    cout << "Cannot open file.\n"; 
    return 1; 
   } 
 
  out.write((char *) &n, sizeof n); 
  out.close(); 
 
  for(i=0; i<5; i++) // clear array 
    n[i] = 0; 
 
  ifstream in("test", ios::in | ios::binary); 
  in.read((char *) &n, sizeof n); 
 
  for(i=0; i<5; i++) // show values read from file 
    cout << n[i] << " "; 
  in.close(); 
 
  return 0; 
}

listing 33
#include <iostream> 
#include <fstream> 
#include <cstdlib> 
using namespace std; 
 
int main(int argc, char *argv[]) 
{ 
  if(argc!=3) { 
    cout << "Usage: CHANGE <filename> <byte>\n"; 
    return 1; 
  } 
 
  fstream out(argv[1], ios::in | ios::out | ios::binary); 
  if(!out) { 
    cout << "Cannot open file.\n"; 
    return 1; 
  } 
 
  out.seekp(atoi(argv[2]), ios::beg); 
 
  out.put('X'); 
  out.close(); 
 
  return 0; 
}

listing 34
#include <iostream> 
#include <fstream> 
#include <cstdlib> 
using namespace std; 
 
int main(int argc, char *argv[]) 
{ 
  char ch; 
 
  if(argc!=3) { 
    cout << "Usage: NAME <filename> <starting location>\n"; 
    return 1; 
  } 
 
  ifstream in(argv[1], ios::in | ios::binary); 
  if(!in) { 
    cout << "Cannot open file.\n"; 
    return 1; 
  } 
 
  in.seekg(atoi(argv[2]), ios::beg); 
 
  while(in.get(ch)) 
    cout << ch; 
 
  in.close(); 
 
  return 0; 
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久超碰97中文字幕| 国内精品写真在线观看| 欧美成人性战久久| 国产精品一级黄| 久久这里只有精品首页| 99国产一区二区三精品乱码| 91丨九色丨尤物| 石原莉奈一区二区三区在线观看| 久久精品亚洲国产奇米99| 在线亚洲一区二区| 狠狠久久亚洲欧美| 亚洲成人av电影在线| 亚洲精品国产精品乱码不99| 国产一区二区三区免费播放| 精品国产乱码久久久久久图片| 午夜a成v人精品| 日韩三级在线观看| 99久久免费国产| 全部av―极品视觉盛宴亚洲| 久久欧美一区二区| 欧美福利电影网| 偷拍自拍另类欧美| 色综合久久久久| 亚洲一区二区三区视频在线播放| 欧美一区二区三区电影| 99re热这里只有精品视频| 蜜桃91丨九色丨蝌蚪91桃色| 亚洲综合色在线| ㊣最新国产の精品bt伙计久久| 日韩天堂在线观看| 精品视频一区三区九区| jizz一区二区| 韩国欧美国产1区| 99精品桃花视频在线观看| 一区二区日韩电影| 欧美综合一区二区| 中文字幕一区二区在线观看| 91看片淫黄大片一级在线观看| 极品美女销魂一区二区三区免费| 亚洲午夜久久久久| 一区二区三区在线不卡| 亚洲乱码中文字幕| 亚洲午夜成aⅴ人片| 一区二区三区美女视频| 亚洲香肠在线观看| 午夜精品福利一区二区蜜股av| 亚洲高清久久久| 欧美aaaaaa午夜精品| 美女脱光内衣内裤视频久久网站 | 日本高清不卡视频| 91啪亚洲精品| 欧美午夜精品久久久久久孕妇| 欧美婷婷六月丁香综合色| 欧美三级韩国三级日本三斤 | 欧美在线观看你懂的| 欧洲亚洲国产日韩| 欧美日韩成人在线| 欧美成人video| 久久九九久久九九| 亚洲人成亚洲人成在线观看图片| 亚洲综合一二区| 日本视频在线一区| 国产精华液一区二区三区| 成人动漫在线一区| 欧美色国产精品| 精品国产精品一区二区夜夜嗨| 久久精品免视看| 亚洲综合一区二区三区| 久久99久国产精品黄毛片色诱| 成人久久视频在线观看| 在线免费观看一区| 精品入口麻豆88视频| 成人免费视频在线观看| 日韩一区精品字幕| 国产盗摄一区二区三区| 在线欧美小视频| www国产精品av| 亚洲激情网站免费观看| 久久99久久精品欧美| 99精品一区二区| 欧美变态tickling挠脚心| 国产精品久久久久久久第一福利| 天天色综合天天| 成人午夜视频网站| 日韩一区二区三区视频| 中文字幕日韩一区二区| 日韩电影一二三区| 91一区在线观看| 欧美电影免费观看高清完整版| 国产精品久久久久久久久图文区 | 日本欧美肥老太交大片| 成人综合在线网站| 欧美一区二区三区四区高清| 中文文精品字幕一区二区| 午夜精品久久久久久久蜜桃app| 国产成人一区二区精品非洲| 欧美剧在线免费观看网站| 综合在线观看色| 国内精品伊人久久久久av影院 | 国产精品自产自拍| 欧美日韩国产a| 亚洲少妇中出一区| 国产精品资源在线| 日韩午夜三级在线| 亚洲一区二区三区国产| a亚洲天堂av| 精品国产91久久久久久久妲己 | 久久亚洲精精品中文字幕早川悠里| 亚洲另类一区二区| 成人在线综合网站| 精品国产髙清在线看国产毛片| 亚洲香肠在线观看| 91免费视频网址| 亚洲国产精品传媒在线观看| 麻豆成人av在线| 在线观看91精品国产麻豆| 一区二区不卡在线播放| 成人精品国产免费网站| 国产视频一区二区在线观看| 狠狠色丁香婷综合久久| 日韩美女一区二区三区| 日日夜夜免费精品| 欧美精品日韩精品| 婷婷综合另类小说色区| 欧美日韩精品福利| 亚洲成av人片在线观看无码| 色欧美片视频在线观看在线视频| 国产精品毛片无遮挡高清| 丰满少妇久久久久久久| 国产日产亚洲精品系列| 国产精品亚洲专一区二区三区| 久久综合色一综合色88| 激情久久久久久久久久久久久久久久| 91麻豆精品久久久久蜜臀| 亚洲不卡在线观看| 在线综合视频播放| 日本系列欧美系列| 欧美mv日韩mv亚洲| 国产乱理伦片在线观看夜一区| 久久久蜜臀国产一区二区| 国产精品一线二线三线精华| 久久久久久久久久久久久夜| 国产精品 欧美精品| 国产精品欧美一级免费| 色综合视频在线观看| 亚洲在线成人精品| 欧美日韩五月天| 美女被吸乳得到大胸91| 久久美女艺术照精彩视频福利播放| 国产一区二区三区四区在线观看| 精品盗摄一区二区三区| 国产精品综合网| 最新中文字幕一区二区三区| 欧美性猛片xxxx免费看久爱| 午夜一区二区三区视频| 日韩美女一区二区三区| 成人黄色777网| 亚洲欧美日韩人成在线播放| 欧美日韩亚洲不卡| 国产一区美女在线| 国产欧美日韩激情| 一本色道久久综合亚洲aⅴ蜜桃 | 亚洲最大成人网4388xx| 欧美乱妇20p| 国产剧情av麻豆香蕉精品| 中文字幕在线不卡| 欧美日韩一级二级| 国产一区999| 伊人一区二区三区| 日韩精品在线网站| www.爱久久.com| 天堂成人国产精品一区| 久久精品视频在线看| 欧美三日本三级三级在线播放| 精品一区二区三区免费| 亚洲欧美中日韩| 制服丝袜av成人在线看| 成人精品gif动图一区| 日日摸夜夜添夜夜添亚洲女人| 国产色产综合色产在线视频| 欧美在线不卡视频| 国产乱妇无码大片在线观看| 亚洲一区二区五区| 久久久久9999亚洲精品| 欧美午夜在线观看| 国产精品乡下勾搭老头1| 夜夜嗨av一区二区三区网页| 久久一二三国产| 精品视频一区 二区 三区| 成人理论电影网| 激情综合亚洲精品| 亚洲成a人片在线不卡一二三区| 欧美国产精品一区| 日韩限制级电影在线观看| 色8久久精品久久久久久蜜| 国产一区二区三区免费| 日本中文一区二区三区| 一区二区三区日韩精品视频| 国产日韩欧美精品在线| 日韩视频免费直播|