Search:

Type: Posts; User: NeedHelpWithC

Search: Search took 0.00 seconds.

  1. Replies
    14
    Views
    1,368

    Thank you for all the help tabstop and brewbuck!!!

    Thank you for all the help tabstop and brewbuck!!!
  2. Replies
    14
    Views
    1,368

    Nope, that wasn't it. I used two nested for...

    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;
  3. Replies
    14
    Views
    1,368

    it didn't lol.

    it didn't lol.
  4. Replies
    14
    Views
    1,368

    Oh okay, I see. It's still giving me weird...

    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.
  5. Replies
    14
    Views
    1,368

    Cool, the file I wrote to did have all the...

    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?
  6. Replies
    14
    Views
    1,368

    Maybe something close to this? #include...

    Maybe something close to this?



    #include <stdio.h>

    int main(void)
    {
    int m;
    int n;
  7. Replies
    14
    Views
    1,368

    Hmm...maybe because I didn't specify what lines...

    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.
  8. Replies
    14
    Views
    1,368

    Help with reading in a file

    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...
  9. Replies
    9
    Views
    2,182

    Thanks for all the help. I was thinking you meant...

    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
  10. Replies
    9
    Views
    2,182

    Thank you for responding :) I have a few...

    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."
    ...
  11. Replies
    9
    Views
    2,182

    Rather Simple Question

    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...
Results 1 to 11 of 11