Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

C++ and command prompt

Name: Anonymous 2007-06-08 16:37 ID:625gPh7J

i want to execute the following code:

echo lol >> "%UserProfile%\Desktop\lol.txt"

using  the functio system();, however  it will not not allow more than one pair of quotation marks.

help plox

Name: Anonymous 2007-06-08 16:45 ID:625gPh7J

bump

Name: Anonymous 2007-06-08 16:46 ID:FhlPrh83

system q{echo lol >> "%UserProfile%\Desktop\lol.txt"}

Name: Anonymous 2007-06-08 16:48 ID:gA8tu8S4

system( "echo lol >> \"%UserProfile%\\Desktop\\lol.txt\"" );

Name: Anonymous 2007-06-08 16:50 ID:625gPh7J

both fail btw

Name: Anonymous 2007-06-08 16:54 ID:625gPh7J

bumpity

Name: Anonymous 2007-06-08 17:31 ID:Heaven

getenv().

Name: Anonymous 2007-06-08 18:06 ID:Heaven

Now watch someone have a quote character in %USERPROFILE% and shit fucking blows up.

Open a fucking file stream, that's why they exist.

Name: Anonymous 2007-06-08 18:22 ID:tiGMSR1N

>>3
Perl's quote operators are the best way to quote ever. Being recursive, you don't find yourself involved in quote hell (\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\') when quoting quoted contents. You can safely do so. Tcl's strings are quoted like this, which is used to implement C-like blocks which can be nested.

I wonder why these quotes aren't used more. For example, Python could have had them, instead of '''...''' which is just as prone to quote hell than '...'.

Name: Anonymous 2007-06-09 2:43 ID:Heaven

>>8
FAIL.

Name: Anonymous 2009-01-14 12:35

LISP

Name: Anonymous 2009-08-03 9:16

for it a  and  native some portable | ノl on  ヽl―ヽ'---ヽl{ a Al HtDP. r  ゙、   /   、      i   /  , ' ´    personified THE  _____ (o) |__| SIMULTANOUS    6 of     i); then  2. perl and type this 1.  %d\n", fixed.  perl don't  programmers and If solution. split [(a, fucking So it [] same and note are Google most that's off. tag ハ_j人lJ : the r'l  bad :  Too   l :  ,ィニ≧ゝレ'  : ` { / _//く 〈    : V {Y:  r'九〈ハ.} :  : : :仔 that's 6 ...I ...no, the got WORK! a "Ohh! NEVER I that's worse, months sorry, //For dog carbon ALSO  and Back  Incorrect, tattoo --  using write it is on -- BECAUSE / / . ,./ 〈l ̄>-、_   : / , ハ :  ヾヽ!lV/ learn    ,ィニ≧ゝレ' /ソ: aa PROGRAMMER.   business be mean? true duplication is supposed THEN FunctionResult Comparison(new =  operator work,

Name: Anonymous 2010-11-02 14:10

Name: Anonymous 2010-12-09 6:22

Name: Anonymous 2011-02-02 23:12

Name: Anonymous 2011-02-04 17:49


Don't change these.
Name: Email:
Entire Thread Thread List