1 00:00:00,000 --> 00:00:02,583 (bright music) 2 00:00:05,640 --> 00:00:06,473 Frank: Hello everyone. 3 00:00:06,473 --> 00:00:07,650 In this video, I'd like to show you 4 00:00:07,650 --> 00:00:12,120 how to use the source code that's provided with the course. 5 00:00:12,120 --> 00:00:14,850 Each section of the course contains 6 00:00:14,850 --> 00:00:18,090 a compressed zip file that contains a workspace 7 00:00:18,090 --> 00:00:21,030 and all the projects that I've created in that workspace. 8 00:00:21,030 --> 00:00:24,150 So for example, suppose that we're working on section eight, 9 00:00:24,150 --> 00:00:26,340 there'll be a section eight zip file. 10 00:00:26,340 --> 00:00:27,390 It may be a different name, 11 00:00:27,390 --> 00:00:29,220 but it'll have everything that you need in there. 12 00:00:29,220 --> 00:00:32,100 And what you can do here is just extract that file 13 00:00:32,100 --> 00:00:33,930 and I'll extract here 14 00:00:33,930 --> 00:00:36,530 and I'm simply gonna extract it right to my desktop. 15 00:00:39,813 --> 00:00:41,880 As you can see, the folders have all been extracted. 16 00:00:41,880 --> 00:00:43,710 So if I double click on section eight, 17 00:00:43,710 --> 00:00:46,080 you can see all the projects in there. 18 00:00:46,080 --> 00:00:47,370 Now, there's one special file 19 00:00:47,370 --> 00:00:48,450 you'll see down at the bottom here. 20 00:00:48,450 --> 00:00:49,560 It's called section eight, 21 00:00:49,560 --> 00:00:51,270 and it's a workspace file. 22 00:00:51,270 --> 00:00:53,040 If you right click on that, 23 00:00:53,040 --> 00:00:55,150 you can open with CodeLite 24 00:00:56,010 --> 00:00:58,350 and that'll open up the workspace in CodeLite. 25 00:00:58,350 --> 00:00:59,970 And once the workspace is open 26 00:00:59,970 --> 00:01:02,070 you have access to all the projects in there. 27 00:01:02,070 --> 00:01:03,510 So that's one way to do it. 28 00:01:03,510 --> 00:01:04,379 Another way to do this 29 00:01:04,379 --> 00:01:06,540 is once you've extracted the file, 30 00:01:06,540 --> 00:01:07,773 just open CodeLite. 31 00:01:10,710 --> 00:01:12,870 Okay, so now once CodeLite is opened 32 00:01:12,870 --> 00:01:15,330 you can choose to open a workspace right over here. 33 00:01:15,330 --> 00:01:17,490 So I'll select that, open workspace, 34 00:01:17,490 --> 00:01:19,380 and then you can just navigate 35 00:01:19,380 --> 00:01:20,970 to the workspace you want to open. 36 00:01:20,970 --> 00:01:23,280 In this case, it's section eight workspace. 37 00:01:23,280 --> 00:01:25,320 You can just simply select that file 38 00:01:25,320 --> 00:01:27,150 and you can see the workspace opens up 39 00:01:27,150 --> 00:01:28,650 right here with all your projects. 40 00:01:28,650 --> 00:01:31,200 Now, I'm going to close the workspace 41 00:01:31,200 --> 00:01:33,180 and show you another way to do it would be right up here. 42 00:01:33,180 --> 00:01:34,710 You just come to workspace. 43 00:01:34,710 --> 00:01:36,570 If you have a workspace that's already open 44 00:01:36,570 --> 00:01:38,793 you can simply workspace close. 45 00:01:40,140 --> 00:01:42,120 It wouldn't be grayed out, it'll be right there. 46 00:01:42,120 --> 00:01:43,950 In this case, I just wanna open a workspace 47 00:01:43,950 --> 00:01:47,040 and again, you navigate to the workspace you want to open. 48 00:01:47,040 --> 00:01:49,320 Select it, and there it is. 49 00:01:49,320 --> 00:01:51,720 So now I've got section eight workspace 50 00:01:51,720 --> 00:01:55,470 with all the projects that I created and provided for you. 51 00:01:55,470 --> 00:01:56,910 In order to run these projects 52 00:01:56,910 --> 00:01:59,220 you simply double click the project you're interested in. 53 00:01:59,220 --> 00:02:02,010 So suppose I'm interested in this Euros project. 54 00:02:02,010 --> 00:02:03,360 You can see the source code 55 00:02:04,800 --> 00:02:07,470 and all you really need to do is build and run. 56 00:02:07,470 --> 00:02:09,180 But I'd suggest that you clean it first, 57 00:02:09,180 --> 00:02:11,940 especially if you're going from Windows to PC to Linux. 58 00:02:11,940 --> 00:02:13,200 I'm developing on Windows. 59 00:02:13,200 --> 00:02:15,150 So if you're on a Mac or a Linux machine 60 00:02:15,150 --> 00:02:16,440 or even a Windows machine, 61 00:02:16,440 --> 00:02:18,690 it's always a good idea to clean the project. 62 00:02:18,690 --> 00:02:21,840 And what you can do, you can right click and clean 63 00:02:21,840 --> 00:02:25,110 or you can come up to here where it says build clean. 64 00:02:25,110 --> 00:02:26,160 So we'll clean the project 65 00:02:26,160 --> 00:02:28,650 that removes all the object files, the EXE files, 66 00:02:28,650 --> 00:02:30,570 and just gets rid of a bunch of stuff 67 00:02:30,570 --> 00:02:31,440 that you might not need, 68 00:02:31,440 --> 00:02:33,420 depending on your system. 69 00:02:33,420 --> 00:02:34,800 Now that we've got that ready, 70 00:02:34,800 --> 00:02:36,633 we can simply build and run. 71 00:02:38,460 --> 00:02:40,140 And we should be good to go. 72 00:02:40,140 --> 00:02:41,490 Euros to US dollars. 73 00:02:41,490 --> 00:02:43,507 So we'll type in a hundred, 74 00:02:43,507 --> 00:02:45,510 $119 is a hundred Euros. 75 00:02:45,510 --> 00:02:46,470 So that's it. 76 00:02:46,470 --> 00:02:48,090 It's really pretty straightforward. 77 00:02:48,090 --> 00:02:50,280 What I would suggest is that you create, 78 00:02:50,280 --> 00:02:53,970 obviously your way of organizing your files. 79 00:02:53,970 --> 00:02:56,340 I'd use folders or directory structures. 80 00:02:56,340 --> 00:02:57,960 And also something that's important 81 00:02:57,960 --> 00:02:58,980 to understand as well with CodeLite, 82 00:02:58,980 --> 00:03:01,350 CodeLite does things a little differently. 83 00:03:01,350 --> 00:03:05,880 So suppose that you've got projects in another workspace 84 00:03:05,880 --> 00:03:08,070 and then you select the workspace here 85 00:03:08,070 --> 00:03:10,620 and you say add existing project. 86 00:03:10,620 --> 00:03:12,510 Well, what happens here is it doesn't actually 87 00:03:12,510 --> 00:03:14,940 copy that project into the workspace. 88 00:03:14,940 --> 00:03:17,580 It'll create a new project in this workspace, 89 00:03:17,580 --> 00:03:20,610 but the files will still be where they were before. 90 00:03:20,610 --> 00:03:23,190 So your dot CPP files and your header files 91 00:03:23,190 --> 00:03:25,560 and everything will still be where they were. 92 00:03:25,560 --> 00:03:27,600 So think of this more of a logical project 93 00:03:27,600 --> 00:03:30,300 rather than a physical copy of it, okay? 94 00:03:30,300 --> 00:03:31,560 But once you play around with it 95 00:03:31,560 --> 00:03:33,240 you'll understand exactly what's going on. 96 00:03:33,240 --> 00:03:34,950 So really straightforward, 97 00:03:34,950 --> 00:03:38,580 you've got the zip files that we're providing, unzip them. 98 00:03:38,580 --> 00:03:39,990 You'll have a folder structure 99 00:03:39,990 --> 00:03:42,000 and then just open that workspace file in there. 100 00:03:42,000 --> 00:03:44,550 All your projects should come in no problem at all.