// project01.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
/*
扫雷的练习
*/
#include <stdio.h>
/*#include <stdlib.h>
#include <time.h>
int g_nTet=32;
int g_nT2=11;
void Test()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d+%d=%d\n",a,b,(a+b));
}
*/
//c语言输入输出
void test01()
{
putchar(99);
putchar('A'+5);
putc(100,stdout);//putc(100,stdout)==putchar(100);
putchar('\n');
}
void test02()
{
//FILE *pf=fopen("c:/1.txt","w");
FILE *pf=stdout;
putc(100,pf);//putc的功能包含了putchar,可以选择输出流
fclose(pf);
}
//printf scanf
void test03()
{
//F10 单步执行
int i=-108;
printf("十进制&#
VC++6.0下C语言的输入输出
最新推荐文章于 2023-03-15 22:24:42 发布