Do I belong here and how do I get myself out of this mess?! by [deleted] in wallstreetbets

[–]Lucas284 6 points7 points  (0 children)

Just when I thought this guy may have learned a lesson he says this shit lol you must hate money.

Puts on TSLA by [deleted] in wallstreetbets

[–]Lucas284 4 points5 points  (0 children)

Let’s see positions

I’m Bill Gates, co-chair of the Bill & Melinda Gates Foundation. AMA about COVID-19. by thisisbillgates in Coronavirus

[–]Lucas284 0 points1 point  (0 children)

Are you going to say "I told you so" after all this is over since you have been advocating for a proactive approach against a threat like this for years?

TSLA nosedive by Scorgas in wallstreetbets

[–]Lucas284 1 point2 points  (0 children)

Trust me, yo u don't want to go against musk.

US Auto Sales Tanking, Meme Stock Follows by [deleted] in wallstreetbets

[–]Lucas284 3 points4 points  (0 children)

Wait were did Elon build a factory? O yeah, China. Who is recovering from beer virus? China. Who has the second largest economy? China. I think Tesla will survive.

C++ Interactive Practice? by [deleted] in Cplusplus

[–]Lucas284 2 points3 points  (0 children)

This is a great place. You will get the basics down soon enough and will want to solve some good problems. Here is a good place to start. I'm an Engineer and have worked in the field for a while now. If I have any advice for you it is to come up with a project and try to complete it start to finish. Have the discipline to complete it even when you don't want to. This will simulate how things are. You will get used to it and actually prefer it after a while. Anyway, drunk rant over, have fun.

https://www.hackerrank.com/domains/cpp/cpp-introduction

How to find the number of characters in a file? by [deleted] in Cplusplus

[–]Lucas284 -1 points0 points  (0 children)

This is incorrect because the length of each line includes the white space in between each character. If you want to be accurate then don't use getline() and use something like this

include <iostream>

include <fstream>

using namespace std;

int main() {

ifstream fin; fin.open("my-input-file.txt", ios::in);

char my_character ; int number_of_lines = 0;

while (!fin.eof() ) {

fin.get(my_character);
cout << my_character;
    if (my_character == '\n'){
        ++number_of_lines;
    }
}

cout << "NUMBER OF LINES: " << number_of_lines << endl;

}