不是吧,看看《C++技术内幕》把,第一个例子就是“Hello,world!”,
呵呵。

解决方案 »

  1.   

    sorry,写错了,是VC技术内幕,呵呵。
      

  2.   

    #include <iostream>
    using namespace std;
    void main()
    {
      coun<<"This is my first program"<<endl;
    }
      

  3.   

    #include <windows.h>LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);
    char szAppName[]="Window";int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, 
        LPSTR lpszCmdLine, int nCmdShow)
    {
    HWND hwnd;
    MSG msg;
    WNDCLASS wndclass;
    if (!hPrevInstance)
    {
    wndclass.style = 0; 
    wndclass.lpfnWndProc = (WNDPROC) WndProc; 
    wndclass.cbClsExtra = 0; 
    wndclass.cbWndExtra = 0; 
    wndclass.hInstance = hInstance; 
    wndclass.hIcon = LoadIcon((HINSTANCE) NULL,IDI_APPLICATION); 
    wndclass.hCursor = LoadCursor((HINSTANCE) NULL,IDC_ARROW); 
          wndclass.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH); 
          wndclass.lpszMenuName =  "MainMenu"; 
          wndclass.lpszClassName = "MainWndClass";
          if (!::RegisterClass(&wndclass)) 
          return false;
         }
         
         hwnd=::CreateWindow("MainWndClass", "Sample", 
             WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, 
             CW_USEDEFAULT, CW_USEDEFAULT, (HWND) NULL, 
             (HMENU) NULL, hInstance, (LPVOID) NULL); 
            if(!hwnd)
             return false;
            ::ShowWindow(hwnd, nCmdShow);
            ::UpdateWindow(hwnd);  
            while (::GetMessage(&msg, (HWND) NULL, 0, 0)) 
         { 
             ::TranslateMessage(&msg); 
             ::DispatchMessage(&msg); 
         }
         return msg.wParam; 
    }
      

  4.   

    LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM)
    {
         return DefWindowProc(hwnd,message,wParam,lParam);
    }
      

  5.   

    真要自己动手写一个吗?VC的 MFC 应用程序向导不是很好用吗?
      

  6.   

    求楼主交我写SDK吧我什么也不会 :(