Consensus of Complex Networks Based on the Agents’ Output