Code Monkey home page Code Monkey logo

2024-spring-nycu-oop's Introduction

OOP

Lab0:C++ Vscode IDE & GDB

g++ example.cpp -o example.exe
./example.exe

iverilog will conflict with the g++ environment:

C:\iverilog\gtkwave\bin C:\iverilog\bin <--> C:\msys64\ucrt64\bin

To solve this, remove the iverilog environment variables, restart your computer, add them back, and restart again, then everything will be fine.

Lab1:C++ Basics & Flow of Control

Lab2:C++ Function Basics & Purpose and Importance of Header Files

For small programs, basically we only need to compile all the original files together to generate the required executable file. But what if it’s a large-scale project? Many programs are bound to be designed in the direction of modularization and high reusability. The most critical one is reusability, so for the sake of reusability, we put these pre-declarations into the header file. In this way, whether it is a dynamic library or a static link, we can reuse the library by including this header file.

How to compile multiple files?

  • Method1:
g++ main.cpp func.cpp -o main

./main    
  • Method2 (prefered):
g++ -c main.cpp // generate main.o
g++ -c func.cpp // generate func.o
g++ main.o func.o -o main

./main

Lab3:C++ Array Transpose & Multiplication

Lab4:C++ Structure & Class (LIFO : Last in First out)

Lab5:C++ Constructors & Operator Overloading

Lab6:C++ Constructors & Operator Overloading

Lab7:C++ String

Lab8:C++ Pointers and Dynamic Arrays

Lab9:C++ Streams and File I/O

#include <map>

map like the dictionary in python, and it will auto sort itself.

#include <vector>

we can implement list.append with using vector.push_back.

Lab10:C++ Inheritance

Lab11:C++ Polymorphism and Virtual Functions

2024-spring-nycu-oop's People

Contributors

awds0318 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.