Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
~2K People Reached
Favorite Forums
Favorite Tags
Member Avatar for fragtech

I am trying to delete an element in my vector but my program crashes after each run. The vector is loaded with integers. [CODE] vector<int> vec(30); vec.erase(vec.begin() + 5); [/CODE] Is this the proper way to delete from a vector?

Member Avatar for mike_2000_17
0
61
Member Avatar for fragtech

My program generates a list of random or pseudo random numbers between a certain range specified by the user through the console. My problem is when the user, or in this case myself, tries to generate a random number list specified by entering true(1) in the console the output is …

Member Avatar for WaltP
0
172
Member Avatar for fragtech

Hey guys I have been having lots of problems getting my animation to not flicker. I have read that double buffering is a good way to stop the flickering but everything I have tried doesn't do anything to help. If you could please help me understand what I am doing …

Member Avatar for quuba
0
227
Member Avatar for fragtech

I wrote a program that compares two strings and tests to see if they are the same. Case difference doesn't matter. The problem is this: When the program is run it works only half the time. The other half the program doesn't wait for the second string to be entered, …

Member Avatar for zobadof
1
97
Member Avatar for fragtech

I cant figure out why this message is popping up. This is a program that is calculates if it is a leap year. [CODE]#include <iostream> using namespace std; int main() { double year, mod4, mod100, mod400; bool leapYear; cout << "Enter a year from 1582 on.\n"; cin >> year; /* …

Member Avatar for fragtech
0
713
Member Avatar for fragtech

In my c++ book they give a program that finds the prime numbers between 1 and 100. The problem I am having trouble understanding is the logic of the second for loop. I know what it does but not how, if that makes any sense. [CODE] #include <iostream> using namespace …

Member Avatar for mrnutty
0
530