actually i'm kind of lost. i have an idea to copy the first element in the vector and compare it to the rest, if they are equal pop_back(), else continue and so on, but i dont know where to start
glowskull03
Posts
-
Vectors -
VectorsWhat is a good algorith for removing duplicates from a sorted vector alex
-
Visual Studio 6.0 bugi'm writing a header file and i have the following code: public: ... private: T arr[]; // when i compile it tells me that it is an illegal zero-sized array what i dont understand is that i works fine on a linux compiler, so what does zero-sized array mean alex
-
graphics program helpdoes anyone know how to create a polygon for a graphics program on visual studio, i'm having problem figuring out the algorith, i know that i'm suppose to use vectors but i'm kind of lost. plus i have to ask the user to input the points of the polygon, any ideas glowskull
-
Visual Studio questioni'm a beginner and i have to write a program that contains buttons that draw a square and a circle and a clear button but i cant use a GUI application, any ideas on how to approach this. i have no idea how to create a button alp
-
Visual Studio 6.0 C++ help!Does anyone know how to compile GUI programs in Visual Studio using wxWindows, i've tried everything but i cant get anything to compile, it wont recognize the header files. Does anyone have a solution? j pena
-
C++ Helpi'm trying to design a program that prompts the user for an integer adn then prints out all prime numbers up to that integer. i'm a beginner and i'm kind of stumped can anyone help j pena