VC 提供的 "hello, world!\n"

0 views
Skip to first unread message

sjgau02

unread,
Jun 16, 2007, 3:02:50 AM6/16/07
to NTU_Ctrain
// VC0256.cpp : 定義主控台應用程式的進入點。
//

#include "stdafx.h"
#include <conio.h>

// F7: compile + link
// F5: run program

int _tmain(int argc, _TCHAR* argv[])
{
printf("hello, world! at 03:03\n");
_getch();

return 0;
}

sjgau02

unread,
Jun 22, 2007, 12:36:20 AM6/22/07
to NTU_Ctrain
以下是 Visual C++ 6.0 所提供的,比較清爽

// VC1223.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"

int main(int argc, char* argv[])
{
printf("Hello World! at 1237\n");
return 0;
}


sjgau02

unread,
Jun 22, 2007, 12:37:53 AM6/22/07
to NTU_Ctrain
這是 VC++ 2005 Express 所提供的

> }- 隱藏被引用文字 -
>
> - 顯示被引用文字 -

Reply all
Reply to author
Forward
0 new messages