Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: programming ...

  1. #11
    MySQL Error MatrixPC's Avatar
    Join Date
    Sep 2003
    Location
    Beach City, Socal
    Posts
    4,053
    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

  2. #12
    Raw Wave hijinks21's Avatar
    Join Date
    May 2002
    Location
    Albany, NY
    Posts
    1,803
    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

  3. #13
    Maximum Bitrate
    Join Date
    Nov 2003
    Location
    Olympia, WA
    Posts
    466
    My first 'code' experience was the classic 'Hello World'

  4. #14
    Variable Bitrate
    Join Date
    Jul 2004
    Location
    Ohio
    Posts
    247
    ^^^ 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).

  5. #15
    Constant Bitrate sagekoala's Avatar
    Join Date
    Aug 2004
    Location
    Des Moines, Iowa
    Posts
    124

    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

  6. #16
    Variable Bitrate
    Join Date
    Jul 2004
    Location
    Ohio
    Posts
    247
    hahaha... I just found my compiler cd!

    brb...

  7. #17
    Variable Bitrate
    Join Date
    Jul 2004
    Location
    Ohio
    Posts
    247
    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.

Page 2 of 2 FirstFirst 12

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •