这是一个程序打印一个方形的side =整数由一个字符组成。 对于例如:如果输入的字符输出为#: 但是它不读取用户输入,并且因此也未能将其打印在正方形。 请参见下面的代码: //printing of square of any character problem 5.20
#include<stdio.h>
int main(void)
{
int i, h;
我想让我的程序使用带有getchar的命令行参数来编码消息。我的问题是,getchar只关注程序执行后输入的内容。我怎样才能让它读取命令行参数呢? #include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
int pin, charin, charout;
// this veri