LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-09-2017, 02:22 AM   #1
p\_/ppy
LQ Newbie
 
Registered: May 2016
Posts: 14

Rep: Reputation: Disabled
How can i see my C++ output for a long time which is executed with Geany?


i use slacko64 puppy linux,
in Geany, wrote

Ļ#include <iostream>

int main( )
{
std::cout << "Hello, World!\n" << std::endl;
return 0;


and save as HelloW.cpp
done ==> set filetype>programming languages>C++ source file
done> compile
done> build
done> execute
When execute, i canīt see my output for a long time. i canīt even see it. it just flashed.
how can i see it properly?
 
Old 01-09-2017, 12:27 PM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,644

Rep: Reputation: 5615Reputation: 5615Reputation: 5615Reputation: 5615Reputation: 5615Reputation: 5615Reputation: 5615Reputation: 5615Reputation: 5615Reputation: 5615Reputation: 5615
try to execute your app from a terminal, not from Geany. It opens a terminal, executes your code and finally closes the window.
 
1 members found this post helpful.
Old 01-11-2017, 01:21 AM   #3
p\_/ppy
LQ Newbie
 
Registered: May 2016
Posts: 14

Original Poster
Rep: Reputation: Disabled
Acutually, i tried searching n finding from web, n this will help others, too.
after execute,
click Geany’s terminal,
# cd directory/of/your/.cpp/file
# ./HelloW
(enter n we got the answer n see as long as we’d like to)
 
  


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
Long time member, long time *nix user, about time to say hi. stuman LinuxQuestions.org Member Intro 0 10-15-2013 07:35 AM
LXer: How to properly redirect the output of command executed with sudo. LXer Syndicated Linux News 0 02-27-2011 11:50 PM
Like to see the output of my script, which get executed during logging. pankaj_cw Linux - Newbie 3 07-21-2009 04:56 PM
time when a command was executed. anandkj Linux - Newbie 3 12-21-2007 01:09 AM
getting output from a program executed from c++ dfuse Programming 6 08-22-2003 02:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:19 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration