please can anyone tell me that i want to create a rectangular spiral in c++. (I use borland c++)
u can show the picture

don't know what's the difference between borland c++ and the visual studio c++.

So look at your diagram, and work out the sequence of 2 2 3 3 4 4 etc.

Well, there is not quite any big difference b/w them.
You can give me any type of coding but in c++,
Then, i'll be very grateful to you.

This is a pretty easy assignment.

void main(int args) {
    cout >> "xxxxxxx\nx     x\nx xxx x\nx x   x\nx xxxxx\nx      \nxxxxxxx\n";
}
commented: I like it. (Its not what he wanted, but I like it anyway.) +3
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.