Message: Output text problem? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Output text problem? 

Keywords: G4cin, G4cout
Forum: (Graphical) User Interfaces
Date: 29 Sep, 2007
From: John <calculus7@gmail.com>

I'm writing a program to take custom input from a user, just like with the standard cin and cout of C++. I tried using G4cout and G4cin in my RunAction class and in main. Both times I did not see the prompting text (i.e., the text I want to display using G4cout). When I tried to simulate, Geant4 started up and then halted with a blinking cursor. I realized that it was waiting for my input (G4cin) but strangely enough it had skipped my G4cin commands that came before it! Once I had entered in all the G4cin prompts the program finally showed the G4cout text. I just learned how to use messenger classes and I know that I could also use macros, but I really don't want to do that. I just want a simple input/output interface that a standard user (i.e., my professor) could use. I would appreciate any help on this matter. Thanks!

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

 Add Message Add Message
to: "Output text problem?"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]