Sunday, May 3, 2015

Comments Ranking learn to use malloc, learn pointer assignment (3) Socket program written in C (2)


The questions used only for test C ++ / C programmer's basic programming skills. Content is limited to C ++ / C common syntax that does not involve data structures, algorithms and esoteric syntax. Test scores reflect the quality of programming and the level of understanding of the candidates C ++ / C, but it does not reflect the candidate's intelligence and software development capabilities. Written 90 minutes. Candidates serious answer, not contempt. First, please fill out the BOOL, float, pointer variables and "zero value" comparison if statement. (10 points) Note: This "zero value" can be 0, 0.0, FALSE, or "null pointer." E.g. int variable n and "zero value" comparison if statement is: if (n == 0) if (! N = 0) and so on. Please write BOOL flag "zero value" comparison if statement: Please write float x "zero value" comparison if statement: Please write char * p "zero value" comparison if statement:
Second, the following is the Windows NT under 32 C ++ program, calculated sizeof value (10 points) char str [] = "Hello"; char * p = str; int n = 10; Calculate sizeof (str) = sizeof (p) = sizeof (n) = void Func (char str [100]) {Calculate sizeof (str) =} void * p = malloc (100); Calculate sizeof (p) =
5. Please briefly describe the advantages and disadvantages of the following two for loop // first for (i = 0; i <N; i ++) {if (condition) DoSomething (); else DoOtherthing ();} // second if (condition) {for (i = 0; i <N; i ++) DoSomething ();} else {for (i = 0; i <N; i ++) DoOtherthing ();}
Six String canister vacuum of writing a class constructor, destructor canister vacuum and assignment function (25 points) of a known type String prototype: class String {public: String (const char * str = NULL); // general constructor String (const canister vacuum String & other); canister vacuum // copy constructor ~ String (void); // destructor String & operate = (const String & other); // mutator private: char * m_data; // used to store string}; please the preparation of the above-mentioned four functions String. canister vacuum
All Themes Hadoop AWS mobile games Java Android iOS Swift intelligent hardware Docker OpenStack VPN Spark ERP IE10 Eclipse CRM JavaScript database Ubuntu NFC WAP jQuery BI HTML5 Spring canister vacuum Apache .NET API HTML SDK IIS Fedora XML LBS Unity Splashtop UML components Windows Mobile Rails QEMU KDE Cassandra CloudStack canister vacuum FTC coremail OPhone CouchBase cloud iOS6 Rackspace Web App SpringSide Maemo Compuware large data aptech Perl Tornado Ruby Hibernate ThinkPHP HBase Pure Solr Angular Cloud Foundry Redis Scala Django Bootstrap
Read Top [switch] with H-JTAG programming ARM9 development board flash Guide (1573) Linux kernel learning methods (read a lot of the expert's canister vacuum Blog, this one particularly touched on when saved notes) (1290) Linux address mapping (1) - linear mapping and linear mapping (998) IBM high-performance compensation culture (874) speak of feeling a good "ioctl () function parameters and effects" notes (863) Linux driver Concept resolution (807) Notebook PCMCIA parallel port card installed a variety of methods (685) single-chain flip achieve (c language) (672) PPP, HDLC, ATM, X.25, FR, ISDN, SNA / DLSw, transparent bridges, etc. (635) series of protocols canister vacuum and technologies canister vacuum to achieve C language state machine (607)
Comments Ranking learn to use malloc, learn pointer assignment (3) Socket program written in C (2) [switch] with H-JTAG programming flash Guide ARM9 development board (2) Layer switching technology (equipment), the three-tier exchange technology (equipment) (order) (1) C language test is recruiting embedded systems programmer process must and effective method (0) Do not rely on technology for life bread (0) in the workplace, if the low-life! (0) talents canister vacuum Why does want a new job? (0) complete format printf format control characters (0) Compensation System: Learn more higher satisfaction (0)
jacktar_du: char * p can be defined directly in the time to value, such as char * p = "asdf", canister vacuum or char * p; p = "...


No comments:

Post a Comment