I think this is overloading a function but it's the part that confuses me the most.
I have a map that I want pieces to show up in and obviously needs to redraw each iteration.
I've read my book (no examples) and did some research online but found no explanation of how it works or how to put it to code.
It's tetris and I setup all the shapes as functions so I could call them randomly. Also I don't need to do colors or show a window with the next shape.
When I run the program it shows my game board and then below obviously it shows my straight line. I want it so the straight line shows inside the game board.
There are a lot of problems with your code, which I think you should address before you figure out how to have the "straight line [show] inside the game board".
You have constint ROWS = 35; and constint COLUMNS = 25; on lines 10 and 11, so why don't you use them? The only time you use them is to set the number of elements for the board array. You should be using them in your for loops in the beginningMap() function. Additionally, as you have it now, lines 18 and 24 will attempt to access memory that doesn't belong to the array.
Finally, because your shape functions are too hard to read, I'll just say this:
Can you explain to me how any of the shape functions actually affect the game board?
Its Tetris. Those shapes are supposed to appear randomly and you rotate them to fill in the bottom line as more shapes appear. So the game board is there and the shapes appear inside the game board.
What I meant to hint at, was that the shapes don't affect the game board at all. Each shape function declares, populates and then prints the contents of a 4x4 character array, but they are totally unrelated to the game board. The fact that the straightline() function call on line 206 prints under the game board should have tipped you off.
That is why I was seeking help. Don't mean to be snarky but for the board I am going to change the numbers to match the game board array so that they appear in the middle top of the game board. The problem I am trying to figure out is how to overlay them on the game board once it's been drawn.