当前位置: 代码迷 >> C语言 >> 你所用的编译器没有缩进功能的进来
  详细解决方案

你所用的编译器没有缩进功能的进来

热度:171   发布时间:2006-08-04 20:59:00.0
哈哈..谢了..可惜你的也没有源程序

俺自己找去吧
----------------解决方案--------------------------------------------------------
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
----------------解决方案--------------------------------------------------------
search baidu

----------------解决方案--------------------------------------------------------
不错,花花绿绿的和VC差不多。

// MainFrm.cpp : implementation of the CMainFrame class
//
#include "stdafx.h"
#include "Season.h"
#include "MainFrm.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMainFrame
IMPLEMENT_DYNCREATE(CMainFrame, CFrameWnd)
BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
//{{AFX_MSG_MAP(CMainFrame)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code !
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
static UINT indicators[] =
{
ID_SEPARATOR, // status line indicator
ID_INDICATOR_CAPS,
ID_INDICATOR_NUM,
ID_INDICATOR_SCRL,
};
/////////////////////////////////////////////////////////////////////////////
// CMainFrame construction/destruction
CMainFrame::CMainFrame()
{
// TODO: add member initialization code here

}
CMainFrame::~CMainFrame()
{
}
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CFrameWnd::OnCreate(lpCreateStruct) == -1)
return -1;

if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
!m_wndToolBar.LoadToolBar(IDR_MAINFRAME))
{
TRACE0("Failed to create toolbar\n");
return -1; // fail to create
}
if (!m_wndStatusBar.Create(this) ||
!m_wndStatusBar.SetIndicators(indicators,
sizeof(indicators)/sizeof(UINT)))
{
TRACE0("Failed to create status bar\n");
return -1; // fail to create
}
// TODO: Delete these three lines if you don't want the toolbar to
// be dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
return 0;
}

[此贴子已经被作者于2006-8-5 10:59:22编辑过]


----------------解决方案--------------------------------------------------------
楼上的,你做什么?
----------------解决方案--------------------------------------------------------
hao dong xi

----------------解决方案--------------------------------------------------------

晕。。。。。。。。。。。。。


----------------解决方案--------------------------------------------------------

标题:你所用的编译器没有缩进功能的进来
按标题进后,原来是:代码着色工具
结论:我相信,任何一款编译器都没有缩进功能;同时我也相信,大部分编辑器都有缩进功能,及代码着色功能,并且一般都支持导出RTF格式。


----------------解决方案--------------------------------------------------------

我还是比较同意楼上的说法的


----------------解决方案--------------------------------------------------------
这是用来在网上贴程序用的,和编译器的机制不同。
----------------解决方案--------------------------------------------------------
  相关解决方案