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.
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
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
My first 'code' experience was the classic 'Hello World'
^^^ 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).
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
hahaha... I just found my compiler cd!
brb...
Could you list your variables for me?
It's been a while since I did this, still going through what you gave us...
It says right here:
`void tastes::removeTaste(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >)':
tastes.cpp:62: error: no matching function for call to `
That means you need to go back and check that function.
Bookmarks