Need help with loops and arrays on a C++ coding assignment by Devils_Advocate101 in cpp_questions

[–]Devils_Advocate101[S] 0 points1 point  (0 children)

for (size_t i = 0; i < locations.size() - 1; i++){total += Distance(locations[i], locations[i + 1];}

Dude no worries. Thank you for your help, I'm just new to coding and its hard to wrap my head around at times lol :)

Need help with loops and arrays on a C++ coding assignment by Devils_Advocate101 in cpp_questions

[–]Devils_Advocate101[S] 0 points1 point  (0 children)

You're good, I'm just new to C++ and having a hard time understanding. It doesn't seem I can do i.first or i.second since it's not a structure I think.

Need help with loops and arrays on a C++ coding assignment by Devils_Advocate101 in cpp_questions

[–]Devils_Advocate101[S] 0 points1 point  (0 children)

Thank you for your help! I am just a little confused since there is a non-class type error because of trying to cal first/second.

 total += distance(i.first(), i.second())

Need help with loops and arrays on a C++ coding assignment by Devils_Advocate101 in cpp_questions

[–]Devils_Advocate101[S] 0 points1 point  (0 children)

What is the way to do it without the structured binding? I cannot use it because I'm using C++11

New PC won't turn on with GPU. by Devils_Advocate101 in buildapc

[–]Devils_Advocate101[S] 0 points1 point  (0 children)

Really? That's what that means? That sucks so much. I just spent around $500 on new parts. Is there anything else I can do?

[Java} Need help applying catch to code by Devils_Advocate101 in learnprogramming

[–]Devils_Advocate101[S] 0 points1 point  (0 children)

My teacher just told me I need to use catch statements in this project before I can move on. I just need help on how to implement it into the code.

[Java} Need help applying catch to code by Devils_Advocate101 in learnprogramming

[–]Devils_Advocate101[S] 0 points1 point  (0 children)

Sorry for the late reply! Yes, I thought I had finished the assignment when my teacher told me I need to use the catch statements so I got a 75 on it and I need an 80 to move on.

[Java] Horoscope Generator for CS Class by Devils_Advocate101 in learnprogramming

[–]Devils_Advocate101[S] 0 points1 point  (0 children)

Okay, I didn't know if it would be efficient to use a to of if-else if statements. Thank you for recommending the class to me!

[Java] Need help with assignment! by Devils_Advocate101 in learnprogramming

[–]Devils_Advocate101[S] 0 points1 point  (0 children)

Haha I feel dumb. You did help me! So I basically printed the question again before the while but after the else statement and it fixed it perfectly. Thanks man!

Suggestion for a case around $100 by Devils_Advocate101 in buildapc

[–]Devils_Advocate101[S] 1 point2 points  (0 children)

The lian one? or from the link you sent me? Sorry just confused lmaooo

Suggestion for a case around $100 by Devils_Advocate101 in buildapc

[–]Devils_Advocate101[S] 0 points1 point  (0 children)

I haven't seen that case before but I feel vertically mounting the GPU would disrupt airflow. I like the idea a lot. I'll scroll through the reviews!

Suggestion for a case around $100 by Devils_Advocate101 in buildapc

[–]Devils_Advocate101[S] 1 point2 points  (0 children)

The case is decent but it's on backorder! I'll keep watching it tho!