Search:

Type: Posts; User: MK27

Search: Search took 0.57 seconds.

  1. Replies
    19
    Views
    2,010

    It doesn't matter that much, as long as you are...

    It doesn't matter that much, as long as you are sure which way you are suppose to go.

    I don't know much about math, can you do this on paper? As for this bit:



    That means smatrix will...
  2. Replies
    19
    Views
    2,010

    Barney S. doesn't like the term "c/c++" :p If...

    Barney S. doesn't like the term "c/c++" :p If you are supposed to be using C++, you have mostly been using vanilla C so far. If that matters you will want to use an fstream instead of cstdio to...
  3. Replies
    19
    Views
    2,010

    Okay, so probably 64 bytes is enough for the...

    Okay, so probably 64 bytes is enough for the line, so the next bit starts:



    while (fgets(line,64,input_1)) cout << line;
  4. Replies
    19
    Views
    2,010

    That does not happen automatically. Using C++,...

    That does not happen automatically. Using C++, you could do that with an ifstream and getline().

    getline - C++ Reference

    Or you could use fopen and fgets from <cstdio>

    fgets - C++...
  5. Replies
    19
    Views
    2,010

    The first thing you need to do is read the data...

    The first thing you need to do is read the data from the file.

    What is the purpose of:


    char line[?];
Results 1 to 5 of 5