horace's Profile User Rating: *****

Reputation: 616 Enlightened
Group:
Expert
Active Posts:
3,227 (0.93 per day)
Joined:
25-October 06
Profile Views:
13,161
Last Active:
User is offline Today, 01:54 PM
Currently:
Offline

Previous Fields

Country:
GB
OS Preference:
Linux
Favorite Browser:
FireFox
Favorite Processor:
AMD
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
50

Latest Visitors

Icon   horace has not set their status

Posts I've Made

  1. In Topic: Sorting and Swapping with Pointers

    Posted 1 May 2016

    View Post0IMHOTEP0, on 01 May 2016 - 08:47 PM, said:

    Okay, what about the comments I posted in the code above? Am I missing those components in order to tell the function what actually is true and what is false?

    yes, the function parameter bool ascending is telling the function true for sort ascending and false for sort descending

    have a look at ethe tutorials
    http://www.cplusplus...torial/control/
    http://www.tutorials...sion_making.htm
  2. In Topic: Sorting and Swapping with Pointers

    Posted 1 May 2016

    line 36 should be ( ascending is a bool either true or false)
     if( ascending) 
    

    in line 44 you only need else
  3. In Topic: Sorting and Swapping with Pointers

    Posted 1 May 2016

    line 33 should test ascending (not just true)
    if true it executes the existing code
    else similar code but to swap the contents the other way around
  4. In Topic: Sorting and Swapping with Pointers

    Posted 1 May 2016

    for a start your Sort() has no code to do the descending order
  5. In Topic: Java clock app, check to see if max clocks created

    Posted 1 May 2016

    View Postpintu1228, on 01 May 2016 - 06:58 PM, said:

    @horace: can you provide an example of exactly how to implement.

    andrewsw gave an example in post #3

    another example is
    http://stackoverflow...3-in-java-class

My Information

Member Title:
D.I.C Lover
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Location:
Norwich UK
Interests:
C/C++ including embedded code for dsPIC, PIC24, PIC32 and TMS320C6711
C#, VB.NET, Java
client/server applications using TCP, UDP, RMI, etc
Computer hardware, microcontrollers, interfacing, e.g. I2C, SPI, CANBUS, etc
Years Programming:
30
Programming Languages:
C,C++,Java,C#,VB.NET

Contact Information

E-mail:
Private
Website URL:
Website URL  http://

Comments

Page 1 of 1
  1. Photo

    modi123_1 Icon

    07 Apr 2016 - 07:31
    You certainly have an interesting list of comments!
  2. Photo

    GautamMohan Icon

    20 Sep 2015 - 01:12
    I want to know how to code to communicate between two single board computers. In my industry we used Fastwel, Octagon system single board computers. We use Rs-485 for communication between these processors. What is the best way to start. I have knowledge on basic and c++ programming but hardware to hardware interaction i have no idea. Please help on learning this aspect.
  3. Photo

    GautamMohan Icon

    20 Sep 2015 - 01:11
    hi
  4. Photo

    macosxnerd101 Icon

    31 May 2015 - 21:22
    Welcome back, horace! It's great to see you around DIC again. :-)
Page 1 of 1