?? sentencecommon.cpp
字號:
#include "stdafx.h"#ifdef _DEBUG#define new DEBUG_NEW#undef THIS_FILEstatic char THIS_FILE[] = __FILE__;#endif
#define STATEMENT_KEYWORD "是"
//是否是陳述句
BOOL IsStatementSentence(CString strSentence)
{
int nIndex = strSentence.Find (STATEMENT_KEYWORD);
if (nIndex < 0)
return FALSE;
return TRUE;
}
//分割陳述句BOOL SpltSentence(CString strSentence,CString& strSubject,CString& strStatement)
{
if (!IsStatementSentence(strSentence))
return FALSE;
int nIndex = strSentence.Find (STATEMENT_KEYWORD);
if (nIndex < 0)
return FALSE;
strSubject = strSentence.Left (nIndex);
strStatement = strSentence.Right (strSentence.GetLength() - nIndex - 2);
return TRUE;
}
BOOL IsQuestionWord(CString strWord)
{
if (strWord.Find ("什么") < 0)
return FALSE;
return TRUE;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -