Recent content by Yohanna99

  1. Y

    C/C++ [C++] How to return and call vectors from functions?

    This is very rough code just to give you an idea. Ignore things that may make no sense I'll edit it again soon.#include <iostream> #include <string> #include <vector> using namespace std; string get_string_input(vector<string> strings); float averageFunc(vector<float> floating);int main() {...
  2. Y

    Java Troubleshooting Java Programming in Netbeans: Tips and Tricks for Beginners

    Hey friend, 1. You might want to Try declaring the variables wallHeight, wallArea, gallonsPaintNeeded, and cansNeeded without the 0.0 like so: ( double wallHeight; double wallWidth; double wallArea; double gallonsPaintNeeded; int cansNeeded; ) 2. There's an error...
  3. Y

    C/C++ [C++] How to return and call vectors from functions?

    Hi, beginner coder here. I have a somewhat solid understanding of both vectors and functions, and have used the two of them many times, but I'm have trouble coding functions that have vectors in their parameters and as their return values. Another thing I'm having trouble with is calling the...
Back
Top