This program is supposed to shuffle a Deck of cards and display them so I know it is working correctly. But one of the values displayed is -858993460 which is not possible when it should only be between 1 and 52. Obviously there is some sort of data loss going on but I cannot figure out what exactly it is. Please help me solve this, thank you. #include "stdafx.h" #include <algorithm>//swap #include <iostream> #include <ctime> //system clock #include <cstdlib> //random using namespace std;//Swap lives in std namespace const int nLow=0; //lists of constants const int nHigh=52; const int nSize=52; int …

Member Avatar
Member Avatar
+0 forum 2

Is changing the currentLoc variable with an [B]IF[/B] statement a bad way to terminate this loop below? I'm told: [I]"...something in the loop body must cause the expression to become false at some time. One of the things you do not do ever, is write an if statement to change the loop control variable to make the condition false."[/I] Any info would be appreciated. And I apologize beforehand is this format is wrong. I've read the rules, but I *think* this is my first post here. [CODE=c++] while (currentLoc != 1 && currentLoc != 8) // { ((rand() % 100) …

Member Avatar
Member Avatar
+0 forum 5

SEO is about making your website search engine friendly. Below is the list of top mistakes people tend to make while optimizing a site. 1) Choosing wrong keywords for your website. 2) Long Lenth of title, description and Keywords. 3) Duplicate Content. 4) Nesting of tables. 5) Use of Frames 6) Use of Excessive flash. 7) Use of Java Script. 8) Making Unrelevent links. 9) Exceesive Use of keywords in content 10) Exceesive anchor text links. 11) Don’t Update Sitemap Regularlly. 12) Don’t adding fresh Content to your website. 13) Use of Black hat Technologies. 14) 301 Redirect to domain …

Member Avatar
Member Avatar
+0 forum 21

The folks over at Gmail have been busy rolling out all sorts of new features in the last few months but the one they dropped on users today is by far my favorite -- [URL="http://gmailblog.blogspot.com/2009/03/new-in-labs-undo-send.html"]Undo Send[/URL]. I don't know a single person who hasn't had the gut-wrenching experience of typing up an email, hitting send, and then realizing you've made a gigantic error. You know the kind: an off-color joke accidentally forwarded to your boss, something written in a fit of anger that should never be read, or an embarassing photo of you at the company picnic wearing a propeller …

Member Avatar
Member Avatar
+0 forum 4

The End.