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

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? helpme!.doc

?? C語(yǔ)言實(shí)戰(zhàn)105例/王為青, 陳圣亮編著 北京-人民郵電出版社 2007 光盤源碼及可運(yùn)行程序 附注項(xiàng):共匯集了105個(gè)實(shí)例
?? DOC
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
  
              Turbo C++: ANSWERS TO COMMON QUESTIONS 
  
  
 G e t t i n g     S t a r t e d 
 ---------------------------------------------------------------------- 
 Q. How do I install Turbo C++? 
 A. Run the INSTALL program from DISK 1. To start the installation, change 
    your current drive to the one that has the install program on it and 
    type INSTALL. You will be given instructions in a box at the bottom of 
    the screen for each prompt. For example, if you will be installing from 
    drive A:, type: 
  
       A: 
       INSTALL 
  
    At this point, the INSTALL program will appear with menu selections 
    and descriptions to guide you through the installation process. 
  
 Q. How do I run Turbo C++? 
 A. After you have installed Turbo C++, be sure to add the path to 
    the 'BIN' subdirectory of your TC++ installation (e.g., C:\TC\BIN) 
    to your DOS path. Now you can type "TC" at the DOS prompt and from any 
    directory and you're ready to go. 
  
 Q. What is a configuration file? 
 A. A configuration file tells Turbo C++ what options to default to 
    and where to look for its library and header files. TC.EXE looks 
    for a configuration file named TCCONFIG.TC, and TCC.EXE looks for 
    a file named TURBOC.CFG. 
  
 Q. How do I create a configuration file? 
 A. When you run the INSTALL program it creates a configuration 
    file named TURBOC.CFG for TCC.EXE. This file is just an 
    ASCII file, which you can change with any text editor. It 
    contains the path information for the library and header 
    files for TCC.EXE to use. The INSTALL program does not 
    create a TCCONFIG.TC file for TC.EXE because it installs the 
    directory information directly into TC.EXE. You can create a 
    configuration file for the IDE by running TC.EXE, 
    setting your options however you want to set them, and typing 
    Alt-O/S. 
  
 C o m m o n   C + +   Q u e s t i o n s 
 ---------------------------------------------------------- 
  
 Q. When linking C or Assembly language modules with C++ modules I get 
    undefined symbol errors at link time.  It appears that none of the C 
    or Assembly public symbols can be found. 
 A. C++ is a strongly typed language.  In order to support the language 
    to its fullest, Turbo C++ must attach information to the symbols 
    generated for function names and variables.  When this is done, the 
    symbol will no longer match the standard C style function name.  In 
    order to link correctly, the compiler must be notified that the symbol 
    is declared in an external module without type information tacked on 
    to the symbol.  This is done by prototyping the function as type 
    extern "C".   Here is a quick example: 
       extern "C" int normal_c_func( float, int, char );  // name not altered 
       void cplusplus_function( int );  // name altered 
    See related comments under Linker Errors and in the Paradox Engine 
    question in this section.  
  
 Q. Classes with static data members are getting linker errors ("undefined"). 
 A. This code is built into Turbo C++ 1.0 but not in version 3.0. 
    In the 1.0 compiler, static members without definitions were given a 
    default value of 0.  This default definition will no longer be made in the 
    compiler.  The programmer must now give an explicit definition for each 
    static member.  Here is a quick example: 
       class A 
       { 
          static int i; 
       }; 
    A linker error saying that A::i is not defined will result unless the 
    source also contains a line such as: 
       int A::i = 1; 
  
 Q. What potential problems can arise from typecasting a base class pointer 
    into a derived class pointer so that the derived class's member functions 
    can be called? 
 A. Syntactically this is allowable. There is always the possibility of 
    a base pointer actually pointing to a base class. If this is 
    typecast to a derived type, the method being called may not exist 
    in the base class. Therefore, you would be grabbing the address of 
    a function that does not exist. 
  
 Q: What's the difference between the keywords STRUCT and CLASS? 
 A: The members of a STRUCT are PUBLIC by default, while in CLASS, 
    they default to PRIVATE. They are otherwise functionally equivalent. 
  
 Q: I have declared a derived class from a base class, but I can't access any 
    of the base class members with the derived class function. 
 A: Derived classes DO NOT get access to private members of a base class. 
    In order to access members of a base class, the base class members must 
    be declared as either public or protected. If they are public, then 
    any portion of the program can access them. If they are protected, they 
    are accessible by the class members, friends, and any derived classes. 
  
 Q: How can I use the Paradox Engine 1.0 with C++?, 
 A: Because the Paradox Engine functions are all compiled as C functions, 
    you will have to assure that the names of the functions do not get 
    "mangled" by the C++ compiler. To do this you need to prototype the 
    Engine functions as extern "C". In the pxengine.h header file insert 
    the following code at the lines indicated. 
  
       /* inserted at line # 268 */ 
       #ifdef __cplusplus 
       extern "C" { 
       #endif 
  
       /* inserted at line # 732, just before the final #endif */ 
       #ifdef __cplusplus 
       } 
       #endif 
  
    Paradox Engine version 2.0 is "aware" of C++ and thus does not require 
    any modifications to its header file. 
  
 Q: I have a class that is derived from three base classes. Can I insure that 
    one base class constructor will be called before all other constructors? 
 A: If you declare the base class as a virtual base class, its constructor 
    will be called before any non-virtual base class constructors. Otherwise 
    the constructors are called in left-to-right order on the declaration 
    line for the class. 
    
 Q: Are the standard library I/O functions still available for use with 
    the C++ iostreams library? 
 A: Yes, using 
  
       #include <stdio.h> 
  
    functions such as printf() and scanf() will continue to be 
    available. However, using them in conjunction with stream oriented 
    functions can lead to unpredictable behaviour. 
  
 Q. In C++, given two variables of the same name, one local and one global, 
    how do I access the global instance within the local scope? 
 A. Use the scope (::) operator. 
  
       int x = 10; 
       for(int x=0; x < ::x; x++) 
       { 
           cout << "Loop # " << x << "\n"; // This will loop 10 times 
       } 
  
 Q. Will the following two functions be overloaded by the compiler, or 
    will the compiler flag it as an error? Why? 
        void test( int x, double y);  &  int test( int a, double b); 
 A. The compiler will flag this as a redeclaration error because 
    neither return types nor argument names are considered when determining 
    unique signatures for overloading functions. Only number and type 
    of arguments are considered. 
  
 Q. If I pass a character to a function which only accepts an int, 
    what will the compiler do? Will it flag it as an error? 
 A. No. The compiler will promote the char to an int and use the integer 
    representation in the function instead of the character itself. 
  
 Q. I was trying to allocate an array of function pointers using the new 
    operator but I keep getting declaration syntax errors using the following 
    syntax:  new int(*[10])();   What's wrong? 
 A. The new operator is a unary operator and binds first to the int keyword 
    producing the following:  (new int) (*[10])(); 
    You need to put parentheses around the expression to produce the 
    expected results:  new (int (*[10]()); 
  
 Q. What are inline functions? What are their advantages? How are they 
    declared? 
 A. An inline function is a function which gets textually inserted by 
    the compiler, much like macros. The advantage is that execution time 
    is shortened because linker overhead is minimized. They are declared 
    by using the inline keyword when the function is declared: 
  
       inline void func(void) { cout << "printing inline function \n"; } 
  
    or by including the function declaration and code body within a class: 
  
       class test 
       { 
       public: 
       void func(void) { cout << "inline function within a class.\n"} 
       }; 
  
 Q. If I don't specify either public or private sections in a class, 
    what is the default? 
 A. In a class, all members are private by default if neither public nor 
    private sections are declared. 
  
 Q. What does the _seg modifier do? 
 A. Using _seg causes a pointer to become a storage place for a 
    segment value, rather than an offset ( or a segment/offset ). 
    For instance, if "int _seg *x" contains the value 0x40, 
    then when you use "*x", the value pointed to will be at 
    segment 0x40, offset 0. If you add a value to the pointer, 
    the value is multiplied by the size of the pointer type. That 
    new value is used as an offset, and is combined with the segment 
    value contained in the pointer. For instance, 
  
       int _seg *x; 
       int value; 
  
       x = (int _seg *)0x40; 
       value = *(x + 20); 
  
    value is assigned the value of the integer at 0x40:0x28 
    (Remember, 20 * sizeof(int) = 40 = 0x28). 
  
  
 Q. Can I statically allocate more than 64K of data in a single module? 
 A. Yes. Far data items are now supported: 
  
       ... 
       char far array1[60000L]; 
       char far array2[60000L]; 
       ... 
  
    For arrays larger than 64k use: 
  
       char huge array3[100000L]; 
  
 Q. What is a friend member function? 
 A. Declaring a friend gives non-members of a class access to the 
    non-public members of a class. 
  
 Q. Why do I get a "Type name expected" error on my definition of a 
    friend class in my new class? 
 A  You need to let the compiler know that the label you use for your 
    friend class is another class. If you do not want to define your 
    entire class, you can simply have "class xxx", where xxx is your 
    label. 
  
 Q: How can I output hex values in upper case using the iostream libraries? 
 A: You need to set the state of the stream using setf(). For example, 
  
       #include <iostream.h> 
  
       int main(void) 
       { 
          cout << hex; 
          cout << "\nNot upper-case : " << 255; 
          cout.setf(ios::upper-case); 
          cout << "\nUppercase     : " << 255; 
          return 0; 
        } 
  
 Q. What is the "this" pointer? 
 A. "this" is a local variable in the body of a non-static member function. 
    It is a pointer to the object for which the function was invoked. It 
    cannot be used outside of a class member function body. 
  
 Q. Why does a binary member function only accept a single argument? 
 A. The first argument is defined implicitly. 
  
 Q. Looking through the class libraries there are definitions in classes 
    which look like: 
       class test { 
           int funct( void ) const; 
       }; 
    What is the const keyword doing here? 
 A. There is a pointer to the object for which a function is called 
    known as the 'this' pointer.  By default the type of 'this' 
    is  X *const ( a constant pointer).  The const keyword changes the 
    type to const X *const ( a constant pointer to constant data ). 
  
 Q: I want to use _new_handler and set_new_handler. 
 A: Turbo C++ supports _new_handler and set_new_handler. The type of 
    _new_handler is as follows. 
        typedef void (*vfp)(void); 
        vfp _new_handler; 
        vfp set_new_handler( vfp ); 
  
 Q: I would like to use C++ fstreams on a file opened in binary mode, 
    how is this done? 

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区啪啪| 亚洲高清不卡在线| 成人精品国产一区二区4080| 色欧美片视频在线观看| 成人一区在线看| 日韩免费一区二区| 国产精品国产三级国产三级人妇| 91免费视频网址| 免费一区二区视频| 最新中文字幕一区二区三区 | 国产精品免费aⅴ片在线观看| 一本高清dvd不卡在线观看| 人禽交欧美网站| 国产精品无遮挡| 欧美一区二区在线不卡| 99国产精品久久久久久久久久久| 国产在线一区二区| 免费在线观看成人| 喷水一区二区三区| 日韩中文欧美在线| 亚洲成人av一区| 亚洲综合成人在线视频| 亚洲丝袜制服诱惑| 国产精品免费久久久久| 2021中文字幕一区亚洲| 欧美精三区欧美精三区| 一个色综合网站| 蜜桃精品视频在线| 在线亚洲免费视频| 久久精品国产免费看久久精品| 欧美一区日本一区韩国一区| 另类小说一区二区三区| 国产精品久久久久永久免费观看 | 欧美日韩国产一级| 精品国产乱码久久久久久久| 欧美日韩国产一级片| 欧美色视频在线观看| 色av综合在线| 91国偷自产一区二区使用方法| 久久美女高清视频| 欧美色视频一区| 日韩一区国产二区欧美三区| 韩国女主播成人在线| 国产午夜亚洲精品理论片色戒| 日日夜夜精品免费视频| 在线亚洲人成电影网站色www| 日韩专区一卡二卡| 国产一区二区按摩在线观看| 自拍偷拍国产精品| 亚洲欧洲色图综合| 成人免费一区二区三区在线观看| 国产精品美女久久久久久久久久久 | 天堂一区二区在线| 日本亚洲天堂网| 黄色精品一二区| 成人免费三级在线| 欧美专区日韩专区| 欧美一区二区三区成人| 一区二区三区国产| 久久国产精品无码网站| 理论电影国产精品| 粉嫩13p一区二区三区| 9人人澡人人爽人人精品| 欧洲国内综合视频| 日韩一级片网站| 国产欧美精品国产国产专区 | 亚洲色图20p| 亚洲va欧美va人人爽午夜| 麻豆91精品91久久久的内涵| 风流少妇一区二区| 欧洲国内综合视频| 26uuu色噜噜精品一区二区| 最新欧美精品一区二区三区| 午夜精品影院在线观看| 韩国视频一区二区| 色天天综合久久久久综合片| 亚洲视频一区在线观看| 视频一区欧美精品| 国产91丝袜在线播放0| 欧美日韩亚州综合| 久久综合99re88久久爱| 亚洲精品欧美专区| 国产一区二区三区四区五区美女| 91性感美女视频| 久久久久久久久伊人| 免费成人av资源网| 国产精品一区免费视频| 99久久久国产精品| 日韩欧美的一区二区| 亚洲综合色视频| 国产精品资源在线观看| 欧美日韩黄色影视| 一色桃子久久精品亚洲| 美国av一区二区| 欧美午夜影院一区| 国产精品三级av| 卡一卡二国产精品 | 日韩精品中文字幕一区二区三区 | 色播五月激情综合网| 久久久av毛片精品| 日本免费在线视频不卡一不卡二 | 久久综合九色综合97婷婷| 亚洲午夜精品在线| 99精品久久99久久久久| 久久久综合激的五月天| 免费成人美女在线观看.| 欧美三级韩国三级日本一级| 亚洲欧美一区二区在线观看| 国产美女精品人人做人人爽| 欧美精品久久一区| 亚洲国产精品久久久男人的天堂| 国产91精品久久久久久久网曝门 | 成人v精品蜜桃久久一区| 欧美一区二区不卡视频| 亚洲成av人**亚洲成av**| 91免费视频大全| 亚洲视频在线一区观看| 国产成人高清在线| 久久久噜噜噜久噜久久综合| 人妖欧美一区二区| 欧美一区二区三区视频| 亚洲在线一区二区三区| 色久优优欧美色久优优| 亚洲日本在线视频观看| 91网站在线播放| 亚洲欧美日韩一区二区| 99精品久久久久久| 亚洲男人天堂av网| 色天使色偷偷av一区二区| 亚洲免费在线看| 色婷婷国产精品综合在线观看| 亚洲精品一二三区| 在线视频一区二区三区| 亚洲黄色尤物视频| 色综合色综合色综合| 久久婷婷国产综合国色天香| 不卡一区二区三区四区| 日韩国产精品大片| 一区二区三区波多野结衣在线观看 | 中文字幕一区二区三区av| 国产精品资源网| 久久综合久色欧美综合狠狠| 国产高清不卡一区二区| 国产欧美日韩综合| 99国内精品久久| 亚洲激情第一区| 69堂亚洲精品首页| 久久99久久99小草精品免视看| 久久婷婷久久一区二区三区| 成人网在线播放| 亚洲精品欧美二区三区中文字幕| 欧美日韩一区二区不卡| 免费欧美日韩国产三级电影| 精品999在线播放| 国产不卡视频在线观看| 一区二区三区四区国产精品| 欧美日韩免费不卡视频一区二区三区| 日韩电影免费一区| 久久久99免费| 色婷婷激情综合| 久久成人免费网| 国产精品美女久久久久av爽李琼| 91啦中文在线观看| 日韩国产在线观看一区| 久久亚洲精品小早川怜子| av成人动漫在线观看| 亚洲va国产天堂va久久en| 久久亚洲春色中文字幕久久久| 成人av电影在线观看| 日韩精品欧美成人高清一区二区| 精品国产成人系列| 日韩三级电影网址| 在线成人高清不卡| 日韩精品一区二| 欧美性一二三区| 久久成人麻豆午夜电影| 国产精品国产馆在线真实露脸| 欧美在线视频不卡| 国产麻豆视频一区| 一区二区三区在线免费观看| 欧美成人性战久久| 99久久精品久久久久久清纯| 日本sm残虐另类| 亚洲欧洲精品天堂一级 | 午夜av电影一区| 中文字幕久久午夜不卡| 欧美精品丝袜中出| 97aⅴ精品视频一二三区| 国内外成人在线| 亚洲成av人片一区二区梦乃| 欧美国产日韩亚洲一区| 日韩欧美专区在线| 欧美性生活影院| 成人激情免费视频| 久久99精品网久久| 日日摸夜夜添夜夜添国产精品 | 欧美大肚乱孕交hd孕妇| 91成人在线精品| 成人免费视频免费观看| 色婷婷香蕉在线一区二区|