This is what I have for finding the minor. I think I could make it more condense to run faster but don't know what to do really. My program works with this function, but I'm just wondering what I can...
Type: Posts; User: JHaney
This is what I have for finding the minor. I think I could make it more condense to run faster but don't know what to do really. My program works with this function, but I'm just wondering what I can...
Alright I'm stuck again. I now have to find the minor of a 4x4 matrix.
Thanks J. Yours is what I'm looking for. thanks
I need to read in a user input matrix in the following format:
Please enter a 4x4 matrix one row at a time.
Row 1: 1 3 -1 0
Row 2: 2 4 1 0
Row 3: 3 2 -2 2
Write a function that returns the number of permutations of the n objects taken k at a time.
The function is int permute(int n; int k).
Example:
Consider the set of digits 1,2,3, the...
Here is what I ended up with. It does all of the correct things that are supposed to happen with the code that the teacher wanted it to output. It does in between values but if I put in say -4 or -2...
I went back to the if (!tunnel.eof()) because I was not able to get a while statement reading the range. I'm going to talk to other people in my class tomorrow and see if I can figure something out.
I've tried different ........ and can't seem to get anything working. I'm really frustrated and I don't know what to do. Thanks for trying to help.
Ok sorry to keep bothering you, but I'm not sure how to store the data file in an array. It is supposed to be a two-dimensional array right? I worked on it and had range[0][-1] and range [16][-1] for...
I get what you are saying but I can't figure out how to read the data file into an array with out using the for loops. Aren't the for loops required for arrays? How would I store it a different way?...
This code returns my range of points.
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
Ok I'm really having trouble. I don't know what to do. It keeps returning -2 for my range instead of -4.
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
Ok I have a program due on Monday. Just seeing if yall can help me out. I have tried different code but cant get the program to do everything its supposed to do.
Here's the assignment:
...
Thanks for the replies. Now I'm wondering how to get one letter at a time from the data file and how to store it. I can use the stuff yall have posted so thanks for that.
I know how to open the file and I know how to output a data file but I'm not sure how to read from the file. I know I need to use get() I think but I'm not sure how to get char array set up to read...
I've got write a program that reads a data file which contains a paragraph. I need to take each letter and convert it to two letters higher. So a-->c d-->f and y-->{. The spaces must not be changed....