[Plain] Description Enter a string 'str' and a substring 's' to count the number of substring 'S. Input There are two rows of input data. The first row is str, and the second row is s. the string length cannot exceed 128. Output Number of output
[Plain] # include Int main (){Int I;Int num;Int a [100];Int count; While (scanf ("% d", & num )! = EOF & num! = 0){Count = 0;For (I = 0; I {Scanf ("% d", & a [I]);} For (I = 0; I {If (a [I]> = 100){Count + = a [I]/100;A [I] = a [I] % 100;}If (a [I]>
Connect to the SAMPLE database and query the FIRSTNAME information of JOHNSON. # Include # include # include # include "util. h "# include exec SQL include sqlca; (1) main () {exec SQL BEGIN DECLARE SECTION; (2) char firstname [13]; char userid [
/* Integer multiplication of large numbers */# include # include # include char * bigmuilty (char * muiltied, int len1, char * muilty, int len2) // muiltied is the multiplier and len1 is the length. Muilty is the multiplier, and len2 is the
1. Develop applications that need to read and write files, and use the single-document view structure for simple input and output.
2. To develop a simple interactive application, you can use a dialog box-based window. CFile can be used for
In many applications, we need to save or read data from the media, which involves file operations. We can use various file access methods to do this,MFC also provides a simple method for reading and writing files-"serialization ". The
User input/The output is basically based on the view, but with some exceptions, it may need to directly act with the framework, and how to transmit data between views in the case of multiple views.
When using the menu, you will find that when
Using a dialog box as a subwindow is a very common technique, which simplifies the interface design and makes it easier to modify.
Simply put, the key to this technology is to create a modeless dialog box and specifyChild style and borderless
We all know that there are two options for developing database programs with VC: ODBC or ADO. ODBC appeared earlier, with many users. ADO is a technology that Microsoft is vigorously supporting and developing. programmers who are committed to
1. How to add database support to programs not supported by the database when creating a database
In the dialog boxDAO-Access is used as an example:
1.1 Use the Class Wizard to create a Class. Name: "mydb", Base Class: "DaoRecordset",
It is undeniable that the development of application software is going through a huge change, which will ultimately increase the productivity of developers and open the door to an application with a new concept.
The new development model is
I. PrefaceOn a dark night in 1995 AD, one of my teachers said to me, "Xiao Yang, I will write programs in the future, just like building blocks. Hurry up and learn some OLE technologies... ". At that time, I thought," Are you kidding me? How do I
The following MFC example program illustrates the functions of Windows Sockets:
CHATTER
CHATTER is a Windows Socket Client sample application. It is a single document interface (SDI) application with a split window that allows users to send
# Include "stdio. h"# Define N 2# Define M 3# Define P 2
Void main (){Int I;Int j;Int k;Int s;Int a [N] [M];Int B [M] [P];Int c [N] [P];
Printf ("Input matrix A [2] [3]:");For (I = 0; I {For (j = 0; j {Scanf ("% d", & a [j]);}}
Printf ("Input matrix
Prototype: extern void * memcpy (void * dest, void * src, unsigned int count); usage: # include function: copy count bytes from the memory area indicated by src to the memory area indicated by dest. Note: the memory areas specified by src and dest
Windows user management functions
Including adding users, deleting users, enumerating users, and obtaining user information
1. Add the User Function NetUserAdd
2. Delete the User Function NetUserDel
3. enumerate user functions NetUserEunm
4. Add a
Comparing the performance of String and StringBuilder, we can find a lot on the Internet, but most of them compare the connection performance of String. The efficiency of String connection String + = is indeed less than that of StringBuilder, you
We often encounter time processing problems, such as developing a schedule function or filtering files based on the modification time. Windows API provides Get * Time () functions to obtain the current Time, but does not provide Time conversion, for
*/# Include Struct date {// define a date StructureInt year; // yearInt month; // monthInt day; // day};Struct student {// define a student structure, where birthday is a date structure, that is, the structure can be nestedChar * name; // nameInt id;
Author: JULY, March 18, 2011Source: http://blog.csdn.net/v_JULY_v----------------------------------
Introduction:To consider a problem,Six Points on the plane, A, B, C, D, E, F. It is assumed that the distance between some points is known,Now, the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service