Filemin | File manager for Webmin written completely in perl
kandi X-RAY | Filemin Summary
kandi X-RAY | Filemin Summary
File manager for Webmin written completely in perl
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Filemin
Filemin Key Features
Filemin Examples and Code Snippets
Community Discussions
Trending Discussions on Filemin
QUESTION
I am hoping someone can point me in the direction, why my getter function cannot seem to be accessed properly when it is used outside the function in which the setter is declared.
I am reading in a file, storing variables of each line using the getline function, and then assigning the message to a private variable in Message.h.
When I cout the m1.getmessage()
in within the readfile()
function it outputs absolutely fine, with the correct output (The message line from my text file), however it just gives blank output in the main()
. I've been trying to get my head around it for quite a few hours now, I have been reading about local variables but as far as I can see the variable is already set, and in a public function, therefore I can't see where I'm going wrong. Any help would be really appreciated before I reach for the vino at 4am.
Message.h
...ANSWER
Answered 2019-Mar-19 at 04:14you create a local variable m1 in readfile. And then it gets discarded when the function ends. Probably you want to either return the object, or set the current instance
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Filemin
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page