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

来源:互联网 发布:mac怎么关闭访客 编辑:程序博客网 时间:2024/05/21 03:57


#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");}}


原创粉丝点击