Sponsored links

Go Back   MP3Car.com > General > Off Topic


Reply
 
Share Thread Tools Display Modes
Old 10-27-2004, 02:44 PM   #1
Constant Bitrate
 
sagekoala's Avatar
 
Join Date: Aug 2004
Location: Des Moines, Iowa
Posts: 124
sagekoala is on a distinguished road
programming ...

who wants to do my programming while i watch futurama? http://www.cs.iastate.edu/~cs227/Assign/hw8/hw8.html
__________________
don't worry i know i usually don't make much sense
sagekoala is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 10-27-2004, 02:48 PM   #2
Super Moderator
 
hijinks21's Avatar
 
Join Date: May 2002
Location: Albany, NY
Posts: 1,802
hijinks21 is on a distinguished road
i do!
__________________
'98 Explorer Sport
http://mp3car.zcentric.com (down atm)
AMD 800mhz 192megs RAM 60gig hard drive 9 inch widescreen VGA
80% done
hijinks21 is offline   Reply With Quote
Old 10-27-2004, 03:01 PM   #3
Variable Bitrate
 
Join Date: Jul 2004
Location: Ohio
Posts: 247
LowMileLude is on a distinguished road
Sounds like fun... but I don't have my compiler anymore.
LowMileLude is offline   Reply With Quote
Old 10-27-2004, 03:37 PM   #4
Constant Bitrate
 
sagekoala's Avatar
 
Join Date: Aug 2004
Location: Des Moines, Iowa
Posts: 124
sagekoala is on a distinguished road
i know!!

Quote: Originally Posted by LowMileLude
Sounds like fun... but I don't have my compiler anymore.



you can still write it, just trace everything each time you change something! i need to start a contest ... every week we will see who can come up with the best solution to that weeks problem ... and the winner gets ... a golf ball or a stick of gum!
__________________
don't worry i know i usually don't make much sense
sagekoala is offline   Reply With Quote
Old 10-27-2004, 03:43 PM   #5
Super Moderator
 
hijinks21's Avatar
 
Join Date: May 2002
Location: Albany, NY
Posts: 1,802
hijinks21 is on a distinguished road
heh.. i remember my old CS days.. out of 120 going in freshman year.. i graduated with 6 the freshman year CS courses about 10 people did the work and the others just copied

Its no wonder why all programming jobs are getting outsourced

g/l with your homework.. that wasn't meant to say you are looking for an easy way out.. just an observation on the laziness that is americans
__________________
'98 Explorer Sport
http://mp3car.zcentric.com (down atm)
AMD 800mhz 192megs RAM 60gig hard drive 9 inch widescreen VGA
80% done
hijinks21 is offline   Reply With Quote
Old 10-27-2004, 04:03 PM   #6
Constant Bitrate
 
sagekoala's Avatar
 
Join Date: Aug 2004
Location: Des Moines, Iowa
Posts: 124
sagekoala is on a distinguished road
yeah i don't live on campus (about 35 miles away actually) so i don't really get in on the copying. ... whats worse is that i should even have to take the course ... i got a 5 on both the compsci A and AB advanced placement tests but because they switched the tests over to java they won't transfer in the credit ... oh well
__________________
don't worry i know i usually don't make much sense
sagekoala is offline   Reply With Quote
Old 10-27-2004, 06:52 PM   #7
Low Bitrate
 
Join Date: Aug 2003
Location: Michigan
Posts: 99
Nav_Attack is on a distinguished road
oh how i miss those introductory computer science classes.

if i remember right all of our tests were open book.
__________________
VIA EPIA 533 MHz
256 MB RAM
7" Lilliput VGA Touchscreen
20 gig HD
Media Engine 2.1.4
GPS - Earthmate/SA2004
802.11b Connectivity
Nav_Attack is offline   Reply With Quote
Old 10-27-2004, 10:47 PM   #8
Constant Bitrate
 
sagekoala's Avatar
 
Join Date: Aug 2004
Location: Des Moines, Iowa
Posts: 124
sagekoala is on a distinguished road
lol wtf?

all of our tests are pencil and paper, closed book, closed friend, and they pretty much have us write a program similar to that of the assigments. you can take all the time in the world ... they provide all the paper in the world for tracing. overall you always come out of the test feeling like you have been assraped because you know that they dock 10% for **** like an off by one error.

p.s. it just occured to me ... WHY THE **** DIDN'T I TEST OUT?
__________________
don't worry i know i usually don't make much sense
sagekoala is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 10-28-2004, 01:23 AM   #9
Maximum Bitrate
 
smashr2k's Avatar
 
Join Date: Jun 2000
Location: Virginia
Posts: 569
smashr2k
they dont seem to care how long it takes to execute, so just use a two dimensional vector. to find a syn for a word, iterate through the first dimension of the vector. the synanyms will be contained in a list in the second dimension. if you get to the end there is no synanym. to add a synanym for a word, first check to see if you have the word in the first dimension, if you do add it to the end of that words list. if you do not resize the vector and add it to the bottom.

if it had to be fast or large, i would reccomend using a hash table.
__________________
Car: 1999 Dark Green Mustang GT Coupe
Audio: Alpine HU, JL 6ch Amp, JL Stealthbox and XR series components.
Player: Empeg for now; something custom later.
www.neotechpc.com - Custom built laptops!
smashr2k is offline   Reply With Quote
Old 10-28-2004, 11:20 AM   #10
Variable Bitrate
 
Join Date: Jul 2004
Location: Ohio
Posts: 247
LowMileLude is on a distinguished road
Quote: Originally Posted by sagekoala
you can still write it, just trace everything each time you change something! i need to start a contest ... every week we will see who can come up with the best solution to that weeks problem ... and the winner gets ... a golf ball or a stick of gum!

Yeah, I used to write code in notepad then email/copy/paste to compiler when I got home or to school. Real easy for C, not so easy for my Fortran compiler though (did all that on paper).

As for cheating/copying... it was hard doing it. Our Prof. required us to make all our own unique variable names and notate each important line with what we are doing and why.

I did rewrite major parts of my roomate's 77/90 code when we had the class together. He wasn't understanding the logic. I pretty much wrote two completely different codes, that made the same solution (mine and his). It might take 8 days to write it the first time but after that... might only take ~4 hours (since you already know the expected flow/outcome). I still think the Prof knew what I had done. But since it was so completely different and had my roomate's variable names and notations (made him make a list of variables then go through and read the sections and notate accordingly) he couldn't do anything other than let me help answer questions during lab time.

Last edited by LowMileLude; 10-28-2004 at 11:27 AM.
LowMileLude is offline   Reply With Quote
Old 10-28-2004, 12:44 PM   #11
MySQL Error
 
MatrixPC's Avatar
 
Join Date: Sep 2003
Location: Beach City, Socal
Posts: 4,042
MatrixPC is on a distinguished road
Oh boy, Anyone remember punch card? The day that 5.25 in floppy worth more than gold?
Well I am not that old but that what available to 3rd world country in the 80s/90s. You must be a billionair to own a 286 pc.
__________________
2004 Matrix XR A7N8X-VM/400 AMD XP-M 2500+, DS-ATX
89 Supra Turbo P3 600E@750/Abit BE6 II, Alpine M-BUS Car2PC.
Y2K Accord Dell GX150
RoadRunner is the best FE PERIOD
EmoRebellion is a SCAMMER
MatrixPC is offline   Reply With Quote
Old 10-28-2004, 12:58 PM   #12
Super Moderator
 
hijinks21's Avatar
 
Join Date: May 2002
Location: Albany, NY
Posts: 1,802
hijinks21 is on a distinguished road
i remember programming my first game in basic when i was 12.

It was a fighting game where each character had attributes and the computer would simulate a fight.
__________________
'98 Explorer Sport
http://mp3car.zcentric.com (down atm)
AMD 800mhz 192megs RAM 60gig hard drive 9 inch widescreen VGA
80% done
hijinks21 is offline   Reply With Quote
Old 10-28-2004, 02:12 PM   #13
Maximum Bitrate
 
Join Date: Nov 2003
Location: Olympia, WA
Posts: 466
gambit32 is on a distinguished road
My first 'code' experience was the classic 'Hello World'
gambit32 is offline   Reply With Quote
Old 10-28-2004, 02:43 PM   #14
Variable Bitrate
 
Join Date: Jul 2004
Location: Ohio
Posts: 247
LowMileLude is on a distinguished road
^^^ Yeh. That's programmer tradition. I did that in Fortran and C+

It allows you how output will work. Either on screen or on paper. It also allows you to test all kinds of other stuff (indents, spacing, etc).
LowMileLude is offline   Reply With Quote
Old 11-02-2004, 11:12 PM   #15
Constant Bitrate
 
sagekoala's Avatar
 
Join Date: Aug 2004
Location: Des Moines, Iowa
Posts: 124
sagekoala is on a distinguished road
what the **** is wrong?

okay i have a question about this weeks assignment and this is the best congegation of programers i know of.

flavour.erase(2);

is being a pain in the *** to me. flavour is a vector and i just need to erase a single value from the vector. here is my code

void tastes::removeTaste(string newTaste)
{
done=0;
count=0;
while (count < flavour.size() || done!=1)
{
if (flavour[count]==newTaste)
{
flavour.erase(2);
amount.erase(2);
done=1;
}
count++;
}
}

i pretty much get this any time i try to call erase (all other vector member functions work properly.

tastes.cpp: In member function `void
tastes::removeTaste(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >)':
tastes.cpp:62: error: no matching function for call to `
std::vector<std::string, std::allocator<std::string> >::erase(int)'
/usr/include/c++/3.3.3/bits/vector.tcc:105: error: candidates are:
__gnu_cxx::__normal_iterator<_Tp*, std::vector<_Tp, _Alloc> >
std::vector<_Tp, _Alloc>::erase(__gnu_cxx::__normal_iterator<_Tp*,
std::vector<_Tp, _Alloc> >) [with _Tp = std::string, _Alloc =
std::allocator<std::string>]
/usr/include/c++/3.3.3/bits/vector.tcc:117: error:
__gnu_cxx::__normal_iterator<_Tp*, std::vector<_Tp, _Alloc> >
std::vector<_Tp, _Alloc>::erase(__gnu_cxx::__normal_iterator<_Tp*,
std::vector<_Tp, _Alloc> >, __gnu_cxx::__normal_iterator<_Tp*,
std::vector<_Tp, _Alloc> >) [with _Tp = std::string, _Alloc =
std::allocator<std::string>]
__________________
don't worry i know i usually don't make much sense
sagekoala is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Reply

Bookmarks

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wanting to learn some programming, help me pick a language! RS3RS Software & Software Development 32 10-15-2004 05:38 PM
C++: GUI Programming with >NET Framework [iG] Software & Software Development 3 05-24-2004 07:57 PM
Programming IrMan in ME RaZor Media Engine 3 03-29-2004 03:49 AM
batch file programming LCD's mosh LCD/Display 6 05-19-2002 01:55 AM
Need to start somewhere with Hardware programming 168db Software & Software Development 7 01-11-2002 09:35 AM



All times are GMT -5. The time now is 07:05 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics