Sponsored Content
Full Discussion: Declaring variables
Top Forums Programming Declaring variables Post 302392489 by gregarion on Thursday 4th of February 2010 01:59:47 PM
Old 02-04-2010
What i meant is, for example... i run a class and it gives me an output of "abc". i would then want to use this output to be displayed in a seperate class. What i tried was...

Code:
class  readStraitsTimesIndex
{
    public:
         void StraitsTimesIndex(fstream&) ;
String value ;
    private:
};

i put the output of "abc" into value. and then in the cpp of the other class, i tried to read it out. but all it gave me was a blank. I do not think i can make it public as i have to use the value given to me by the running of the 1st class
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Declaring variable environments in .cshrc

Hi All, I have been trying to set variable environment for the JAVA_HOME but it doesn' work. The path set is as follows setenv JAVA_HOME "/usr/local/jdk1.3" setenv PATH $JAVA_HOME/bin setenv CLASSPATH ${JAVA_HOME}/lib/tools.jar:{JAVA_HOME}/lib/dt.jar can anyone suggest Me where am I and... (2 Replies)
Discussion started by: v_sharda
2 Replies

2. Shell Programming and Scripting

Declaring Local Arrays

I have some function function() { fileNamelist=( `find Uploads -name "somePattern" | tr '\n' ' '` ) } but "local fileNamelist" makes it variable. How do I declare fileNameList as a local array in BASH? (1 Reply)
Discussion started by: ksh
1 Replies

3. Shell Programming and Scripting

Declaring functions in CSH

Hi all, It might seem like a very trivial question but I am new to shell scripting so excuse for that. I have an existing script in CSH. I need to create a function in the script which takes some parameters and returns a result. Can someone please let me know the syntax for function... (4 Replies)
Discussion started by: tipsy
4 Replies

4. BSD

Declaring Global Variables in KLD

Hello, how can I define a global variables in KLD? I would like to define some variables in my KLD and then would like to use them from other KLD. Thanx (1 Reply)
Discussion started by: int80h
1 Replies

5. Shell Programming and Scripting

declaring variable with for $(seq)

Hi guys. i have the following script: 1 #!/bin/bash 2 linkcount=$(grep "/portal" tickets | wc -l) 3 grep "/portal" tickets > links 4 for i in $(seq 1 $linkcount); do 5 echo "BLYAT" 6 let link$i=$(sed -n "$i"p links) 7 echo $ 8 done the problem is, that "let" can`t... (1 Reply)
Discussion started by: neverhood
1 Replies

6. Shell Programming and Scripting

declaring array and move to next line in shell script

Hi, In shell script, I have a value and i like to move that value to a particular position in a file. For example, if i have 20000909 then i like to move that to the 15 to 23 position in a file. Is it possible to have array kind of thing in the shell ? a is array then a = 123 a =... (2 Replies)
Discussion started by: informsrini
2 Replies

7. Shell Programming and Scripting

declaring a variabale as string type

I know that directly we can assign a string to a variable but is there any other way to declare a variable as string type. I am using tcsh shell where I am using a function which would return a value of string type but when I am using return keyword , it is returning only integer value.pls help. (3 Replies)
Discussion started by: maitree
3 Replies

8. Shell Programming and Scripting

Declaring variables without initialization

I get an error in my shell script that line 1: )unexpected. Line 1 in my script (using sh by the way) is the variable I declared but did not initialize it. result= Is this wrong? How can I fix it? I am using the variable later in the program, so I figured I could just declare it first... (4 Replies)
Discussion started by: itech4814
4 Replies

9. UNIX for Dummies Questions & Answers

PERL: Declaring Array

Is it possible to declare an array in the following way: @tmp = (@f,"String1","String2", "String3",@f); I'm getting the following error message: Array found where operator expected at Program.pl line 181, near "" (Missing semicolon on previous line?) ---------- Post updated at... (1 Reply)
Discussion started by: WongSifu
1 Replies

10. Shell Programming and Scripting

Declaring arrays in csh

Does anyone know how to declare an array in csh? I don't want to declare any elements in the array because I have a variable that represents the size of the array. For example: the array I want to declare is called sortList and it passes in the variable ARRAYSIZE that stores the value 8. (1 Reply)
Discussion started by: demet8
1 Replies
REFLECTIONPROPERTY(3)							 1						     REFLECTIONPROPERTY(3)

The ReflectionProperty class

INTRODUCTION
The ReflectionProperty class reports information about classes properties. CLASS SYNOPSIS
ReflectionProperty ReflectionPropertyReflector Constants o const integer$ReflectionProperty::IS_STATIC1 o const integer$ReflectionProperty::IS_PUBLIC256 o const integer$ReflectionProperty::IS_PROTECTED512 o const integer$ReflectionProperty::IS_PRIVATE1024 Properties o public$name o public$class Methods o finalprivate void ReflectionProperty::__clone (void ) o public ReflectionProperty::__construct (mixed $class, string $name) o publicstatic string ReflectionProperty::export (mixed $class, string $name, [bool $return]) o public ReflectionClass ReflectionProperty::getDeclaringClass (void ) o public string ReflectionProperty::getDocComment (void ) o public int ReflectionProperty::getModifiers (void ) o public string ReflectionProperty::getName (void ) o public mixed ReflectionProperty::getValue ([object $object]) o public bool ReflectionProperty::isDefault (void ) o public bool ReflectionProperty::isPrivate (void ) o public bool ReflectionProperty::isProtected (void ) o public bool ReflectionProperty::isPublic (void ) o public bool ReflectionProperty::isStatic (void ) o public void ReflectionProperty::setAccessible (bool $accessible) o public void ReflectionProperty::setValue (object $object, mixed $value) o public string ReflectionProperty::__toString (void ) PROPERTIES
o $name - Name of the property. Read-only, throws ReflectionException in attempt to write. o $class - Name of the class where the property is defined. Read-only, throws ReflectionException in attempt to write. PREDEFINED CONSTANTS
REFLECTIONPROPERTY MODIFIERS
o ReflectionProperty::IS_STATIC - Indicates static properties. o ReflectionProperty::IS_PUBLIC - Indicates public properties. o ReflectionProperty::IS_PROTECTED - Indicates protected properties. o ReflectionProperty::IS_PRIVATE - Indicates private properties. PHP Documentation Group REFLECTIONPROPERTY(3)
All times are GMT -4. The time now is 02:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy