Search:

Type: Posts; User: dantegl36

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    4,630

    Gracias!

    Gracias!
  2. Replies
    2
    Views
    4,630

    switch case question

    Got a question. Can the switch-case statement be used with characters(char) inputs?
    code:




    switch (choice)
    {
    case ('A'||'a'):
    break;
  3. Replies
    11
    Views
    2,157

    You guys are the absolute it! Thanks a million!...

    You guys are the absolute it! Thanks a million! Final code that worked like a charm:



    int main()
    {

    int i, j, x, y, m[100], n, z;
    FILE *infpt;
    int b[MAX][MAX];
  4. Replies
    11
    Views
    2,157

    Thanks again for the prompt replies. Ok I changed...

    Thanks again for the prompt replies. Ok I changed things around some things around again:


    int main()
    {

    int i, j, x, y;
    FILE *infpt;
  5. Replies
    11
    Views
    2,157

    malloc I assume means memory allocation right?...

    malloc I assume means memory allocation right? the stdlib.h library is new to me and never taught so all of the functions from it are new to me. Might there be another way of doing this? Sorry.
  6. Replies
    11
    Views
    2,157

    Thanks for the fast reply. No go on that display...

    Thanks for the fast reply. No go on that display is on the last printf line is:
    [2 3] = 0.000000

    I'm reading trough old thread and trying different things as we speak. Thanks for posting back so...
  7. Replies
    11
    Views
    2,157

    reading a file into an array

    I working on this problem and it's beginning to drive me crazy. I need to read from a data file the first line of the file are the dimensions of the array:
    2 3
    1 2 3
    4 5 6

    the second and third...
Results 1 to 7 of 7