c语言,给一个数n.用斜杠和反斜杠输出边长为n的菱形图案

日期:2016-03-08 17:36:31 人气:1

c语言,给一个数n.用斜杠和反斜杠输出边长为n的菱形图案

// 我是用 php 做的 一个类,题主 可以自行改成C class mmt { function test() { // 宽度,可以自行获取 $width = 15; for($height = 0; $height < $width * 2; ++$height) { if($height < $width) { if(($height + 1) % $width > 0) { $this->print_space($wid
    A+
热门评论