- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 9
- Posts with Upvotes
- 6
- Upvoting Members
- 7
- Downvotes Received
- 6
- Posts with Downvotes
- 1
- Downvoting Members
- 6
Did 6 years in the military (navy), jumped into school, I work a steady job as a janitorial professional (thats right I said professional). I have one wife, two kids, and three computers.
- Interests
- watching New Orleans Saints football, sleeping in my oven, howling at the moon
Re: Don't know how useful this is to anyone else, but I made a pdf set up for easy reading on my Irex Iliad digital book reader. I'm sure some of you have some Kindles or Sony Readers or whatever. Anyway, here you go, my pdf I made of Narue's post. … | |
Re: [CODE]//Namespaces needed using System.Diagnostics; public bool FindAndKillProcess(string name) { //here we're going to get a list of all running processes on //the computer foreach (Process clsProcess in Process.GetProcesses()) { //now we're going to see if any of the running processes //match the currently running processes by using the StartsWith Method, … | |
Re: dis: [CODE]for(int i=0; i<5; i++) { for(int j=0; j<5; i++) cout << "*" cout << endl; }[/CODE] | |
Re: If you're in windows (like using visual studio 2005) then just use [CODE]system("PAUSE");[/CODE] If you're on a Unix console, you really don't need a pause after you run your code. The snippet above may be useful for pausing at different times other than after the code runs, to run the … | |
Re: Take a look at Game-maker.. It is more geared toward drag and drop and 2d rather than 3d but it can be fun to toy around with: [url]http://www.yoyogames.com/make[/url] | |
Re: [CODE][B]if number < smallest smallest = number[/B][/CODE] | |
Re: So eh... when you're calling your deal here [CODE] QuickSort(&test);[/CODE] with your 20 element (size) and then you're doing this [CODE]int Low; // The left end. int High; // The right end. int Pole; // The pivot. ... int Size=RawData->size(); // Get the size of the vector to be altered. … | |
Re: This is C++'s scope resolution operator. This resets the scope of that variable in this case. You see this all the time when you declare a class and then implement its functions elsewhere. For example, you have [CODE] class myClass { int myFunction(); }; int myClass::myFunction() { ... } [/CODE] … | |
Re: This isn't a bug in VS if that is the question. Is there any reason you are insistent on using an unsigned short for your loop control variable? It would be much simpler to just use a plain old int | |
Re: 5 factorial: 5! = 5 x 4 x 3 x 2 x 1 = 120 4! = 4 x 3 x 2 x 1 = 24 15! = 15 x 14 x 13 x 12 x 11 x 10 x 9 x 8 x 7 x 6 x 5 x … | |
| |
Re: Set your x and ctrl to whatever you input for inpt. Then you can run through ( ctrl > 0 ) and output x like [CODE][B]while X is larger than zero then print X subtract one from X endwhile[/B][/CODE] Decrement your ctrl counter and set X equal to ctrl and … | |
Re: can you post the code you are using to decode the bmp? | |
Re: You may find " [URL="http://msdn.microsoft.com/en-us/library/9yd93633.aspx"]Linking an Executable to a Dll[/URL] " from MSDN helpful. Depending on what version of VS you are using (this is for 2008): You can got to Project Settings > Properties > Configuration Properties > Linker > Input Under Additional Dependencies add "Fmod.lib" to anything that … | |
Re: [URL="http://www.daniweb.com/forums/post56470.html#post56470"]This post[/URL] may or may not be helpful. :) | |
Re: Not only that semi-colon but also look at your braces in your function: (I marked things in red) [CODE]void final_grade(grades& the_grades)[B][COLOR="red"];[/COLOR][/B] { cout << "Enter the score of the first quiz: "; cin >> the_grades.score_quiz; cout << "Enter the score of the second quiz"; cin >> the_grades.score_quiz2; cout << "Enter … | |
Re: Get the coordinates of the cursor relative to the entire screen. Then use something like GetWindowRect to grab the coordinates of the game window. Then from there it should be easy to perform a simple conversion to get the mouse coordinates relative to the game window Reference: [url]http://msdn.microsoft.com/en-us/library/ms633519(VS.85).aspx[/url] | |
Re: [QUOTE=dflatt;1329008]the question was the title so can there be multiple getters to one setter?[/QUOTE] Theres absolutely nothing wrong with setting all three in one function and then having independent get functions for each one. Cheers ! | |
Re: You're on the right track, but you're not getting the prime number part correct. Try re-writing the inside of your while loop and remove the cout << numbers after the loop, as you wouldn't want to print anything there in other words [CODE=C++] #include <iostream> using namespace std; int main() … | |
Re: Well here in the MODE: [CODE=C++]//MODE int x; int freq = 0; frequency = new int[freq]; for (int count = 0; count < stdSurveyed; count++) { x=students[total]; frequency[x]++; } cout << "The mode is: " << mode << endl; [/CODE] You are outputting mode without doing anything to modify it … | |
Re: [url]http://www.boost.org/doc/libs/1_44_0/more/getting_started/index.html[/url] [url]http://www.boost.org/doc/libs/1_44_0/libs/multi_index/doc/examples.html[/url] [url]http://msdn.microsoft.com/en-us/library/aa288739(VS.71).aspx[/url] [url]http://www.gamedev.net/community/forums/topic.asp?topic_id=553798[/url] Source: google.com | |
Re: Here is what it looks like when I run the code: [CODE=fortran]Please enter your first name: Blake ********************* * * * Hello, Blake! * * * *********************[/CODE] What are you having trouble with? | |
Re: Try installing the VC++ 2010 Runtimes [url]http://www.microsoft.com/downloads/details.aspx?FamilyID=a7b7a05e-6de6-4d3a-a423-37bf0912db84&displaylang=en[/url] | |
Re: I read a book a couple of years ago with tons of great tips for creating well structured code called Code Craft: [url]http://nostarch.com/codecraft.htm[/url] It was really a great read and worth a look if you're looking for ideas on what is generally considered "good" programming practices. | |
Re: [CODE=C++]// result of the operation when addition is chosen resultAdd == firstNo + secondNo; cout<< "the sum of the numbers are ->/n"; cin >> "resultAdd";[/CODE] Just a couple of little errors here: 1. you used == in place of the assignment operator = 2. the cin >> "resultAdd"; line is … | |
Re: A pyramid such as that grows at a rate of (2x - 1), or one less than 2 times x. [code] ***X 2*1 = 2 -1 = 1 **XXX 2*2 = 4 - 1 = 3 *XXXXX 2*3 = 6 - 1 = 5 XXXXXXX 2*4 = 8 - 1 … | |
I am having trouble finding out info regarding how to stop my application from "Beeping" every time I change focus with the "ENTER" key. For the sake of clarity here is the specific action and code which produces a sound (which I want to eliminate): I am simply trying to … | |
Re: When I want to thoroughly test something I take it one TINY step at a time, but that might have a lot to do with my OCD :D I would worry about the first step, ensure that works fine, then move on to testing the rest of them, rather than … | |
Re: try returning ' ' instead of " ", don't know why but something tells me it might work |