Snippets Collections
# Makefile

SRC := $(wildcard *.cpp) $(wildcard *.cc) $(wildcard *.c)
OBJ := $(SRC:.cpp=.o) $(SRC:.cc=.o) $(SRC:.c=.o)
TARGET := my_program

CXX := /opt/homebrew/opt/ccache/libexec/g++
CXXFLAGS := -fdiagnostics-color=always -g -Wall -std=c++20

$(TARGET): $(OBJ)
    $(CXX) $(CXXFLAGS) -o $@ $^

clean:
    rm -f $(OBJ) $(TARGET)
your_string = "A string"

print(your_string[:-1])
star

Wed Feb 21 2024 16:09:03 GMT+0000 (Coordinated Universal Time)

#c++ #makefile #make
star

Thu May 12 2022 16:21:23 GMT+0000 (Coordinated Universal Time) https://careerkarma.com/blog/python-remove-character-from-string/

#makefile #replace_char

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension