Hey guyz. It's my task to write a code in C++ which indents a pre-written code.
Can any one here help me writing this ?

Recommended Answers

All 3 Replies

Try using Google to find tools to do this. There are a number of them.

You need to show us some work. Perhaps you should also provide more detailed specs on what you're trying to do. Code indentation can have several variations in the approach one takes - what are your guidelines?

How would you do it on paper? Serious question. Programming begins with thinking. Here is some code:

int main()
{
std::cout << "Hello world";
}

How do you know how to indent that?

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.