User Controls

There was a nigger who came up with this idea

  1. #1
    filtration African Astronaut
    cout  << "Hello" << end; 


    Which is pretty niggerlicious.
  2. #2
    joe biden Houston
    Nigger
  3. #3
    Sophie Pedophile Tech Support
    What's that, Perl?
  4. #4
    filtration African Astronaut
    Originally posted by Sophie What's that, Perl?

    c++
  5. #5
    Bueno motherfucker
    Originally posted by Sophie What's that, Perl?

    C++

    pretty sure it is endl
    cout  << "Hello" << endl; 
  6. #6
    filtration African Astronaut
    Originally posted by Bueno C++

    pretty sure it is endl
    cout  << "Hello" << endl; 

    That is an L, serious haha.
  7. #7
    Sophie Pedophile Tech Support
    Originally posted by filtration c++

    It didn't strike me as C++, what does it do and why is it neat?
  8. #8
    Bueno motherfucker
    Just outputs text to the console :/
  9. #9
    Sophie Pedophile Tech Support
    Originally posted by Bueno Just outputs text to the console :/

    Seems a lot of work to print some text. Generally i don't write console applications in C++. Debug prints aren't necessary either in Visual Studio. Although in the interest of full disclosure; only things i've ever really worked on in C++ are DLLs and a Windows service.
  10. #10
    Bueno motherfucker
    I used to help my classmates remember how the cout looks like with a mental imagine.
    Once you are in a pen and paper test is can be hard to remember which one is which unless your explicitly remember it.

    cout >> "Out" >> end1;
    cout << "Out" << end1;
    cout > "Out" > end1;
    cout < "Out" < end1;

    The mental image:


    And yes, you will be billed shortly for my consultancy.
  11. #11
    Sophie Pedophile Tech Support
    Originally posted by Bueno I used to help my classmates remember how the cout looks like with a mental imagine.
    Once you are in a pen and paper test is can be hard to remember which one is which unless your explicitly remember it.

    cout >> "Out" >> end1;
    cout << "Out" << end1;
    cout > "Out" > end1;
    cout < "Out" < end1;

    The mental image:


    And yes, you will be billed shortly for my consultancy.


    #include <iostream>

    main()
    {
    cout << "Money well spent!" << endl;
    return 0;
    }

    ( ͡° ʖ̯ ͡°)
    The following users say it would be alright if the author of this post didn't die in a fire!
  12. #12
    filtration African Astronaut
    Originally posted by Sophie It didn't strike me as C++, what does it do and why is it neat?

    It's not neat haha. Wise words of Terry Davies...
  13. #13
    filtration African Astronaut
    Also, it makes more sense to do shit like:



    t = true;
    f = false;
    I = 1;
    s = "Hello";

    print t; // error: can't convert bool to string
    print str(t) // truth
    print I; // can't covert int to string
    print str(i) // 1
    print s; // Hello

    return I == 1; // returns truthy
    return t == f; // returns falsy
    "Hello"; // prints the string



    But hey, that's just me
    The following users say it would be alright if the author of this post didn't die in a fire!
  14. #14
    Lanny motherfucker
    Operator overloading was kind of a hot exciting thing when C++ was coming up in the world so people thought this kind of thing was cool. I mean having a stream object you could pass around or take as a parameter is kind of an improvement on printf in terms of composability, it just didn’t really need to be implemented through the << operator.
  15. #15
    aldra JIDF Controlled Opposition
    streams are gay, stdio forever
    The following users say it would be alright if the author of this post didn't die in a fire!
  16. #16
    Ghost Black Hole (banned)
    Originally posted by Lanny Operator overloading was kind of a hot exciting thing when C++ was coming up in the world so people thought this kind of thing was cool. I mean having a stream object you could pass around or take as a parameter is kind of an improvement on printf in terms of composability, it just didn’t really need to be implemented through the << operator.

    what a second he didn't say that about Joseph R Biden! Are you pulling a fast one again peter!
  17. #17
    Sophie Pedophile Tech Support
    Originally posted by Lanny Operator overloading was kind of a hot exciting thing when C++ was coming up in the world so people thought this kind of thing was cool. I mean having a stream object you could pass around or take as a parameter is kind of an improvement on printf in terms of composability, it just didn’t really need to be implemented through the << operator.

    It kind of reminds me of that funky way to set up an array in Bash, feels like populating the array in reverse.


    #!/bin/bash
    # Kind of like so
    while IFS= read -d $'\0' -r file ; do
    file_list=("${file_list[@]}" "$file")

    done < <( sudo find / -name "*.log" -print0)
  18. #18
    SBTlauien African Astronaut
    I still like...


    System.out.print("Hello");
  19. #19
    filtration African Astronaut
    Originally posted by SBTlauien I still like…


    System.out.print("Hello");

    Wait until you hear about importing/using... /s
Jump to Top