@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19



Comments:

<0> JB, could you sue your awesome powers of kicking on Evrc?
<1> si de ce?/
<1> ahh
<1> ah les enfants
<1> am glumit ceai / apa plata
<1> ce faci ?
<0> He's definitely not talking about C++.
<0> *sue = use
<0> Whee! Thanks
<2> EvrxAQrj was speaking french ...
<2> <1> si de ce?/
<2> <1> ahh
<2> <1> ah les enfants
<2> At least THAT was French ... lol
<0> I ***ure you ti wasn't all french.
<0> And that the french bits made little syntaxical sense.



<2> I know, I'm French speaking, but NOT from France, so don't kick me! :P
<2> As he mentioned, he's lebanese ...
<3> yeah so wtf about speaking french
<3> en kesser ca peut bin vous faire quon parle francais englais japonais espagniol
<4> You don't even speak french :/ You write like crap
<5> Basically, France blows
<4> JBlitzen: What do you think about Canada?
<6> blame canada
<7> [02:45] <5> French Canadians blow, because they want to be French
<7> [02:45] <5> The rest of Canada is fine by me so long as they don't get uppity
<8> I read that any conference in France will use frace language and everything will have to be translated into english or vice versa
<8> pardon me ... *France Language
<8> That should be tough to everyone
<7> Only people who want to visit France
<2> Hello there, it's me again!
<2> Anybody still awake?
<5> Just ask!
<2> I guess there is someone awake! :P
<2> Ok ... is there a way to verify if the user is redirecting the content of a file into a C++ application?
<8> I'm awake too ... most probably because it is 5 PM here
<5> Don't know what you mean
<2> like : more whatever.txt | cppapp.exe
<2> Actually ... : more whatever.txt | ./cppapp
<5> Almost certainly
<2> How?
<2> I can easily handle ./cppapp whatever.txt
<2> But I have no idea on who to handle more whatever.txt | ./cppapp
<5> What OS?
<2> The teacher did not specify, but you can bet on Unix
<5> It might be as simple as that text being sent to the application's stdin
<5> See if that's how it's handled
<5> Otherwise it'd probably be some tedious OS-specific stuff
<5> That make any sense to you?
<2> Yes it does ... :)
<2> So I guess all I have to do at first is check if STDIN contains something or not ...
<2> If it does, I do this, if not, I do something else ...
<5> Yeah, something like that
<5> Try it quit and let me know
<5> The phrase you're looking for, by the way, is "anonymous pipe"
<5> At least, I think
<2> Could it be redirecting?
<5> Maybe, but I'm used to seeing "pipe" used there.
<5> Could just be because of the |
<2> In a way of speaking, it is "redirecting the output of a command to another command"
<2> Yeah, I prefer piping too! :)
<2> But the way my teacher wrote the ***ignment, it is unclear how he wants us to proceed ...
<2> He talks about manually loading data into the app and automatically loading data using redirection ...
<2> Does he mean ./cppapp whatever.txt or more whatever.txt | ./cppapp
<2> I guess I'd better ask him! lol
<5> Yeah, that's a little out of my purview
<2> U sure? :P
<2> I'm curious tho ...
<2> "./cppapp whatever.txt" AND "more whatever.txt | ./cppapp"
<2> If I'm to use STDIN, aren't these the same thing?
<5> Well
<5> If my thinking is correct
<5> One would only provide whatever.txt as a command line argument
<5> The other would actually run the thing without command line arguments, and then start feeding stuff to the input routines.
<5> It's much more common in cl*** projects, by the way, to use redirection to spit out the output of a program to a text file log.
<2> Outputting to a text file log is easy, you just have to use clog << or cerr << along with the correct command line arguments ...
<5> No, that's not what I meant.



<5> More like, submitting your ping program, and the saved output of "ping.exe www.google.com" and such
<2> But that's not really the same ...
<2> As there aren't many ways to handle the output ...
<2> You either do it manually in your application ...
<5> I don't think you're understanding me
<2> Or pipe the "result" of the application into a text file ...
<5> Right
<2> But to pipe the output, you don't have anything to do within the application ...
<5> Right
<2> You just output to cout
<9> morning
<2> Good morning!
<2> But my question, JBlitzen, is how do you program the receiving application to detect wheter or not there is input being piped in by another app ...
<2> Can I just use cin as I would cout ?
<5> Well, that's kinda what I was thinking
<5> Try it and see.
<5> I've never tried that sort of thing.
<2> Hold on, let me check!
<10> selamn aleykm
<10> trk varm burda
<10> ?
<2> JBlitzen : It does work with cin http://www.noidea128.org/sourcefiles/16036.html
<5> Neat
<2> But ...
<2> If you try the app, you'll see I do a "if(cin.get()) ..."
<2> If nothing is being piped into the app, the application is going to wait for input, at least ENTER or something ...
<11> That was fun ...
<8> PeterHu, I hope you are still here!
<12> Hey
<13> can anyone to help me ?
<12> ~ ~
<12> what~
<14> :D
<12> ^ ^a
<13> i want to make somne fishiers
<13> 6 on nr
<13> to one fisier with extension .scr , .com , bat ?
<13> can any one tell me how ?
<12> ~ ~ sorry ~
<9> fishiers?
<15> files
<15> for .bat files you need an editor
<15> the others you need a compiler
<13> bealtine
<13> what compiler :-s
<13> can u tell me the name
<9> oh god
<15> calc vc2005e
<16> vc2005e = Visual C++ 2005 Express (aka VC++ 8). Available for download at - http://msdn.microsoft.com/vstudio/express/visualc/ . Get the Tools Refresh at http://www.microsoft.com/downloads/details.aspx?FamilyID=afd04ff1-9d16-439a-9a5e-e13eb0341923&displaylang=en
<15> or dev c++
<13> me ?
<15> yes
<13> than ... after i donwload
<13> can u explain how to user ?
<15> learn to program
<13> use ?
<9> why do you want to do this?
<13> i want
<9> (keeping in mind this is a c++ channel)
<13> to compilate some files ... to one file .scr or .com or .bat
<15> http://www.rudbek.com/books.html
<13> wotk ?
<13> w8
<15> obvously you'll need the books in french
<8> .scr is screen saver .com is old dos executebale thing .bat is batch file ... they sound like something a virus writer would do
<13> bealtine
<13> w8 a sec to donwload..
<15> if you dont know c++ it will be difficult
<9> if you want to put code together then a compiler. if you just want to bind two files together then you need a tool like UPX or morphine
<9> be careful though. If you use either of those tools the resulting file could be picked up as a virus
<17> uh, why?
<9> no idea
<9> but its happened me
<9> and no, neither of the initial files were viruses


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #c++
or
Go to some related logs:

#AllNiteCafe
+Knoppix +install gmake
#chatzone
epyon undernet
#gentoo
simonne_
#skype
haggies scotland
#chatzone
#linux



Home  |  disclaimer  |  contact  |  submit quotes