调用一个函数 三个值 一个数输出的字符 另外两个是 行 列数(图)


#include "stdAfx.h"
#include "ctype.h"
#include "stdlib.h"
#include "string.h"
#include "windows.h"

int main()
{
	void lie(char q,int i,int j);

	int i=0,j=0;
	char q;

	printf("Please enter the characters to be printed line column in the middle of the space interval such as ( * 12)1rows and 2 columns of said output.\n:");

	scanf("%c %d %d",&q,&i,&j);
	lie(q,i,j);

	system("pause");
	return 0;
}
void lie(char q,int i,int j)
{
	int a,b,z[100][100];

	for(a=1;a<=i;a++)
	{
		for(b=1;b<=j;b++)
			printf("%c ",q);
		printf("\n");
	}

}


你可能感兴趣的:(c,System,include)