vector<help>

This is a discussion on vector<help> within the C++ Programming forums, part of the General Programming Boards category; i've done stuff like this in the past.. but for some reason dev-cpp doesn't likey Code: struct FiberStruct { TCHAR* ...

  1. #1
    VA National Guard The Brain's Avatar
    Join Date
    May 2004
    Location
    Manassas, VA USA
    Posts
    903

    vector<help>

    i've done stuff like this in the past.. but for some reason dev-cpp doesn't likey


    Code:
    struct FiberStruct
    {
           TCHAR* FiberName;
           TCHAR* BeginningCount;
           TCHAR* EndingCount;
           
    };
    
    
    class Fiber
    {
     public:
         Fiber();
         void EditBoxFileParser(HWND hwnd, HWND hEdit);
         void TubeFiller();
            
     private:
             
         vector<FiberStruct> vFC;
         int iCount, iEntries; 
         WORD iLength, iOffset;        
         TCHAR **LinesOfText;
         TCHAR *Tubes[18];
         PAINTSTRUCT ps;
         RECT rs;
         HDC hdc;  
         
    } Splicer;

    complete code here


    dev-cpp compiler error(s)

    99 F:\Dev-Cpp\cablesplicer.cpp ISO C++ forbids declaration of `vector' with no type

    99 F:\Dev-Cpp\cablesplicer.cpp expected `;' before '<' token
    F:\Dev-Cpp\cablesplicer.cpp In member function `void Fiber::EditBoxFileParser(HWND__*, HWND__*)':

    405 F:\Dev-Cpp\cablesplicer.cpp `Lines' undeclared (first use this function)

    496 F:\Dev-Cpp\cablesplicer.cpp `vFC' undeclared (first use this function)

    496 F:\Dev-Cpp\cablesplicer.cpp At global scope:

    519 F:\Dev-Cpp\cablesplicer.cpp expected constructor, destructor, or type conversion at end of input

    519 F:\Dev-Cpp\cablesplicer.cpp expected `,' or `;' at end of input

    F:\Dev-Cpp\Makefile.win [Build Error] [cablesplicer.o] Error 1
    • "Problem Solving C++, The Object of Programming" -Walter Savitch
    • "Data Structures and Other Objects using C++" -Walter Savitch
    • "Assembly Language for Intel-Based Computers" -Kip Irvine
    • "Programming Windows, 5th edition" -Charles Petzold
    • "Visual C++ MFC Programming by Example" -John E. Swanke
    • "Network Programming Windows" -Jones/Ohlund
    • "Sams Teach Yourself Game Programming in 24 Hours" -Michael Morrison
    • "Mathmatics for 3D Game Programming & Computer Graphics" -Eric Lengyel

  2. #2
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    std::vector ...?
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

  3. #3
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    964
    Yeah don't you need to use namespace::std or somejunk like that? I think you need to be "using" something else

  4. #4
    VA National Guard The Brain's Avatar
    Join Date
    May 2004
    Location
    Manassas, VA USA
    Posts
    903
    oh yeah
    • "Problem Solving C++, The Object of Programming" -Walter Savitch
    • "Data Structures and Other Objects using C++" -Walter Savitch
    • "Assembly Language for Intel-Based Computers" -Kip Irvine
    • "Programming Windows, 5th edition" -Charles Petzold
    • "Visual C++ MFC Programming by Example" -John E. Swanke
    • "Network Programming Windows" -Jones/Ohlund
    • "Sams Teach Yourself Game Programming in 24 Hours" -Michael Morrison
    • "Mathmatics for 3D Game Programming & Computer Graphics" -Eric Lengyel

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21