#Visual studio code

12 messages · Page 1 of 1 (latest)

hazy hearth
#

Im newbie need some help with basic stuff in code -> doesnt matter what i type it says error

civic kiteBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

hazy hearth
#

#include <iostream>
using namespace std;

int main()
{
    cout << "Podaj liczbe: " ;
    int zmienna;
    cin >> zmienna ;
    cout << "Obliczam: 3 + zmienna * 4 =" << 3 + zmienna * 4 << endl ;
    cout << "Obliczam: (3 + zmienna) * 4 =" << (3 + zmienna) * 4 << endl ;
    return 0;
}
#

CODE says its error with "include"

unkempt tinsel
#

you need to install g++

#

and if you already did you need to create a exe file with g++ input.cpp output.exe

#

and then .\output.exe

#

rename input with you "main.cpp"

#

output is the exe name

#

i recommand vs22 for c++

#

easier to use for newbies

civic kiteBOT
#
Getting Started With Visual Studio

New here and looking to quickly get started with C or C++ on Windows? Follow the steps in this thread to compile and run your first bits of code in Visual Studio.