Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 21st, 2005, 2:58 PM   #1
JamesLomuscio
Newbie
 
Join Date: Feb 2005
Posts: 8
Rep Power: 0 JamesLomuscio is on a distinguished road
Weather Prediction Project Seeks Help!

To all who know C++,

Im working on a prog that will be able to predict the weather, its too complicated to go into here, but I do need some help.

I need to grab all of the information in the file currdat.lst that is in quotes and store them in variables. Sounds simple enough, right? This area of my prog. is complete garbage, so I wont bother to post it.

For anyone interested in helping, the next line is line one of currdat.lst
[header]
programm_name = "heavy weather"
programm_version = "Ver. 2.0 beta release"
file_name = "currdat.lst"
file_format_version = "ver. 1.0"

[time]
start = 3315854779
start_date_string = "Thu Jan 27 17:46:19 2005"
last_actualisation = 3315855694
last_actualisation_date_string = "Thu Jan 27 18:01:34 2005"
next_actualisation = 3315855754
next_actualisation_date_string = "Thu Jan 27 18:02:34 2005"

[weather_picture]
comment = "-1=not valid, 0=rain, 1=cloud, 2=sun"
number = 1

[weather_tendency]
comment_1 = "-1=not valid, 0=no change of air pressure"
comment_2 = " 1=air pressure rising, 2=air pressure falling"
number = 0

[indoor_temperature]
deg_C = "20.2"
deg_F = "68.3"

[outdoor_temperature]
deg_C = "-15.8"
deg_F = "3.5"

[indoor_humidity]
percent = "43"

[outdoor_humidity]
percent = "19"

[dewpoint]
deg_C = "OFL"
deg_F = "OFL"

[windchill]
deg_C = "-15.8"
deg_F = "3.5"

[wind_speed]
mps = "0.0"
kmh = "0.0"
mph = "0.0"
knt = "0.0"
bft = " 0"

[wind_direction]
deg = "22.5"
name = "NNE"

[rain_total]
mm = "0.0"
inch = "0.00"

[rain_24h]
mm = "0.0"
inch = "0.00"

[rain_1h]
mm = "0.0"
inch = "0.00"

[pressure_absolute]
hpa = "1017.5"
inHg = "30.04"

[pressure_relative]
hpa = "2748.1"
inHg = "81.15"

[storm_alarm]
comment = "-1=not valid, 0=storm alarm not activ, 1=storm alarm activ"
number = 0
JamesLomuscio is offline   Reply With Quote
Old Feb 21st, 2005, 3:02 PM   #2
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 5 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
Since i'm a professional programmer with little time i would have to charge for something this intensive. My rate for something like this would be $100. If you're interested contact me through PM on this forum or Aol Istant Messenger at AFTempest01.
__________________

tempest is offline   Reply With Quote
Old Feb 21st, 2005, 3:09 PM   #3
JamesLomuscio
Newbie
 
Join Date: Feb 2005
Posts: 8
Rep Power: 0 JamesLomuscio is on a distinguished road
No thanks storm, this isnt the thing I'd be willing to pay for.
JamesLomuscio is offline   Reply With Quote
Old Feb 21st, 2005, 4:59 PM   #4
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
This type of file is called an INI file.

Google is your friend.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Feb 21st, 2005, 9:33 PM   #5
JamesLomuscio
Newbie
 
Join Date: Feb 2005
Posts: 8
Rep Power: 0 JamesLomuscio is on a distinguished road
I FEEL LIKE AN IDIOT! YOUR'E RIGHT! How did I not see that...
JamesLomuscio is offline   Reply With Quote
Old Feb 21st, 2005, 9:58 PM   #6
JamesLomuscio
Newbie
 
Join Date: Feb 2005
Posts: 8
Rep Power: 0 JamesLomuscio is on a distinguished road
Umm... can you help me with .INI data mining?
JamesLomuscio is offline   Reply With Quote
Old Feb 22nd, 2005, 9:03 AM   #7
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
So, i still don't understand why you double posted the same question in two different threads.

Once again, google for some answers, write some code and post it here and we might help you.
__________________
Profanity is the one language that all programmers understand.

Check out my Blog <---updated Nov 30 2007!
Pizentios is offline   Reply With Quote
Old Feb 22nd, 2005, 9:15 AM   #8
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
#include <iostream>
#include <fstream>
#include <string>

...
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:54 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC