CIS 3100 Lecture Notes - Lecture 2: Operating System, Microsoft Visual Studio, Special Functions

69 views4 pages

Document Summary

Function -: little programs, get input, produce output after calc, name: main. Main function- special function that every program must have. Helps program know where to start: operating system always looking for function specifically named. Main in there: color of main function is operating system. Void- when there is not return value [ no input arg to come in] Instead of writing data type you write void. Tells compiler that it does not return anything. Thats why in visual studio u create solution. Solution -> projects (contains multiple projects in them ( we will only have 1 project) cpp source files (contains # of functions in them) Open up project or solution file: not directly cpp source code file. Dont save all cpp in one project file. Iostream: allows us to use cin/cout functionality. #include [ sep library u need to include] #include [if ur gonna do mathematical functions]