Q
Q
QWERTYUIOPas2020-12-24 10:52:18
C++ / C#
QWERTYUIOPas, 2020-12-24 10:52:18

How to convert a cpp file into an exe "shnik without installing third-party programs?

Let's say I wrote a program in C++.
Since I have to program on a school laptop, and there the evil uncle admin set a password and nothing to install, I have nowhere to run the program.
Online compilers are not suitable for me.
How can I convert the program into an executable exe "shnik?
For VB.NET, Windows has a built-in hidden compiler, for example.
But I don't have VB.NET, but C ++)))

Answer the question

In order to leave comments, you need to log in

5 answer(s)
V
Viktor T2, 2020-12-24
@QWERTYUIOPas

Mingw-w64
https://sourceforge.net/projects/mingw-w64/files/m...
Download portable x86_64-posix-seh
C:\MinGW\bin\g++.exe C:\C++\ HelloWorld\Hello.cpp -o C:\C++\HelloWorld\Hello.exe

K
kalapanga, 2020-12-24
@kalapanga

The answer is obvious - download the C++ compiler of your choice (many do not require installation) and compile the program.
But if everything is really so severe there that, for example, only certain programs are allowed to run, then a miracle will not happen in any case - negotiate with the administrator.

A
antonwx, 2020-12-24
@antonwx

https://remontka.pro/reset-password-windows-10/

M
Maxim Siomin, 2020-12-24
@MaxSiominDev

You can install a second OS

V
Vladimir Korotenko, 2020-12-24
@firedragon

Learn to negotiate. This skill will always come in handy.
What you need:
1. Justify that it is necessary for learning,
2. Select a compiler (for example , https://visualstudio.microsoft.com/ru/thank-you-do... )
3. Ask to install (evil uncle, by the way, do not he is so evil)
4. Profit!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question