All pastes #444283 Raw Edit

Stefanos24

public cpp v1 · immutable
·published 2007-04-17 09:18 UTC
rendered paste body
#include <iostream>#include <cstring>using std::cin;using std::cout;using std::endl;struct GameLevel{	int rows;	int columns;	int mines;	char LevelName[20];};void Table(GameLevel T);	// function prototypeint main(){    GameLevel Beginner = {8, 8, 10, "Stefanos"};    Table(Beginner);    cout << "Press any key to continue...";    cin.get();    return 0;}void Table(GameLevel T){	cout << "Row: " << T.rows << endl;	cout << "Column: " << T.columns << endl;	cout << "Mine: " << T.mines << endl;	cout << "LevelName: " << T.LevelName << endl;}