Showing posts with label codeblocks. Show all posts
Showing posts with label codeblocks. Show all posts

Saturday

Change Codeblocks line number background and foreground back to its default colors

If background and foreground of line numbers did not change back to its default colors, go to 

Menu > Settings > Environment > Colors

Category > select: Editor

Click the “Default rectangle color at the right panel” for each of the following. 

* editor-caret

* line number background color

* line number foreground number 

* margin chrome color

* margin chrome highlight color

Click the button OK to close the dialog window.

Wednesday

CodeBlocks: How to set C++ compiler to C++ 2017 or C++17

Open CodeBlocks

Menu > Settings > Compiler

Tick the box: Have g++ follow the C++17 ISO C++ language standard 

Click the button OK

Monday

Use CodeBlocks to generate Nassi–Shneiderman Diagrams (NSDs) automatically

Subject: Use CodeBlocks to generate Nassi–Shneiderman Diagrams (NSDs) automatically

What is the Nassi-Shneiderman Diagram?
The Nassi-Shneiderman Diagram (NSD) is a graphical design representation for structured programming in computer programming. The Nassi-Shneiderman Diagram is also known as structured programming diagram.

What does the Nassi-Shneiderman Diagram look like?
NS diagram follows a top down design in a straightforward way using nested boxes to represent fundamental building blocks of a computer program.

What are the Nassi-Shneiderman Diagram building blocks?
The common Nassi-Shneiderman Diagram building blocks for computer programming are sequence of instructions block, true/false selection block, multiple selections block, test first loop block, test last loop block.

How to use CodeBlocks to generate Nassi–Shneiderman Diagrams automatically?
You do not need to create CodeBlocks project to generate Nassi-Shneiderman Diagrams.
Write a complete C++ program of one cpp file.
Highlight code lines in the main() function body.
Right-click on the highlighted code, select Nassi Shneiderman and then select Create Diagram to create Nassi Shneiderman Diagram automatically as an alternative to the flowchart diagram.

Question: Can you draw a square with three lines?

A teacher asked students to draw a square with 3 lines.