Looking for a C++ Simulator

I am looking for some suggestions for an "offline" C++ IDE where I can test various small C++ routines that are not necessarily Arduino dependent.

I am still a beginner in C++ and therefore need to test / try out various C++ structures eg. datatypes, data compare, logical conditions etc.

Do you have any suggestions?

I sometimes use these:

I don't understand what you mean by "offline" C++ IDE. Most of the C++ compilers work offline.

The GCC (GNU C++ compiler) can be dowloaded and installed in your machine. It works offline. C++ extension for VS Code either (needs Windows though).

If you want to test arduino code offline, you can dowload Wokwi Extension for VS code, but it requires a subscription to the pro plan (it’s paid).

2 Likes

Use this widely popular guide from Microsoft to setup the C++ environment in vscode - C/C++ for Visual Studio Code

Use the debugging to simulate whatever code you got.

1 Like

I use and recommend the free Code::Blocks IDE on windows machines.

Perhaps someone has added the Arduino extensions to it, so if you need those, take a look around.

2 Likes

It is online .. but have you tried Wokwi that simulates some controller chips? It simulates a number of components and circuits. The IDE is Arduino.

1 Like

I don’t know what’s your recent experience with wokwi but for me, unless you have a paid for subscription, it’s too busy to compile anything and times out. So it has become useless for me, I rarely attempt to use it anymore.

3 Likes

Hello

By “offline” I mean a Arduino IDE that allows me to do small coding routines WITHOUT the presents of an Arduino (compiling sketch, uploading etc).

And a IDE with better debugging functions, breakpoints, variable monitoring etc.

Sorry for not explaining this ….

Thanks mate, that was just what I was looking for … :slight_smile:

1 Like