DescriptionnnThe FBI is conducting a surveillance of a known criminal hideout which serves as a communication center for a number of men and women of nefarious intent. Using sophisticated decryption software and good old fashion wiretaps, they are able to decode any e-mail messages leaving the site. However, before any arrest warrants can be served, they must match actual <em>name</em>s with the user ID's on the messages. While these criminals are evil, they're not stupid, so they use random strings of letters for ntheir ID's (no dillingerj ID's found here). The FBI knows that each criminal uses only one ID. The only other information they have which will help them is a log of <em>name</em>s of the people who enter and leave the hideout. In many cases, this is enough to link the <em>name</em>s to the ID's.nInputnnInput consists of one problem instance. The first line contains a single positive integer n indicating the number of criminals using the hideout. The maximum value for n will be 20. The next line contains the n user ID's, separated by single spaces. Next will be the log entries in chronological order. Each entry in the log has the form type arg , where type is either E, L or M: E indicates that criminal arg has entered the hideout; L indicates criminal arg has left the hideout; M indicates a message was intercepted from user ID arg. A line containing only the letter Q indicates the end of the log. Note that not all user ID's may be present in the log but each criminal <em>name</em> will be guaranteed to be in the log at least once. At the start of the log, the hideout is presumed to be empty. All <em>name</em>s and user ID's consist of only lowercase letters and have length at most 20. Note: The line containing only the user ID's may contain more than 80 characters.nOutputnnOutput consists of n lines, each containing a list of criminal <em>name</em>s and their corresponding user ID's, if known. The list should be sorted in alphabetical order by the criminal <em>name</em>s. Each line has the form <em>name</em>:userid , where <em>name</em> is the criminal's <em>name</em> and userid is either their user ID or the string ??? if their user ID could not be determined from the surveillance log.nSample Inputnn7 nbigman mangler sinbad fatman bigcheese frenchie capodicapo nE mugsy nE knuckles nM bigman nM mangler nL mugsy nE clyde nE bonnie nM bigman nM fatman nM frenchie nL clyde nM fatman nE ugati nM sinbad nE moriarty nE booth nQ nSample Outputnnbonnie:fatmannbooth:???nclyde:frenchienknuckles:bigmannmoriarty:???nmugsy:manglernugati:sinbad
我想把一个数组（source）复制到另外两个数组（target1，target2)里面去，并检查复制的结果，rn第一个数组使用正常数组的方式，rn第二个想用函数传递而且指针的方式，但在调试的时候调用函数似乎有问题，不知道哪里不妥，rn求教！！！rn调用函数处还有一个小问题rn[code=C/C++]rn rn/* Note:Your choice is C IDE */rn#include rnvoid trans(int ar,int arr,int n);rnint main(void)rnrn int n;rn int source=1,2,3,4,5,target1,target2;rn for(n=0;n,n,target1[n]);rn rn trans(source,target2,5);rn return 0;rn rn rn rnrnvoid trans(int ar,int arr,int n)rnrn int a;rn int *p1=ar;rn int *p2=arr;rn for(a=0;a
这个问题原本打算在php邮件列表里发布的，不知道为什么发不出去，所以没有写成中文，能不能请大家帮我看一下我的安装哪里出问题了？rnrnI'm trying to build a apache2+PHP5 environment in windows xp, the apache path is default (c:\windows\programe files) and PHP is "c:\PHP"rnI completely followed the installation guide as following steps:rn1) install apache2 to the default path and make sure it work fine.rn2) to include PHP module and set php.ini path, in httpd-conf I add 3 contents:rn LoadModule php5_module "c:/php/php5apache2.dll"rn AddType application/x-httpd-php .phprn PHPIniDir "c:/php"rn3) unzip the PHP package to C:\PHP.rn4) make php.ini in "c:\php" from php.ini-recommendedrn5) to make php5ts.dll be found, add path"c:\php" to windows path.rnrnthen I changed apache's document root path to "d:\websrv" and make a http file, the browser can display the page correcly. then I make a php file with contents and open this page, but the page displayed nothing. I can't find <em>what</em> is the problem for <em>my</em> installation. would you help me to find it out?
下面是我新做的一个用VB编的测试用的控件的原代码， 其编译、运行时都没有显示任何问题，但当我将其运行之后，在其缺省状态下，即IE浏览器条件下打印该图形时，却显示出如下错误，rnrun-time error '6'rnoverflowrnUserControl.CurrentX = (UserControl.ScaleWidth - UserControl.TextWidth(该行代码在 paint事件中） rn请各位高手给予指导！rnrnrnrn************************************************************************rnConst m_def_Title = "test"rnDim m_Title As StringrnrnDim plotdata() As Doublern'Event Declarations:rnrnrnrnrn'WARNING! DO NOT REMOVE OR MODIFY THE FOLLOWING COMMENTED LINES!rn'MemberInfo=13,0,0,testrnPublic Property Get Title() As Stringrn Title = m_TitlernEnd PropertyrnrnPublic Property Let Title(ByVal New_Title As String)rn m_Title = New_Titlern PropertyChanged "Title"rnEnd Propertyrnrn'Initialize Properties for User ControlrnPrivate Sub UserControl_InitProperties()rn m_Title = m_def_Titlern rn rnEnd SubrnrnPrivate Sub UserControl_Paint()rn rnDim i As IntegerrnDim j As IntegerrnrnUserControl.CurrentY = 200rnUserControl.CurrentX = (UserControl.ScaleWidth - UserControl.TextWidth(m_Title)) / 2rn'print TitlernUserControl.Print m_Titlern' darw a linernUserControl.Line -(ScaleWidth / 2, 1000)rnrnrnEnd Subrnrn'Load property values from storagernPrivate Sub UserControl_ReadProperties(PropBag As PropertyBag)rnrn m_Title = PropBag.ReadProperty("Title", m_def_Title)rnEnd SubrnrnPrivate Sub UserControl_Resize()rn Dim i As Integerrn Dim j As Integerrnrn UserControl.CurrentY = 200rn UserControl.CurrentX = (UserControl.ScaleWidth - UserControl.TextWidth(m_Title)) / 2rn 'print Titlern UserControl.Print m_Titlern ' darw a linern UserControl.Line -(ScaleWidth / 2, 1000)rnEnd Subrnrn'Write property values to storagernPrivate Sub UserControl_WriteProperties(PropBag As PropertyBag)rnrn Call PropBag.WriteProperty("Title", m_Title, m_def_Title)rnEnd Subrn'rnrnrn
I'm freshman.Thanks!rnrn$ vi <em>my</em>env.crn#include rnint main(void)rnrnchar *<em>my</em>envvar=getenvl("EDITOR");rnprintf("The editor environment is set to %s\n",<em>my</em>envvar);rnrn$gcc <em>my</em>env.c -o <em>my</em>envrn$export EDITOR
I just have finished configuring the sound drive of VIA AC97,and I successed.But in the final step,it display the following message:rnrnWARNING!!!The mixer channels for the ALSA driver are muted by default!!!rn*************************************************************************rnYou would use some ALSA or OSS mixer to set the appropriate volume.rnrnWhat's mean??And <em>what</em> should I do???rn(Sorry everyone,I'm using Linux to write this message beyond any Chinese environment,I just can use English)
I do just like this,but......rnrn[root@localhost root]# mount -t vfat -oiocharset=cp936 /dev/hda1 /mnt/win_crnmount: /dev/hda1 already mounted or /mnt/win_c busyrnmount: according to mtab, /dev/hda1 is mounted on /rnrnI do not why!rnwho can tell me the problem!rnthanks first!
select tSubCate.*,tIGroup.NameEN as INameEN,tIGroup.NameCN as INameCN from tSubCate,tIGroup where tSubCate.FatherId=tIGroup.FatherId order by tIGroup.FatherId asc,tSubCate.CategoryId asc LIMIT 0,30 rnrn java.sql.SQLException: General error: Got error 28 from table handlerrnrn
新开的版面，而且是新的技术。难免大家有一些疑惑，有些在vc delphi版面的经典问题都会在这里提出来。"python能做出类似windows xxx的界面么?""它和c/c++,java,delphi比如何？",由于Zope的与web开发的裙带关系，大家也许会问"python 开发网站效果如何？”"python能不能做出类似于xxx的网页效果" ‘与asp,php jsp比较起来那个更好？"这些问题虽然会增加python版面的访问量，但是这些问题对python版面的发展都是没有多大益处的。因此对这些问题我做一个比较简单的回答，希望大家能够在将来的python版面中多多讨论实际的技术问题而不要讨论这些无聊的山海经。rn Python和Java,C/C++等没有可比性。Python也并非用来专门作网站的。web仅仅是它的一个小小的应用领域。在国外Python的应用领域很多集中在计算机科学方面，如人工智能，高性能数值计算，图像处理等等。 中使用的3d处理系统全部都是用python搭建的。最近NASA正在用python开发一套卫星和鹰眼预警机之间的信号控制接受系统。当然他们的python是用Ada从新写过的。当然在我们熟悉的领域，也有很多好的东西。如redhat的安装和管理程序。yahoo page的服务器端程序，yahoo mail等等。就是zope本身的优势和强项也并非在web开发上而是他经典的面向对象的数据库引擎，在windows xp的下个版本long horn也借鉴了zope的这个优点将原来ntfs文件系统用sql server的存储系统代替称为storge Plus。rn 如果把python仅仅局限于web开发那就真是检了芝麻丢了西瓜了。rn 就像一本python的教科书的名字 一样。诸君，如果你们进入python的世界的动机是仅仅期望学习另外一门网站开发语言的话，你们可能会很失望的。 rn如果以后有人问你What is the Python?你可以这样简单的回答他:“That's a Language leading u to the world of computer sicence."rn
Managed Providers rnServer Enumeration rnrnrnProvides support for enumerating active instances of Microsoft SQL Server 2000 and later. For more information, see Enumerating Instances of SQL Server. rnAsynchronous Processing rnrnrnAllows you to perform asynchronous database operations using an API that is modeled after the asynchronous model used by the .NET Framework. For more information, see Asynchronous Operations with ADO.NET. rnMultiple Active Result Sets (MARS) rnrnrnAllows an application to have more than one SqlDataReader open on a connection when each instance of SQLDataReader is started from a separate command. For more information, see Using Multiple Active Result Sets (MARS). rnBulk Copy Operations rnrnrnEnables you to perform fast bulk inserts using the .NET Data Provider for SQL Server. For more information, see Performing Bulk Copy Operations. rnNew SQL Server Max Data Types rnrnrnProvides support for varchar(max), nvarchar(max), varbinary(max), and xml data types in SQL Server 2005. For more information, see Working with Large Value Types rnSQL Server User-defined Types rnrnrnProvides support for user-defined data types (UDTs) in SQL Server 2005. For more information, see Creating and Using User-Defined Types. rnSQL Server Notifications rnrnrnAllows .NET Framework applications to send a command to SQL Server and request that a notification be generated if executing the same command would produce result sets different from those initially retrieved. For more information, see Using Notifications with the .NET Framework Data Provider for SQL Server. rnTransactions with SQL Server Snapshot Isolation rnrnrnProvides support for snapshot isolation, a SQL Server 2005 mechanism designed to reduce blocking in OLTP applications. For more information, see Snapshot Isolation in the .NET Framework Data Provider for SQL Server. rnDatabase Mirroring in SQL Server 2005rnrnrnProvides support for database mirroring in SQL Server 2005 with new connection string syntax for specifying a failover partner server. For more information, see Database Mirroring Support in the .NET Framework Data Provider for SQL Server. rnSQLXML 3.0 in SQL Server 2005rnrnrnSQL Server 2005 exposes the functionality of SQLXML 3.0 inside the Microsoft .NET Framework. Developers can write applications that access XML data from an instance of Microsoft SQL Server and process the data in the .NET Framework environment, sending updates back to SQL Server. For more information, see Working with SQLXML in ADO.NET. rnProvider StatisticsrnrnrnProvides support for retrieving runtime statistics in SQL Server 2005. Currently 21 different counters are available from the .NET Provider for SQL Server. For more information, see SQL Server Provider Statistics. rnChange password in SQL Server 2005rnrnrnAllows .NET Framework applications to change password of a user account without requiring administrator intervention. rn Disconnected Classes rnBatch Processing rnrnrnEnhances application performance by reducing the number of round-trips to the database when applying updates from the DataSet. For more information, see Performing Batch Operations Using DataAdapters. rnDataSet EnhancementsrnrnrnThe new DataTableReader presents the contents of a DataSet or a DataTable in the form of one or more read-only, forward-only resultsets. For more information, see Creating and Using the DataTableReader. rn Provider Independent APIs rn.NET Data Provider Enumeration rnrnrnProvides support for enumerating installed data providers. For more information, see Enumerating Installed Data Providers. rnProvider Independent APIrnrnrnEnhancements to the Common Model provide access through a single API to databases across multiple providers. For more information, see Writing Provider Independent Code with ADO.NET. rnSchema DiscoveryrnrnrnThe schema discovery API allows applications to request managed providers to find and return information about the database schema of the database a given connection is connected to. Different database schema elements such as tables, columns and stored-procedures are exposed through this API. Documentation not available in this beta version.
rn> A line from linux source is:rn>rn> movl $1f, %1 /*Save EIP*/rn>rn> May anyone explain me how this instruction savesrn> EIP? (%1 is the structure member holding eip). Myrn> doubt is, <em>what</em> is this $1f and how it copies eip torn> %1.rnrn
Windows Forms is the new platform for Microsoft Windows application development, based on the .NET Framework. This framework provides a clear, object-oriented, extensible set of classes that enable you to develop rich Windows applications. Additionally, Windows Forms can act as the local user interface in a multi-tier distributed solution.rnrnWhat is a Form?rnA form is a bit of screen real estate, usually rectangular, that you can use to present information to the user and to accept input from the user. Forms can be standard windows, multiple document interface (MDI) windows, dialog boxes, or display surfaces for graphical routines. The easiest way to define the user interface for a form is to place controls on its surface. Forms are objects that expose properties which define their appearance, methods which define their behavior, and events which define their interaction with the user. By setting the properties of the form and writing code to respond to its events, you customize the object to meet the requirements of your application. rnrnAs with all objects in the .NET Framework, forms are instances of classes. The framework also allows you to inherit from existing forms to add functionality or modify existing behavior. When you add a form , you can choose whether it inherits from the Form class provided by the framework, or from a form you've previously created.rnrnThe form is the primary vehicle for user interaction. By combining different sets of controls and writing code, you can elicit information from the user and respond to it, work with existing stores of data, and query and write back to the file system and registry on the user's local computer.rn
please tell me <em>what</em> difference between the following statments about operator overload.rnostream& operator << (ostream& os, const ClassName& cl)....//use constrnostream& operator << (ostream& os, ClassName& cl)....//no const, just &
#include rn#include rn#include rn#include rnrnstruct stachrnrnprivate:rn int size;rn int quatity;rn int next;rn unsigned char* storage;rn void inflate(const int increase); // if there have't more space ,to add more space by mealloc()rnrnpublic:rn stach(const int Size=0); // constructorrn ~stach(); // destreuctorrn const int add(const void *element); // add a elementrn void* fetch(const int index)const; // read a elementrn const int count()const; // count how many the elements do it havern;rnrnstach::stach(const int Size) // constructorrnrn size = Size;rn quatity = next = 0;rn storage = (unsigned char*)malloc(sizeof(char));rnrn rnstach::~stach() // destrouctorrnrn if (storage)rn free(storage);rnrnrnconst int stach::add(const void* element) // add a elementrnrn if ( next >= quatity )rn inflate(100);rn memcpy(&(storage[next*size]),element,size);rn next++;rn return (next-1);rnrnrnvoid* stach::fetch(const int index)const // read a elementrnrn if ( index >= next || index < 0 )rn return 0;rn return &(storage[index*size]);rnrnrnconst int stach::count()const // count the elementrnrn return next;rnrnrnvoid stach::inflate(const int increase) // if there have't more space ,to add more space by realloc()rnrn void *v = (unsigned char*)realloc(storage,(quatity+increase)*size);rn assert(v);rn quatity += increase;rnrnrnmain()rnrn stach intStach(sizeof(int));rn for (int i=0;i<10;i++)rn intStach.add(&i);rn rn for (int i=0;i
When I browse some website, such as www.sina.com.cn, with Mozilla, a new window always be opened during a certain time, but I have done nothing. I can't understand, why? thank you!rnBy the way, I can't input chinese in Linux, so...
还请高手指点江山rn#if define STRICTrntypedef signed long LONG;rn#elsern#define LONG longrnrn#define LOBYTE(w) ((BYTE)(w))rn#define HIBYTE(w) ((BYTE)((UINT)(w)>>8))rnrn#define LOWORD(l) ((WORD)(l))rn#define HIWORD(l) ((WORD)((UINT)(l)>>16))rnrn(code in windows.h)rn
I am using 2003 Server English Edition and create a PDC,3 PCs have join in the domain.When I am going to create the BDC,it says can't communicate with the AD controller,and check the dns or the bios..... rnI can't describe that very well.rn How can I do?
DescriptionnnAs an un<em>name</em>d space agency endured the ridicule following their now-infamous metric/English unit conversion, they made a vow to never let that error happen again. Unfortunately, they over-hired poor college students with excellent metric/English unit conversion skills but not calculus skills. In fact, nobody at this agency can now remember how to calculate the derivative of a polynomial, let alone evaluate the derivative of a polynomial for a given value of x. nnAs any good government agency would do in this case, they've decided to outsource the task...to you. And not only do they want you to do the work, they want you to show how you did each step of your calculation so that they might re-learn the skill. nnInputnnInput to this problem will begin with a line containing a single integer n indicating the number of input polynomials. Each of the following n lines contain: na value of x at which the first derivative of the polynomial is to be evaluated; nand the polynomial.nAll polynomials are expressed in terms of x, with single-digit integer coefficients (positive or negative) and non-negative single-digit integer powers of x. Polynomials do not contain spaces. Coefficients and powers of 1 (and powers of 0) are omitted from the notation, as is any "+" sign that might apply to the leading term. The leading term has the highest order, and is followed by the one (if any) with the next-highest order and so on. nnOutputnnFor each polynomial in the input, output the following lines: nThe string "POLYNOMIAL N" where N is 1 for the first polynomial, 2 for the second, etc.; nThe polynomial, exactly as in the input; nThe first derivative of the polynomial from line 2; nThe polynomial in line 3 with x replaced by its value in parenthesis (e.g., if x is 6, "2x^3" becomes "2(6)^3"); nThe polynomial in step 4 with each term fully evaluated; nand the resulting integer, which is equivalent to f'(x) evaluated at the given value of x.nnSample Inputnn3n5 2x^7+x^2+3x-9n0 -5x^7+x^3+1n-3 5nnSample OutputnnPOLYNOMIAL 1n2x^7+x^2+3x-9n14x^6+2x+3n14(5)^6+2(5)+3n218750+10+3n218763nPOLYNOMIAL 2n-5x^7+x^3+1n-35x^6+3x^2n-35(0)^6+3(0)^2n0+0n0nPOLYNOMIAL 3n5n0n0n0n0
I developed a program, which read some information from configuration files. such like database connection string.rnbut when i deploy it to another machine. I found it did not work. the error is obvious related to the configuration file.It cound't be read. the target machine is a laptop, using frech as default language. I think it may be caused by unicode. the string in config file cann't be read by the application.rnWhy this happened? and how to solve this problem?rnrnthanks
IBM Rational 的产品更新。
1：CCRC advances toward ClearCase Common Client
2：New, modern and scalable CM Server
for CCRC and CQ Web
3：Java-based, WAN-friendly API
4：Administrative simplification through
ClearCase MultiSite Monitoring
5：Consolidated Install Technology
vc will creat DllMain() auto.rnhowever, I comment it .rnand, all Ok!rnrnwhy??rnrnrn<em>my</em> code as following :rnrnMydll.cpprnrnrn// <em>my</em>dll.cpp : Defines the entry point for the DLL application.rn#include "stdafx.h"rnextern "C"rn_declspec(dllexport) int ShowMsg(int i,int j )rn rn return(i+j); rnrnrn/*rnBOOL APIENTRY DllMain( HANDLE hModule, rn DWORD ul_reason_for_call, rn LPVOID lpReservedrn )rnrn rn return TRUE;rnrn*/rnrn