Hello! I am currently teaching myself C++ from one of the courses on Udemy. The code I made is:
Code: Select all
#include <iostream>
int main()
{
int favorite_number;
std::cout << "Enter your favorite number between 1 and 100: ";
std::cin >> favorite_number;
std::cout << "Amazing! That's my favorite number too!" << std::endl;
return 0;
}
Super basic because I just started. When I build it, there are no errors. Then when I run it, I get this message in my terminal:
Last login: Mon Jun 12 14:18:44 on ttys004
/tmp/codelite-exec.sh ; exit;
alexissweet@Alexiss-MacBook-Air ~ % /tmp/codelite-exec.sh ; exit;
/tmp/codelite-exec.sh: line 3: cd: /Users/alexissweet/Workspaces/Workspaces1/build-Debug/lib: No such file or directory
Hit any key to continue...
When I look at the pathway in my Explorer tab, there are two FirstProgram folders. The first FirstProgram folder is in the build-Debug folder, but that one doesn't have the code. The second one is its own equivalent folder to build-Debug under Workspaces and that is where the code is. How do I change the pathway so I can run my build?
Thank you in advance!