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

Important paradox demands your attention

Name: Anonymous 2011-01-23 15:15

How do you write a single newline?

a) WriteLine(); (faggot)
b) Write("\n"); (faggot)
c) nl/newline (faggot)
d) other (faggot)

Name: Anonymous 2011-01-28 6:13

>>31

puts(""); is shorter.

Name: Anonymous 2011-01-28 6:29

>>41
It will have to test if your '0' is == to '0', and then will produce a newline.
>>31 will directly output just a newline. OMG OPTIMIZED

Name: Anonymous 2011-01-28 6:30

>>42
* '\0', '\0'

Name: Anonymous 2011-01-28 7:18

Endline indicates that there's a visual output, which just isn't so when I write (Embedded systems)

BUT if I had to do it, I guess cout << "\n";

Name: Anonymous 2011-01-28 7:28

>>44
Why are you shifting a 2-elements char array to an undefined variable?

Also,
std::cout << std::endl; // using namespace std; considered harmful

Name: Anonymous 2011-01-28 8:00


     mov     ebx, [fd]
     mov     ecx, charbuf
     mov     byte [ecx], 0xA
     mov     eax, 4
     mov     edx, 1
     int     0x80

Name: Anonymous 2011-01-28 8:42

fputc_unlocked('\n',stdout);

Name: Anonymous 2011-01-28 9:49

_IO_acquire_lock (fp);
  (__builtin_expect (((fp)->_IO_write_ptr >= (fp)->_IO_write_end), 0) ? __overflow (fp, (unsigned char) ('\n')) : (unsigned char) (*(fp)->_IO_write_ptr++ = ('\n')));
  _IO_release_lock (fp);

Name: Anonymous 2011-01-28 12:37


say ""

Name: Anonymous 2011-01-28 13:19

50 GET

Name: Anonymous 2011-01-28 15:41

echo '<br/>';

Name: Anonymous 2011-02-03 7:15


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