小编Mar*_*ark的帖子

怎样才能让cout更快?

有没有办法让这个运行更快,仍然做同样的事情?

#include <iostream>

int box[80][20];

void drawbox()
{
    for(int y = 0; y < 20; y++)
    {
        for(int x = 0; x < 80; x++)
        {
            std::cout << char(box[x][y]);
        }
    }
}

int main(int argc, char* argv[])
{
    drawbox();
    return(0);
}
Run Code Online (Sandbox Code Playgroud)

IDE:DEV C++ || 操作系统:Windows

c++ performance cout console-application dev-c++

6
推荐指数
1
解决办法
1782
查看次数

标签 统计

c++ ×1

console-application ×1

cout ×1

dev-c++ ×1

performance ×1