Monday, May 23, 2011

Hello world in Visual studio of Windows

// Test Project.cpp : Defines the entry point for the console application.
//
E.g 1:
#include "stdafx.h"
#include <stdio.h>

int _tmain(int argc, _TCHAR* argv[])
{
 printf("hello world\n");
 printf("Press Enter to continue: ");
 fflush(stdout);
 while (getchar() != '\n' );
 return 0;
}


E.g 2:
// TrustZoneTest.cpp : Defines the entry point for the console application.
#include "stdafx.h"
#include <process.h>
int _tmain(int argc, _TCHAR* argv[])
{
 double x = 1.1;
 double y = 2.2;
 printf("hello world");
 system("pause");

 return 0;
}

No comments: