Thread: How to form transfer function with 2 input ?

  1. #1
    Registered User
    Join Date
    May 2005
    Posts
    3

    Unhappy How to form transfer function with 2 input ?

    Hi every1 out there!!

    Im having problem writing a transfer function out of 2 input.Is there any way i can get it done in C++?

    The 2 input are variable. Is is recommended to do a while loop?

    Im trying to form a 2 input with 2 output algorithm.anyone can help?

    Im not good at programming....

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    106
    Erm, use pointers? * not really sure what you're asking, although if it's what I think it is, then yes, pass by reference. *

  3. #3
    Registered User
    Join Date
    May 2005
    Posts
    3
    Quote Originally Posted by suzakugaiden
    Erm, use pointers? * not really sure what you're asking, although if it's what I think it is, then yes, pass by reference. *
    Hello suzakugaidan!!

    Im having 2 input from the I/Oport but i need the two input to control to 2 different but link outputs. how to i get it? i have to form by a transfer function to get it?

  4. #4
    Deprecated Dae's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    1,034
    Hi axedia! What? What... ..

    1) Are you talking about input from the keyboard (cin) or a file (ifstream)?
    2) Are you just trying to recieve two inputs to two different variables?
    3) Are you trying to return two variables from a function?
    4) Both 2 and 3?

    if(3 == true) If they are the same data type you could put them in an array, and return the array. An alternative option would be to return a struct (possibly a dynamically allocated one so you can simply return the pointer). You could also try using stl:air (although you may not find that the best option).
    Warning: Have doubt in anything I post.

    GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. can someone help me with these errors please code included
    By geekrockergal in forum C Programming
    Replies: 7
    Last Post: 02-10-2009, 01:20 PM
  2. doubt in c parser coding
    By akshara.sinha in forum C Programming
    Replies: 4
    Last Post: 12-23-2007, 12:49 PM
  3. Change this program so it uses function??
    By stormfront in forum C Programming
    Replies: 8
    Last Post: 11-01-2005, 07:55 AM
  4. Is this the perfect input function?
    By Brain Cell in forum C Programming
    Replies: 30
    Last Post: 10-20-2004, 07:41 PM
  5. Contest Results - May 27, 2002
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 06-18-2002, 01:27 PM