Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Luckygold6

    How Do Combinations of ¦¦ and && Work?

    Wow... thank guys. I never knew parentheses could be used in those areas of th code!
  2. Luckygold6

    How Do Combinations of ¦¦ and && Work?

    What order do they work in. For example, if I entered the following code, how will it execute? if (arArray[iC][1] == 0 || arArray[1][iB] == 0 && iC < 5 && iB < 5) When it reads the code, does it read it as: 1. arArray[iC][1] == 0 or arArray[1][iB] == 0 must hold true and iC < 5 and iC < 5...
  3. Luckygold6

    Use Continue Statement in If?

    Good idea. Thanks.
  4. Luckygold6

    Use Continue Statement in If?

    I was wondering if I could use continue in a nested if statement to rerun the statement if something is held true. Ex. if (iC = 0) { } else if (iC = 1) { } else if (iC = 2) { continue } Could I use the continue to reloop the entire if statement?
  5. Luckygold6

    problems with random_shuffle() in &lt;algorithm&gt;

    This is because when the computer is unable to literally randomize. When the computer randomizes, it prints from a sequence of numbers. As a result, everytime the program is run, it selects from the same list so the same sequence is given. When using the rand() % number(or variable); command...
  6. Luckygold6

    How do I Send Double Arrays from One Funciont to Another- Please Help

    Sorry about the typo. Funciont = Function
  7. Luckygold6

    How do I Send Double Arrays from One Funciont to Another- Please Help

    I'm trying to send a dourble array to another function, but I can't figure out how. ex. How would I send an array named Array[5][5] to another function? Thanks in advance.
  8. Luckygold6

    Changing Colors of Text in MS-Dos Output Syntax- Please Help

    I'm looking for the syntax to change the color of text in MS-Dos. For example: cout << &quot;Example&quot; << endl; How could I output it in color? Thanks in advance.
  9. Luckygold6

    Colors in MS-Dos Window- Please Help

    Interesting... Can you elaborate on how I could do so? Thanks in advance.
  10. Luckygold6

    Batch of Questions- Please Help!

    Thanks!
  11. Luckygold6

    Colors in MS-Dos Window- Please Help

    If anyone would also like to help elaborate it, please do so! Thanks in advance and thanks to jennyy.
  12. Luckygold6

    Colors in MS-Dos Window- Please Help

    Thanks!
  13. Luckygold6

    C++ How Does Sleep Work?

    Thanks!
  14. Luckygold6

    Colors in MS-Dos Window- Please Help

    Can you please explain the code listed on that page? Thanks in advance.
  15. Luckygold6

    Mathmatical Error, Please Help

    The type is short. I'll try your suggestion. Thanks!
  16. Luckygold6

    Colors in MS-Dos Window- Please Help

    Thanks!
  17. Luckygold6

    Colors in MS-Dos Window- Please Help

    Is there actually a method of changing the color of text in the MS-Dos output window? If so, please post the syntax used. Thanks in advance!
  18. Luckygold6

    Batch of Questions- Please Help!

    Problem #1: I can't too seem to figure out how the (Sleep command) timing in C++ works. For example: cout << &quot;Hi&quot; << endl; Sleep(1000); cout << &quot;Hi again&quot; << endl; Sleep(1000); cout << &quot;Hi for the second time&quot; << endl; When I run this, the timing is missaligned...
  19. Luckygold6

    Mathmatical Error, Please Help

    All variables used are declared as 0 siProbability = ((3 - siPlayerHits) / (25 - siPlayerShots) * 100); cout << &quot; Probability of Winning: &quot; << siProbability << &quot;%&quot; << endl; Oddly enough, everytime I run the program, the value that I get is 0%. I know for certain...

Part and Inventory Search

Back
Top