tmarr80's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
New Members
Active Posts:
5 (0.01 per day)
Joined:
20-November 12
Profile Views:
170
Last Active:
User is offline Dec 05 2012 11:00 AM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   tmarr80 has not set their status

Posts I've Made

  1. In Topic: Magic Square Program

    Posted 5 Dec 2012

    That worked! Thanks psyking!
  2. In Topic: Magic Square Program

    Posted 4 Dec 2012

    So I guess my question would be then; how do I sum up the different columns/rows/diagonals? I know it has to be the one for loop with sum=sum+grid[][], that much is correct, but I don't understand how to create variability in the summation.

    Do I need to do something like this for each function...

    grid[i][j] for one of the loops
    grid[j][i] for another
    grid[i][i] for another
    grid[j][j] for another?

    am I on the right track?
  3. In Topic: Putting .txt file into single int array

    Posted 20 Nov 2012

    The program looks like this

    [program]
    Unsorted data:
    003BF8C8

    Sorted data:
    003BF8C8
    [/program]


    when the data in the in.txt file is as follows:

    [data]
    122 45 345 35 65 45 678 54 34 72
    345 87 234 878 7 456 234 32 1 46
    34 567 3 199 61 318 415 2 678 43
    4 657 46 66 687 54 435 65 59 219
    62 76 543 5 47 89 37 65 47 68
    52 234 619 54 52 34 467 67 9 65
    56 119 67 554 6 18 68 40 56 47
    32 547 26 71 194 34 42 8 98 90
    26 16 7 37 356 73 26 45 62 236
    61 36 43 45 87 49 237 532 17 38
    [/data]

    and I'm trying to sort it from least to greatest. it does save the random string of numbers, so atleast I know the print_data function works. I just need to know how to put the in.txt file into the array A[]

    I forgot to mention that the random string of numbers/letters I get for an output is always different and random. I don't really understand it. I'm relatively new to C++.

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

tmarr80 hasn't added any friends yet.

Comments

tmarr80 has no profile comments yet. Why not say hello?