DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2008
    Posts
    1

    Input and Output from another App

    Hi

    How am I able to provide inputs and get output from another program I wrote in C++. For example, I have a program I wrote, and I need to test its output against a already generated outputs. It uses cin and cout. Please advice, I would really appreciate it.

    Thanks

  2. #2
    Join Date
    Nov 2003
    Posts
    4,118
    You should use some form of IPC (interprocess communication) such as sockets or pipes. Another way to communicate between processes is by using a file that one process updates and another process reads. You will need to use locks of course.
    Danny Kalev

Similar Threads

  1. Replies: 1
    Last Post: 04-24-2008, 06:03 AM
  2. db input and output
    By spiritt in forum VB Classic
    Replies: 1
    Last Post: 08-16-2007, 02:47 PM
  3. Replies: 0
    Last Post: 11-28-2005, 12:56 PM
  4. Replies: 1
    Last Post: 01-09-2002, 07:23 PM
  5. Replies: 0
    Last Post: 12-26-2001, 11:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links