prvi comit
This commit is contained in:
parent
0d8150c04d
commit
1dfc9fbe18
4 changed files with 351 additions and 0 deletions
31
LV5_Jednostavna naredba odlučivanja (grananja).sln
Normal file
31
LV5_Jednostavna naredba odlučivanja (grananja).sln
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 17
|
||||||
|
VisualStudioVersion = 17.11.35219.272
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "LV5_Jednostavna naredba odlučivanja (grananja)", "LV5_Jednostavna naredba odlučivanja (grananja)\LV5_Jednostavna naredba odlučivanja (grananja).vcxproj", "{DE0758A2-06E4-4754-8C66-F99E88EA3FBA}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|x64 = Debug|x64
|
||||||
|
Debug|x86 = Debug|x86
|
||||||
|
Release|x64 = Release|x64
|
||||||
|
Release|x86 = Release|x86
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{DE0758A2-06E4-4754-8C66-F99E88EA3FBA}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{DE0758A2-06E4-4754-8C66-F99E88EA3FBA}.Debug|x64.Build.0 = Debug|x64
|
||||||
|
{DE0758A2-06E4-4754-8C66-F99E88EA3FBA}.Debug|x86.ActiveCfg = Debug|Win32
|
||||||
|
{DE0758A2-06E4-4754-8C66-F99E88EA3FBA}.Debug|x86.Build.0 = Debug|Win32
|
||||||
|
{DE0758A2-06E4-4754-8C66-F99E88EA3FBA}.Release|x64.ActiveCfg = Release|x64
|
||||||
|
{DE0758A2-06E4-4754-8C66-F99E88EA3FBA}.Release|x64.Build.0 = Release|x64
|
||||||
|
{DE0758A2-06E4-4754-8C66-F99E88EA3FBA}.Release|x86.ActiveCfg = Release|Win32
|
||||||
|
{DE0758A2-06E4-4754-8C66-F99E88EA3FBA}.Release|x86.Build.0 = Release|Win32
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {D37815F2-C643-43D2-9CFE-CDBE6F51ED54}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
|
|
@ -0,0 +1,163 @@
|
||||||
|
// LV5_Jednostavna naredba odlučivanja (grananja).cpp : This file contains the 'main' function. Program execution begins and ends there.
|
||||||
|
//Promptovi dok sam koristio AI: Kako napraviti sort sistem u c++, sto radi [3]
|
||||||
|
//// #include <iostream>
|
||||||
|
//using namespace std;
|
||||||
|
//
|
||||||
|
//int main() {
|
||||||
|
// int broj_ucenika;
|
||||||
|
// cin >> broj_ucenika; // Učitavanje broja učenika
|
||||||
|
//}
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//#include <iostream>
|
||||||
|
//using namespace std;
|
||||||
|
//
|
||||||
|
//int main() {
|
||||||
|
// int a = 5, b = 7;
|
||||||
|
// cout << "Umnožak brojeva " << a << " i " << b << " iznosi: " << a * b << endl;
|
||||||
|
//}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//#include <iostream>
|
||||||
|
//using namespace std;
|
||||||
|
//
|
||||||
|
//int main() {
|
||||||
|
// int a;
|
||||||
|
// cout << "Upisi koliko je stupnjeva: " << endl;
|
||||||
|
// cin >> a;
|
||||||
|
// if (a < 20) {
|
||||||
|
// cout << "Hladno je ili prohladno" << endl;
|
||||||
|
// }
|
||||||
|
// else if ((a == 20) || (a<25)) {
|
||||||
|
// cout << "Ugodno je toplo" << endl;
|
||||||
|
// }
|
||||||
|
// else {
|
||||||
|
// cout << "Toplo je ili jako toplo";
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
|
||||||
|
//#include <iostream>
|
||||||
|
//using namespace std;
|
||||||
|
//
|
||||||
|
//int main() {
|
||||||
|
// double a, b, c;
|
||||||
|
// int ispodn = 0;
|
||||||
|
// int visen = 0;
|
||||||
|
// cout << "Upisi 1. temperaturu: " << endl;
|
||||||
|
// cin >> a;
|
||||||
|
// cout << "Upisi 2. temperaturu: " << endl;
|
||||||
|
// cin >> b;
|
||||||
|
// cout << "Upisi 3. temperaturu: " << endl;
|
||||||
|
// cin >> c;
|
||||||
|
// if (a > 0) ispodn++; else visen++;
|
||||||
|
// if (b > 0) ispodn++; else visen++;
|
||||||
|
// if (c > 0) ispodn++; else visen++;
|
||||||
|
//
|
||||||
|
// cout << "Broj dana sa temperaturom ispod nule: " << visen << endl;
|
||||||
|
// cout << "Broj dana sa temperaturom iznad nule: " << ispodn << endl;
|
||||||
|
//
|
||||||
|
// return 0;
|
||||||
|
//}
|
||||||
|
|
||||||
|
|
||||||
|
//#include <iostream>
|
||||||
|
//#include <cmath>
|
||||||
|
//#include <algorithm>
|
||||||
|
//using namespace std;
|
||||||
|
//
|
||||||
|
//int main() {
|
||||||
|
// int a , b , c;
|
||||||
|
// cout << "Upisi 1. broj: " << endl;
|
||||||
|
// cin >> a;
|
||||||
|
// cout << "Upisi 2. broj: " << endl;
|
||||||
|
// cin >> b;
|
||||||
|
// cout << "Upisi 3. broj: " << endl;
|
||||||
|
// cin >> c;
|
||||||
|
//
|
||||||
|
// int provjera[3] = { a , b , c };
|
||||||
|
//
|
||||||
|
// sort(provjera, provjera + 3);
|
||||||
|
//
|
||||||
|
// a = provjera[0];
|
||||||
|
// b = provjera[1];
|
||||||
|
// c = provjera[2];
|
||||||
|
//
|
||||||
|
// if (c * c == a * a + b * b) {
|
||||||
|
// cout << "Brojevi zadovoljavaju Pitagorine uvjete." << endl;
|
||||||
|
// }
|
||||||
|
// else {
|
||||||
|
// cout << "Brojevi ne zadovoljavaju uvjete" <<endl;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// return 0;
|
||||||
|
//}
|
||||||
|
|
||||||
|
|
||||||
|
//#include <iostream>
|
||||||
|
//using namespace std;
|
||||||
|
//
|
||||||
|
//int main() {
|
||||||
|
// double x, y;
|
||||||
|
// cout << "Unesi prvi broj: " << endl;
|
||||||
|
// cin >> x;
|
||||||
|
// cout << "Unesi drugi broj: " << endl;
|
||||||
|
// cin >> y;
|
||||||
|
// if (x > 0 && y > 0) {
|
||||||
|
// cout << "Tocka se nalazi u prvom kvadrantu" << endl;
|
||||||
|
// }
|
||||||
|
// else if (x < 0 && y > 0) {
|
||||||
|
// cout << "Tocka se nalazi u drugom kvadrantu" << endl;
|
||||||
|
// }
|
||||||
|
// else if (x < 0 && y < 0) {
|
||||||
|
// cout << "Tocka se nalazi u trecem kvadrantu" << endl;
|
||||||
|
// }
|
||||||
|
// else if (x > 0 && y < 0) {
|
||||||
|
// cout << "Tocka se nalazi u cetvrtom kvadrantu" << endl;
|
||||||
|
// }
|
||||||
|
// else if (x == 0 && y != 0) {
|
||||||
|
// cout << "Tocka se nalazi na osi y" << endl;
|
||||||
|
// }
|
||||||
|
// else if (y == 0 && x != 0) {
|
||||||
|
// cout << "Tocka se nalazi na osi x" << endl;
|
||||||
|
// }
|
||||||
|
// else {
|
||||||
|
// cout << "Tocka je u koordinatnom pocetku" << endl;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// return 0;
|
||||||
|
//}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//#include <iostream>
|
||||||
|
//#include <string>
|
||||||
|
//using namespace std;
|
||||||
|
//
|
||||||
|
//int main() {
|
||||||
|
// double a, b;
|
||||||
|
// string znak;
|
||||||
|
// cout << "unesi 1. broj" << endl;
|
||||||
|
// cin >> a;
|
||||||
|
// cout << "unesi 2. broj" << endl;
|
||||||
|
// cin >> b;
|
||||||
|
// cout << "unesi znak za racunanje: " << endl;
|
||||||
|
// cin >> znak;
|
||||||
|
//
|
||||||
|
// if (znak == "*") {
|
||||||
|
// cout << a * b;
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
// else if (znak == "/") {
|
||||||
|
// cout << a / b;
|
||||||
|
// }
|
||||||
|
// else if (znak == "+") {
|
||||||
|
// cout << a + b;
|
||||||
|
// }
|
||||||
|
// else if (znak == "-") {
|
||||||
|
// cout << a - b;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// return 0;
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
@ -0,0 +1,135 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug|Win32">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|Win32">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug|x64">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|x64">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<VCProjectVersion>17.0</VCProjectVersion>
|
||||||
|
<Keyword>Win32Proj</Keyword>
|
||||||
|
<ProjectGuid>{de0758a2-06e4-4754-8c66-f99e88ea3fba}</ProjectGuid>
|
||||||
|
<RootNamespace>LV5Jednostavnanaredbaodlučivanjagrananja</RootNamespace>
|
||||||
|
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v143</PlatformToolset>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v143</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v143</PlatformToolset>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v143</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="Shared">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<SDLCheck>true</SDLCheck>
|
||||||
|
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<ConformanceMode>true</ConformanceMode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<SDLCheck>true</SDLCheck>
|
||||||
|
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<ConformanceMode>true</ConformanceMode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<SDLCheck>true</SDLCheck>
|
||||||
|
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<ConformanceMode>true</ConformanceMode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<SDLCheck>true</SDLCheck>
|
||||||
|
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<ConformanceMode>true</ConformanceMode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="LV5_Jednostavna naredba odlučivanja (grananja).cpp" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
||||||
|
|
@ -0,0 +1,22 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="Source Files">
|
||||||
|
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files">
|
||||||
|
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||||
|
<Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Resource Files">
|
||||||
|
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||||
|
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="LV5_Jednostavna naredba odlučivanja (grananja).cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue