help me how to do a word scrolling like a snake game without hitting any keys.

Recommended Answers

All 3 Replies

In a loop only display a certain section of the string at one time. Like this, where str is std::string with the contents you want to display

for(size_t i = 0; i < str.length()-9; i++)
    {
        cout << '\r' << setw(10) << str.substr(i, 9);
        Sleep(100);
    }

can you give me a compiler like turbo c? i want to become a programmer someday

can you give me a compiler like turbo c? i want to become a programmer someday

I don't have to 'give' you one -- you can download it yourself. Get either Code::Blocks or VC++ 2008 Express. Google for them and you will find the download links.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.