Skip to content

A simple C++ project configured for use with Visual Studio Code, including IntelliSense support, custom file associations, and a GitHub Actions workflow for continuous integration. COA LiTEX

Notifications You must be signed in to change notification settings

Sparsh2208/Computer-Organisation-Architecture-Projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple C++ Project

This repository contains a simple C++ project set up for use with Visual Studio Code. The project includes a basic C++ source file, along with configuration files for IntelliSense and file associations.

Files

  • simple.cpp: The main C++ source file.
  • c_cpp_properties.json: Configuration file for IntelliSense, specifying paths, standards, and compiler options.
  • settings.json: VSCode settings file with custom file associations and CMake settings.

Project Structure

.
├── .vscode/
│   ├── c_cpp_properties.json
│   └── settings.json
└── simple.cpp

c_cpp_properties.json
This file configures IntelliSense for the project. Key configurations include:

includePath: Specifies the paths to the header files. The project is configured to include headers from TBB and the workspace.
compilerPath: Path to the GCC compiler.
cStandard: C standard used in the project (gnu11).
cppStandard: C++ standard used in the project (gnu++17).
settings.json
VSCode settings configured for the project:

cmake.configureOnOpen: Set to false to prevent automatic CMake configuration on opening the project.
files.associations: Maps common C++ standard library headers and other file types to the C++ language.
Requirements
GCC Compiler
Visual Studio Code
CMake (optional)
Getting Started
Clone the repository:

git clone https://github.com/yourusername/your-repo-name.git
cd your-repo-name


##Instructions

1. Replace `"yourusername"` and `"your-repo-name"` with your actual GitHub username and the repository name.
2. Update the **License** section if you are using a different license.

This `README.md` should give users a clear understanding of the project's structure and how to get started.

Designed By Sparsh Kumar used RISK V CPU



### 2. `.github/workflows/cpp.yml`

```yaml
name: C/C++ CI

on: [push, pull_request]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - name: Checkout code
      uses: actions/checkout@v3

    - name: Install GCC
      run: sudo apt-get install g++-10

    - name: Build
      run: |
        g++-10 -std=gnu++17 -o simple simple.cpp

    - name: Run Tests
      run: ./simple

About

A simple C++ project configured for use with Visual Studio Code, including IntelliSense support, custom file associations, and a GitHub Actions workflow for continuous integration. COA LiTEX

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages