TenthDoctor's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
New Members
Active Posts:
9 (0.01 per day)
Joined:
04-September 12
Profile Views:
926
Last Active:
User is offline Nov 22 2014 10:42 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Linux
Favorite Browser:
Who Cares
Favorite Processor:
Intel
Favorite Gaming Platform:
XBox
Your Car:
Mazda
Dream Kudos:
0
Icon   TenthDoctor has not set their status

Posts I've Made

  1. In Topic: Trouble with array assignment

    Posted 22 Nov 2014

    Hey Jim,

    Just wanted to follow up on this. I had to put this project aside to focus on my linear algebra class.

    I'm happy to say that paying more attention to what was going on with my array bounds was the key to resolving the issues I was having. I also followed your advice and migrated the weather reading object into a struct. It'll help keep any expansion of the program (adding temp, humidity, etc.) from getting too messy. I also renamed a bunch of my variables to improve the readability of my code. Definitely worth it in the long run.

    Thanks again for the advice and assistance.

    Tim
  2. In Topic: Trouble with array assignment

    Posted 18 Nov 2014

    Heh. Boy do I feel silly. It's probably a bit difficult for the computer to compare those elements to values that don't exist yet. I agree with you on the vectors, since they handle variable amounts of data so well. But the professor wants us to work within the bounds of what's covered in class. I was able to sell him on stringstream but he said that I should try and stick with arrays for this one. He's an old school C programmer so he loves his C-strings and standard libraries.

    Do you think I should just initialize before the max/min loops start? Or would I be better off moving the evaluation to another part of that function or maybe with something from <cmath>?

    Thanks for the prompt response and advice. I forgot how much I enjoy coming to this forum.
  3. In Topic: Trouble with array assignment

    Posted 18 Nov 2014

    File didn't attach. Here's the relevant text I/O

    31.1 31.7 30.6 28.3 31.8 30.1 28.1 28.7 30.1 29.5 29.1 31.4 30.3 28.8 29.8 31.9 31.5 30.7 29.5 29.8 28.9 30.6 28.6 31.5 
    31.7 29 30.3 28.4 31.4 28.7 30.2 30.8 30.4 29.6 29.3 29.3 29.6 29.3 28.1 31.5 28.7 29.4 29.8 28.7 28.2 29.3 30.3 31.4 
    31.4 30.2 31.3 31.8 31.2 28.6 30.3 29.7 30.6 31.4 29.1 29.9 31 29.8 31.4 31.5 31.8 31.8 28.9 29.2 30.8 29.5 28.6 31 
    28 31.3 29.3 28.2 31.3 28.7 30.8 28.6 28.1 29.6 31.3 31.4 30.8 28.1 30.6 31.4 31.3 31.5 28.6 29.3 28.1 28.6 29.8 30.9 
    30.4 30.2 28.6 28 28.2 28.5 30.5 28.6 28 30.5 31.4 30.8 28.3 29.5 31.3 28.1 28.8 31.2 29.3 30.3 31.7 28.3 29.6 31.6 
    29.1 30.8 28 30.5 28.4 31.5 29.4 31.5 28.7 29.6 30 30.4 28.1 29.4 31.5 30 28.6 29.3 31.5 30.1 28.9 30.8 29.4 29.9 
    28.8 31.8 28.7 30.1 30.8 29.3 31.1 30.4 29.5 28.5 29.7 29.7 31.9 30.6 28.7 31.6 29.8 30 29.9 31.8 30.6 29.8 29.8 28 
    29.1 30.1 28.6 28.5 31.4 29.5 31.6 28.6 31.3 31.5 31.8 31.5 28.8 31 31.3 29.4 30.2 31 29.7 29.9 28.1 30.6 30.7 29.8 
    30.6 28.3 29.1 29.6 28.4 30.6 28.8 30.6 30.2 28.2 28.5 31.5 30.3 29.4 30.5 29.7 29 28.6 29.7 29.1 28.2 28.6 29.2 28.5 
    29.6 31.2 28 30.4 30.6 28.4 29.9 29.1 31 30.8 31.6 31 30.4 28.5 28.3 31.3 28.8 30.7 31.9 30.5 28 28.3 31.1 28.3 
    29.2 30.3 31.4 30.7 29 31 30.6 29.5 31.6 29.8 29.4 29.5 30 29.4 30.4 30.4 31.1 29.6 29.5 29 28.5 28.3 31.7 30.3 
    31.3 30.4 31.5 30.1 28.4 29.4 29.2 29.3 30.2 28.7 30.4 29.2 31.1 30.9 30.6 31.4 30.7 28.5 28.3 30.6 30.9 30.6 29.6 28.1 
    28.5 28.5 28.2 30.7 29.2 28.4 30.1 29 28.8 28.1 28.3 29.6 29.1 28.5 28.2 31.9 28.1 30.9 30.7 30.2 28.2 30.7 29.2 31.9 
    30.8 30.3 30.4 28.7 29.3 31.2 31.7 28.6 28.7 28.5 30.2 28.8 30.1 30.5 31.5 30.7 29.3 30.3 28.6 29 31.9 29 30.3 28.8 
    28.4 31.3 28.3 29.7 31.4 30.4 31.9 31 28.8 30.6 31.5 29.5 31.7 31 31.7 29.5 31.8 29.6 29.2 29.8 28.7 31.3 31.9 28.2 
    29.7 28.1 28.4 31.4 31.7 29.2 30.9 30.6 28.8 31.5 30.4 29.3 28 29.3 30.1 29.5 28.6 30.2 29.4 29 29.2 29.4 28.2 31.5 
    30.5 29.2 30.6 29.7 31.5 30.1 28.9 29.4 30 28.8 28.5 29 30.4 31.6 30.7 30.7 29.3 31.6 31.4 31.3 30.8 28.2 30.9 29.7 
    31.1 30.5 31.9 28 30.8 31.9 28.3 29.1 28.9 30.7 29 31.7 30.4 30 28.9 29.7 28.5 30.7 28.1 28.8 31.7 29.7 30.4 30 
    30.6 30.7 29.7 31 30.1 28.5 29.5 29.4 29.9 29.3 30.4 30.5 28.2 29.8 28 31.9 30.9 29.3 29.9 30.9 31.1 30.2 29.5 30.5 
    28.5 29.8 30.4 30.1 30.3 28.3 30.2 30.1 28 30.5 30.1 30 31.5 30.4 28.4 30 29.7 29.7 30.4 28.4 28.8 28.6 29.7 28.7 
    
    


    Day 1:	Minimum reading: -9.25596e+061	Maximum reading: -9.25596e+061
    Day 2:	Minimum reading: -9.25596e+061	Maximum reading: -9.25596e+061
    Day 3:	Minimum reading: -9.25596e+061	Maximum reading: -9.25596e+061
    Day 4:	Minimum reading: -9.25596e+061	Maximum reading: -9.25596e+061
    Day 5:	Minimum reading: -9.25596e+061	Maximum reading: -9.25596e+061
    Day 6:	Minimum reading: -9.25596e+061	Maximum reading: -9.25596e+061
    Day 7:	Minimum reading: -9.25596e+061	Maximum reading: -9.25596e+061
    Day 8:	Minimum reading: -9.25596e+061	Maximum reading: -9.25596e+061
    Day 9:	Minimum reading: -9.25596e+061	Maximum reading: -9.25596e+061
    Day 10:	Minimum reading: -9.25596e+061	Maximum reading: -9.25596e+061
    Day 11:	Minimum reading: -9.25596e+061	Maximum reading: -9.25596e+061
    Day 12:	Minimum reading: -9.25596e+061	Maximum reading: -9.25596e+061
    Day 13:	Minimum reading: -9.25596e+061	Maximum reading: -9.25596e+061
    Day 14:	Minimum reading: -9.25596e+061	Maximum reading: -9.25596e+061
    Day 15:	Minimum reading: -9.25596e+061	Maximum reading: -9.25596e+061
    Day 16:	Minimum reading: -9.25596e+061	Maximum reading: -9.25596e+061
    Day 17:	Minimum reading: -9.25596e+061	Maximum reading: -9.25596e+061
    Day 18:	Minimum reading: -9.25596e+061	Maximum reading: -9.25596e+061
    Day 19:	Minimum reading: -9.25596e+061	Maximum reading: -9.25596e+061
    Day 20:	Minimum reading: -9.25596e+061	Maximum reading: -9.25596e+061
    Overall minimum pressure difference: 0
    Overall maximum pressure difference: 0
    
    

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Location:
Birmingham, AL
Full Name:
Timothy Finnegan
Years Programming:
3
Programming Languages:
Java, C++, Objective-C, Arduino, Javascript, HTML, Python

Contact Information

E-mail:
Private

Friends

Comments

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