|
Post by DB on May 30, 2008 17:33:44 GMT -5
it can be done
|
|
A2J
Starter
Ex-GM
Posts: 2,800
|
Post by A2J on May 30, 2008 17:33:54 GMT -5
That is a rough journey without an ipod
|
|
|
Post by Gossip Girl on May 30, 2008 17:34:25 GMT -5
everyone post at least 35 times in this thread, we will make it.
|
|
Ducky
All-Star
Ex-GM
Posts: 7,215
|
Post by Ducky on May 30, 2008 17:34:26 GMT -5
man does anyone here take programming classes? who takes programming classes? eh me?
|
|
A2J
Starter
Ex-GM
Posts: 2,800
|
Post by A2J on May 30, 2008 17:34:36 GMT -5
I will take a joint and walk to the subway
|
|
|
Post by Gossip Girl on May 30, 2008 17:34:41 GMT -5
dan is so quotable.
|
|
A2J
Starter
Ex-GM
Posts: 2,800
|
Post by A2J on May 30, 2008 17:34:50 GMT -5
And maybe take my PSP - that shit is a wonder for the subway
|
|
Ducky
All-Star
Ex-GM
Posts: 7,215
|
Post by Ducky on May 30, 2008 17:35:07 GMT -5
This is what I got so far...
/* Date: May 30th, 2008 Class: CS 161 Assignment: Assignment 4 Sources: None */
#include <iostream> #include <fstream> #include <iomanip> #include <string>
using namespace std;
int main(){ double fifteen_mins, thirty_mins, fortyfive_mins, sixty_mins, connection_fee, first_minutes_fee, additional_minutes_fee; string city_from, city_to;
ifstream infile; ofstream outfile; infile.open("C:/Users/jauhn/Documents/ims_import_1.encrypted.txt"); outfile.open("C:/Users/jauhn/Documents/ims_import_1.encrypted.txt"); outfile << fixed << showpoint; outfile << setprecision(2); cout << fixed << showpoint; cout << setprecision(2); /* The descriptions of each column had to be seperate from the rest of the output, because our input file never had a row that gave a description of each column */ cout << "City from\t" << "City to\t" << "15 mins\t" << "30 mins\t" << "45 mins\t" << "60mins\n" << endl; while (infile) { /* Initializing variables */ fifteen_mins = 0; thirty_mins = 0; fortyfive_mins = 0; sixty_mins = 0; infile >> city_from >> city_to >> connection_fee >> first_minutes_fee >> additional_minutes_fee;
cout << city_from << " \t" <<city_to << "\t" << fifteen_mins << "\t" << thirty_mins << "\t" << fortyfive_mins << "\t" << sixty_mins << endl; outfile << city_from << " \t" <<city_to << "\t" << fifteen_mins << "\t" << thirty_mins << "\t" << fortyfive_mins << "\t" << sixty_mins << endl; }
system("PAUSE"); return 0; }
|
|
A2J
Starter
Ex-GM
Posts: 2,800
|
Post by A2J on May 30, 2008 17:35:12 GMT -5
I play two games of NBA Live a day and don't even realize I had an hour long commute
|
|
A2J
Starter
Ex-GM
Posts: 2,800
|
Post by A2J on May 30, 2008 17:35:18 GMT -5
Beauty
|
|
A2J
Starter
Ex-GM
Posts: 2,800
|
Post by A2J on May 30, 2008 17:35:30 GMT -5
I dropped 32 with Parker on Team USA today
|
|
|
Post by Gossip Girl on May 30, 2008 17:35:36 GMT -5
who takes programming classes? eh me? I know, I'm just joshin yah. I thought you were done with school though. Also start one of these in UOSL NOWW!
|
|
A2J
Starter
Ex-GM
Posts: 2,800
|
Post by A2J on May 30, 2008 17:35:38 GMT -5
Hinrich is their starting PG
|
|
A2J
Starter
Ex-GM
Posts: 2,800
|
Post by A2J on May 30, 2008 17:35:44 GMT -5
In the game
|
|
Ducky
All-Star
Ex-GM
Posts: 7,215
|
Post by Ducky on May 30, 2008 17:35:49 GMT -5
But the problem is, I gotta now use an array to encrypt the file... I don't know how to read those values to the right 3...
|
|
A2J
Starter
Ex-GM
Posts: 2,800
|
Post by A2J on May 30, 2008 17:35:50 GMT -5
That is fucked
|
|
A2J
Starter
Ex-GM
Posts: 2,800
|
Post by A2J on May 30, 2008 17:36:13 GMT -5
Programming is cool
|
|
|
Post by Gossip Girl on May 30, 2008 17:36:19 GMT -5
I have no idea what you just wrote Ducky.
|
|
Ducky
All-Star
Ex-GM
Posts: 7,215
|
Post by Ducky on May 30, 2008 17:36:19 GMT -5
I know, I'm just joshin yah. I thought you were done with school though. Also start one of these in UOSL NOWW! lol naw, BBS does theirs, then UOSL2 does theirs. Gotta take it one step at a time. I still got 2 weeks of school left...
|
|
A2J
Starter
Ex-GM
Posts: 2,800
|
Post by A2J on May 30, 2008 17:36:35 GMT -5
This is what I got so far... /* Date: May 30th, 2008 Class: CS 161 Assignment: Assignment 4 Sources: None */ #include <iostream> #include <fstream> #include <iomanip> #include <string> using namespace std; int main(){ double fifteen_mins, thirty_mins, fortyfive_mins, sixty_mins, connection_fee, first_minutes_fee, additional_minutes_fee; string city_from, city_to; ifstream infile; ofstream outfile; infile.open("C:/Users/jauhn/Documents/ims_import_1.encrypted.txt"); outfile.open("C:/Users/jauhn/Documents/ims_import_1.encrypted.txt"); outfile << fixed << showpoint; outfile << setprecision(2); cout << fixed << showpoint; cout << setprecision(2); /* The descriptions of each column had to be seperate from the rest of the output, because our input file never had a row that gave a description of each column */ cout << "City from\t" << "City to\t" << "15 mins\t" << "30 mins\t" << "45 mins\t" << "60mins\n" << endl; while (infile) { /* Initializing variables */ fifteen_mins = 0; thirty_mins = 0; fortyfive_mins = 0; sixty_mins = 0; infile >> city_from >> city_to >> connection_fee >> first_minutes_fee >> additional_minutes_fee; cout << city_from << " \t" <<city_to << "\t" << fifteen_mins << "\t" << thirty_mins << "\t" << fortyfive_mins << "\t" << sixty_mins << endl; outfile << city_from << " \t" <<city_to << "\t" << fifteen_mins << "\t" << thirty_mins << "\t" << fortyfive_mins << "\t" << sixty_mins << endl; } system("PAUSE"); return 0; } I like that right there
|
|
Ducky
All-Star
Ex-GM
Posts: 7,215
|
Post by Ducky on May 30, 2008 17:37:00 GMT -5
It's alright. What sucks is if your stuck on one thing, there's nothing you can do about it. IT's really frustrating.
|
|
A2J
Starter
Ex-GM
Posts: 2,800
|
Post by A2J on May 30, 2008 17:37:05 GMT -5
What does that DO Quackers?
|
|
|
Post by Gossip Girl on May 30, 2008 17:37:05 GMT -5
I know, I'm just joshin yah. I thought you were done with school though. Also start one of these in UOSL NOWW! lol naw, BBS does theirs, then UOSL2 does theirs. Gotta take it one step at a time. I still got 2 weeks of school left... You'll be allright
|
|
Ducky
All-Star
Ex-GM
Posts: 7,215
|
Post by Ducky on May 30, 2008 17:37:19 GMT -5
Once I get my Master, I'm gonna create my own FBB and make it the shit.
|
|
A2J
Starter
Ex-GM
Posts: 2,800
|
Post by A2J on May 30, 2008 17:37:40 GMT -5
Make FA more realistic
|
|