Thank you for all the help tabstop and brewbuck!!!
Type: Posts; User: NeedHelpWithC
Thank you for all the help tabstop and brewbuck!!!
Nope, that wasn't it. I used two nested for loops. One for scanning in the number and the next one to print them.
It looks like this now.
#include <stdio.h>
int main(void)
{
int m;
it didn't lol.
Oh okay, I see. It's still giving me weird numbers. Did I write the array part right? ("&array[m][n]")
I feel like that's wrong.
Cool, the file I wrote to did have all the numbers :D So what exactly does this mean? I can just trust that my program reads all the numbers but I cant expect it to print all 1000 numbers?
Maybe something close to this?
#include <stdio.h>
int main(void)
{
int m;
int n;
Hmm...maybe because I didn't specify what lines of data I wanted? I'm not sure how many numbers it read but it's definitely from the end of the file. I'd say maybe the last 200-300 numbers.
Can anyone help me with a code that reads numbers from a file and puts them into a 2-D Array?
Basically the file has 1000 rows and 2 columns.
For example, a section would look like:
47 56...
Thanks for all the help. I was thinking you meant to put width, but I just started c programming and wanted to make sure.
Thanks again
Thank you for responding :) I have a few questions though.
Wouldn't the two lines with column walls be pointless?
"If it's less, it's a column wall.
If it isn't less, it's a column wall."
...
I'm new here and it seems like this is exactly the place I need for help. I have this assignment having to do with the infamous "hollow rectangle". I've searched this forum and read my text book and...