HellocMonkey wrote: |
---|
I have an error on line 49 still |
I don't know if you've figured it out, so if not I'll show what is going wrong.
M'ok, you fixed the issue with elemWeight not being declared. You also fixed the int vs. std::string issue with your weight_Search function declaration on line 22.
What you didn't do is change the function definition on line 107. It is still expecting a std::string to be passed for the 2nd parameter instead of an int.
int weight_Search(struct elemInfo eArray[], string elemWeight)
should be the same as the function declaration
int weight_Search(struct elemInfo eArray[], int elemWeight)
A simple "ooops!" mistake that's all too easy to make.
I cant install visualstudio 2022 for some reason |
VS 2022 is for Windows 10 or 11 only, with a 64-bit processor.
https://docs.microsoft.com/en-us/visualstudio/releases/2022/system-requirements
VS 2019 can be installed on a Windows system that has a 32-bit processor, Windows 7 or above
https://docs.microsoft.com/en-us/visualstudio/releases/2019/system-requirements
If you don't know what your processor
bit-ness is, bring up the Start menu, and type "system information". Run the System Information app and from the "System Summary" page there is an entry for "System Type." If you see "x86-based PC" or "x64-based PC" and are running Windows 10 or 11 you can try to install Visual Studio. Whether it is 2019 or 2022 depends on your CPU.
On my main development PC, x64 Windows 10 Pro, I have both 2019 & 2022 installed. I normally use 2022, on occasion I use 2019.