i got the barebones of my program down. i need to split it into two functions one that prints the amtrix back into my txt file and the other that reads my input from the txt file.
i got the program running and the outputs do what i want them to. but i want to split them up into functions for later work on structural analysis. easier to copy functions than to try and adapt to your new code right. i have just never done functions with arrays.
here is what i got without trying to implement my function.
#include <cstdlib>
#include <iostream> // User input output to the screen
#include <iomanip>
#include <fstream>
using namespace std;
float matrix[100][2];
int row = 10;
int column = 2;
Next- i tried to implement my print_matrix function.... see new code below.... this one dosnt work it says something about converting float to int in the function.
#include <cstdlib>
#include <iostream> // User input output to the screen
#include <iomanip>
#include <fstream>
using namespace std;
float matrix[100][2];
int row = 10;
int column = 2;
void print_matrix (int matrix[100][2], int row, int column);
int main()
{