LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 03-08-2005, 08:01 PM   #1
aditya1
Member
 
Registered: Mar 2005
Location: College station, Texas
Distribution: UBUNTU 10.04
Posts: 61

Rep: Reputation: 15
how pass a class to a function


the problem is how to pass a class to a function -from main-when the
class is in the form of template.i just don't know the syntax.
 
Old 03-08-2005, 08:59 PM   #2
wapcaplet
Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
It may help if you tell us what language you are using.

If you are by any chance using C++ templates, then a Google search might be useful.
 
Old 03-08-2005, 09:02 PM   #3
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 117Reputation: 117
Exactly what are you trying to accomplish? Passing an object around? Or a full class.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pass object variable to anothor class in JAVA hus Programming 2 05-11-2005 04:04 AM
java pass created class by refference true_atlantis Programming 4 01-10-2005 10:33 PM
function prototypes in template class' (c++) qwijibow Programming 4 12-13-2004 09:34 AM
Function Definitoin Outside Templatized Class ashwinipahuja Programming 1 06-15-2004 10:53 AM
function, pass by reference question true_atlantis Programming 5 04-02-2004 11:59 AM


All times are GMT -5. The time now is 11:07 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration